test: reduce registry manifest test repetition#3146
Open
PascalThuet wants to merge 3 commits into
Open
Conversation
Assisted-by: Codex (model: GPT-5, autonomous)
Assisted-by: Codex (model: GPT-5, autonomous)
Add a >=2 precondition, explain why two install orders are tested (manifests are order-independent; the orders only vary the init path), and build the manifest map with a comprehension.
Contributor
Author
|
Pushed
Validation: (Disclosure: drafted and verified with an AI coding agent; reviewed by me.) |
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.
What
Reduce the expensive multi-install manifest contract from one CLI setup per safe-integration pair to two aggregate install orders: forward and reverse.
This keeps the pairwise manifest-disjoint assertion, but builds the manifests once per order instead of repeating the same setup for every pair.
Stack
Stacked on #3144. Because this fork cannot push the stack base branch to
github/spec-kit(403), this draft PR targetsmainfor upstream visibility and will include the #3144 diff until #3144 lands. After #3144 is merged, this PR diff should shrink to onlytests/integrations/test_registry.py.Validation
uv sync --extra testuvx ruff check tests/integrations/test_registry.pygit diff --check.venv/bin/python -m pytest tests/integrations/test_registry.py --durations=30 -q(1035 passed in 34.86s).venv/bin/python -m pytest tests/integrations --durations=30 -qbefore the final naming/comment cleanup (2500 passed, 1 skipped in 236.69s)Comparison on the same machine:
tests/integrations/test_registry.pycollected1223tests and took248.55stests/integrations/test_registry.pycollects1035tests and took34.86sDisclosure
Prepared by Codex (model: GPT-5) on behalf of @PascalThuet.