Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libcnb-test: Test container, volume and image cleanup in CI (#740)
At the end of each test libcnb-test is meant to clean up any Docker resources that were created during the test. However, this functionality currently isn't tested, and we've found several cases where cleanup wasn't occurring as expected: - #586 - #570 - #737 We could try and add a Rust integration test or two to check that cleanup works in the common case, however, as seen by the issues above, it's often in the edge cases where resource cleanup wasn't working. In addition, testing cleanup during an individual test is hard, since other tests will be running at the same time, so we'd have to check for individual image or container names, which would miss cases like #570. As such, it's much easier for us to instead just check that there are zero unexpected resources left behind at the end of the existing entire libcnb-test test suite. For now, two of the checks don't cause CI to fail, since the fixes for the cleanup implementations have not yet landed. GUS-W-14502524.
- Loading branch information