Skip to content

Select test commands by name, not by position - #71

Merged
raghubetina merged 1 commit into
mainfrom
select-test-commands-by-group
Nov 24, 2026
Merged

raghubetina merged 1 commit into
mainfrom
select-test-commands-by-group

Conversation

@raghubetina

@raghubetina raghubetina commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Two fixes from a second review, by Antigravity, of what merged this week.

  • test/api-environments.test.js: two tests picked commands from REMOTE_COMMANDS by 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 ran compilation download, compilation cancel, and report progress, and stopped covering compilation status, with nothing failing. Both tests now name their commands with a small remoteCommand(group, command) lookup, and the override test takes the compilation group by filter, as it already took maintain. 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: under maintain_unavailable, a bare 404 was put down to "the pinned origin's Service". Since cli#70, a fresh clone has no pinned origin and uses the one login would select, so the text now names the origin the command used, as the help and docs/commands.md already do.
  • docs/commands.md, Add a command: the checklist said to append to REMOTE_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 vulnerabilities
  • npm run check: passes (379 tests, pack check, packed smoke). Before this change, the override test also passed on main once compilation status was put back by hand, so the command's behavior was right and only its coverage was missing.

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
raghubetina marked this pull request as ready for review November 24, 2026 19:09
@raghubetina
raghubetina merged commit 6a156b3 into main Nov 24, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant