You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
check: --scenario and --only for a fast renderer loop, and a rerun hint - #214
↑ Unit tests: the rerun command names the scenario, each failed check and --trust; naming only renderer scenarios skips extraction; runChecks rejects an unknown check with the list. ↑ End to end on a downstream repository: check -p turn-cost --scenario core-edit --only status-text --only opens-fitted --trust ran in 3.8 s, an unknown check and an unknown scenario are each named with the alternatives. ↓ The rerun line wasn't seen on a real failing run; it's covered only by the unit test.
Item 10 of a downstream user's (Superego) feedback, as decided for v0.3.1. projections check took about two minutes per projection, with no faster loop for renderer-only changes. The full run stays the default, and it's what CI should run.
--scenario <id> (repeatable, one projection): run the renderer checks on these scenarios only. The IDs are working-tree, head (HEAD → working tree) and the IDs in the renderer package's scenarios.json. Naming only scenarios.json scenarios skips extraction, the comparison with HEAD and comparator tests; each is reported as skipped, with the reason. On the reporter's turn-cost renderer that's 3.8 s instead of minutes.
--only <check> (repeatable): run only these renderer checks, by ID. runChecks (in @githubnext/projections/testing) now rejects an unknown ID and lists the valid ones, so the list has one source.
Rerun hint: a failed scenario's step ends with Rerun just this: projections check -p ID --scenario SCENARIO --only CHECK … [--trust] (and rerun in --json).
The MCP and VS Code check tool takes the same narrowing as scenarios and checks, and passes rerun through.
Docs: the check examples in projections check --help, and Run the checks in Develop a renderer.
Tests: cargo test -p projections-cli --lib check::, tools test packages/renderers/testing --filter "runChecks names".
…n ID shared with the check's own is said, and the tool's narrowing needs render
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
Generated rerun commands leave supplied-file paths unquoted and omit explicit browser selections, so copying them can fail or silently skip renderer checks.
Preserve explicit browser selection in rerun hints
packages/cli/src/check/render.rs:94
The rerun context drops an explicit --browser selection. If the original run uses a browser outside PATH and the standard install locations, copying the hint cannot find it: Checker::projection then skips renderer checks and can report success without rerunning the failed check. Please carry the explicit browser path into Rerun and include it, shell-escaped, in the generated command.
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
The generated rerun command omits repository/project selection and an explicit browser path, so it can check the wrong project or skip renderer checks and misleadingly report success.
No open issues 🎉
2 previously missed issues
In code that hasn't changed since last review
Preserve the explicit browser path in rerun commands
packages/cli/src/check/render.rs:222
The rerun command drops an explicitly supplied --browser. If the failing run uses a browser outside PATH and the standard install locations (for example, --browser /opt/chrome-for-testing/chrome), copying this hint cannot find that browser; Checker::projection then skips the renderer checks and can report success without rerunning the failure. Carry the explicit browser path into Rerun and include it, shell-quoted, in the generated command.
Preserve repository and project selection in rerun commands
packages/cli/src/check/render.rs:222
The rerun command loses the repository/project selected with -C or --root. Those flags do not change the process's working directory (main.rs:224–235), so copying the hint after a run such as projections --root packages/app check ... can check the parent project's projection instead, or fail to find it. Carry the effective repository and project selection into Rerun and include the corresponding shell-quoted arguments.
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
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.
Agent assessment
Self-reported assessment, not an independent review.
Assessed revision:
e133c034186472175aaf8252002692251530bb3b↑ End to end on a downstream repository:
check -p turn-cost --scenario core-edit --only status-text --only opens-fitted --trustran in 3.8 s, an unknown check and an unknown scenario are each named with the alternatives.↓ The rerun line wasn't seen on a real failing run; it's covered only by the unit test.
Item 10 of a downstream user's (Superego) feedback, as decided for v0.3.1.
projections checktook about two minutes per projection, with no faster loop for renderer-only changes. The full run stays the default, and it's what CI should run.--scenario <id>(repeatable, one projection): run the renderer checks on these scenarios only. The IDs areworking-tree,head(HEAD → working tree) and the IDs in the renderer package'sscenarios.json. Naming onlyscenarios.jsonscenarios skips extraction, the comparison with HEAD and comparator tests; each is reported as skipped, with the reason. On the reporter's turn-cost renderer that's 3.8 s instead of minutes.--only <check>(repeatable): run only these renderer checks, by ID.runChecks(in@githubnext/projections/testing) now rejects an unknown ID and lists the valid ones, so the list has one source.Rerun just this: projections check -p ID --scenario SCENARIO --only CHECK … [--trust](andrerunin--json).checktool takes the same narrowing asscenariosandchecks, and passesrerunthrough.projections check --help, and Run the checks in Develop a renderer.Tests:
cargo test -p projections-cli --lib check::,tools test packages/renderers/testing --filter "runChecks names".