Repository navigation
fix(just): remove test-devcontainer leftovers in clean-test-containers - #1818
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
just clean-test-containersonly matchedworkspace-devcontainer*(the devcontainer fixtures). The image-test fixturetest_container(tests/conftest.py) names its containerstest-devcontainer-<epoch>, so a killedtest_image.pyrun left containers the recipe never removed.Type of Change
feat-- New featurefix-- Bug fixdocs-- Documentation onlychore-- Maintenance task (deps, config, etc.)refactor-- Code restructuring (no behavior change)test-- Adding or updating testsci-- CI/CD pipeline changesbuild-- Build system or dependency changesrevert-- Reverts a previous commitstyle-- Code style (formatting, whitespace)Modifiers
!) -- This change breaks backward compatibilityChanges Made
justfile(clean-test-containers): also collectspodman ps -a --filter "name=^test-devcontainer-"and removes those containers, with its own progress line. The "[OK] / none found" summary covers both kinds.tests/bats/just.bats: two behavioral tests run the real recipe against apodmanstub that applies--filter name=as a regex:test-devcontainer-*leftovers are removed, and unrelated containers are left alone.workspace-devcontainer-*removal still works.Changelog Entry
No changelog needed: devkit's own dev-tooling recipe (root
justfile, not shipped to consumers).Testing
just test)Manual Testing Details
test-devcontainercase failed because normwas issued, while the existing-behaviour case passed. They are GREEN after the fix, and the whole ofjust.batspasses.podman create --name test-devcontainer-0 …followed byjust clean-test-containersremoved the container, leaving 0test-devcontainer-*containers.just precommit(full suite): green.Checklist
docs/templates/, then runjust docs)CHANGELOG.mdin the[Unreleased]section (and pasted the entry above)Additional Notes
Out of scope, not changed: the pytest session-start check for leftover containers in
tests/conftest.py(thepytest_sessionstartlingering-container check and itsPYTEST_AUTO_CLEANUPpath) also only checksworkspace-devcontainer, so it never flagstest-devcontainer-*leftovers either.Refs: #1817