Repository navigation
Select test commands by name, not by position - #71
Merged
Merged
Conversation
Removing --github from REMOTE_COMMANDS shifted every later entry, so the URL-override test indexed download, cancel, and report progress and silently stopped covering compilation status. Tests now name the commands they need, so adding or removing one cannot change what a test runs, and the add-a-command guide no longer asks for new entries at the end of the list. docs/errors.md still said a bare 404 from maintain came from the pinned origin's Service. A fresh clone has no pin and uses the origin login would select, so the recovery text now names the origin the command used.
raghubetina
marked this pull request as ready for review
November 24, 2026 19:09
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.
Summary
Two fixes from a second review, by Antigravity, of what merged this week.
test/api-environments.test.js: two tests picked commands fromREMOTE_COMMANDSby position. When cli#69 removed["plan", "compile", "--github"]from position 3, the URL-override test ("status, retained Compilation, and maintain commands ignore an initial URL override…") went on indexing 4 to 6. It rancompilation download,compilation cancel, andreport progress, and stopped coveringcompilation status, with nothing failing. Both tests now name their commands with a smallremoteCommand(group, command)lookup, and the override test takes thecompilationgroup by filter, as it already tookmaintain. Six positional picks in two tests are replaced. The other picks (plan push,plan compile,plan status) still pointed at the right commands. cli#62's review had fixed the same drift for the maintain commands.docs/errors.md: undermaintain_unavailable, a bare404was put down to "the pinned origin's Service". Since cli#70, a fresh clone has no pinned origin and uses the oneloginwould select, so the text now names the origin the command used, as the help anddocs/commands.mdalready do.docs/commands.md, Add a command: the checklist said to append toREMOTE_COMMANDS"at the end" because tests indexed it. It now says the tests pick entries by group or name.No behavior, version, range, or release record changes.
Docs: updated docs/errors.md (Maintenance recovery, the bare 404) and docs/commands.md (Add a command, REMOTE_COMMANDS).
Review: Codex (gpt-6.2-astra, xhigh), approve (1 round, no findings); Antigravity (gemini-4-neon-xhigh), approve (1 round, no findings)
Validation
npm audit: 0 vulnerabilitiesnpm run check: passes (379 tests, pack check, packed smoke). Before this change, the override test also passed onmainoncecompilation statuswas put back by hand, so the command's behavior was right and only its coverage was missing.