Repository navigation
fix(cli): plan verify --redact-paths with real paths, redact the receipt - #276
Merged
adityankale190895 merged 4 commits intoNov 18, 2026
Merged
Conversation
The analysis returned digests in place of the selected test paths, so the selected command never matched them and every redacted run widened to the full suite with a misleading reason. Plan with the real paths and put digests only in the receipt. Fixes DiffCI#275 Signed-off-by: FredApps <[email protected]>
…dact-paths receipt The receipt still named the selected and changed files in checks[].reason and a NARROWED check's command, in execution.testResults[].file and failingTests, in the output tails and in the failure baseline. They now carry the same digests, and the regression test checks the whole receipt. Refs DiffCI#275 Signed-off-by: FredApps <[email protected]>
Contributor
Author
|
Cross-review (FredApps, head 50bd0e6). Not an approval. Checked
Fixed: 50bd0e6
Open
|
…act-paths receipt
The receipt still listed raw paths in snapshot.written_during_verification,
changed_during_verification and line_ending_only_changes (as on main),
and the reason naming a changed file kept it. These are now digests, on
every receipt including the ones returned before the run.
Planning with real paths also let two paths through that main hid: a
selected test passed to node --test as a glob ("test/a@([[])1@([]]).test.js")
did not match the literal scrub, and the outside-suite reason named the
separate project's directory. Both are now digests.
Fixes DiffCI#275
Signed-off-by: FredApps <[email protected]>
Signed-off-by: FredApps <[email protected]>
Contributor
Author
|
Follow-up on the open points in the cross-review. Real. Fixed in 1c3d290
Still open (not changed)
CI: all checks pass on 5a44c61, an empty re-run commit. The first run on 1c3d290 hit a Windows EPERM while removing a Go fixture temp dir ( |
FredApps
added a commit
to FredApps/core
that referenced
this pull request
Nov 18, 2026
… cleanly with DiffCI#276 No behavior change. DiffCI#276 adds redactReceipt at the same spot after verifyCommitRange, which made the two PRs conflict. Signed-off-by: FredApps <[email protected]>
FredApps
marked this pull request as ready for review
November 18, 2026 00:55
adityankale190895
pushed a commit
that referenced
this pull request
Nov 18, 2026
) * fix(cli): fail verify when the time limit leaves gate checks unrun runChecks marks checks not_run when the budget is used up, but verify ignored outOfTime, ran the tests with no limit and reported the checks as skipped. Stop before the tests and fail the verdict instead. Fixes #259 Signed-off-by: FredApps <[email protected]> * fix(cli): stop verify when gate checks use the whole time limit Every check could run and still use the whole --timeout-ms budget, for example a failing check whose base rerun shows it also fails at the base. The tests then started with a 0ms limit, which means no limit. They now do not start and the verdict fails. A base rerun with no time left is reported as unknown instead of running with no limit. Fixes #259 Signed-off-by: FredApps <[email protected]> * refactor(cli): move checksOutOfTime next to checkSummary so it merges cleanly with #276 No behavior change. #276 adds redactReceipt at the same spot after verifyCommitRange, which made the two PRs conflict. Signed-off-by: FredApps <[email protected]> --------- Signed-off-by: FredApps <[email protected]>
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.
Fixes #275
Changed behavior
verify --redact-paths(--changed,--staged,--pathsand commit-range) now plans with the real paths, so the selected tests run as they do without redaction. Only the receipt is redacted, after the run.The receipt (which is also what goes to
--json, the receipt file and the local outcome log) carries the same sha256-12 digests the observation report uses:selected_tests, and theselection_reasonskeys andchanged_filevalues;command,commands,first_pass.commands,execution.command,reasonandrequired_actionsname them.What stays as it was under redaction:
global-riskfallback, and its detail never names a real path.verify. The usage signal carries no paths.Without
--redact-paths, nothing changes.Fallback if the widening is intended: if maintainers prefer redacted runs to keep running the full suite, I will reduce this PR to a message fix. The full suite would still run, but the reason would say it was widened because
--redact-pathshides the selected paths, instead of the current "selected verification was not executable … would not match … such as ".Validation
tests/client/verify-redact-paths.test.ts:redactPaths, the run isselected,selected_testsandselection_reasonshold digests, and the receipt names neither the selected test nor the changed file. On main this fails:selectionisfull, with the "broadened to full verification" reason.node --import tsx --test tests/client/verify-*.test.ts tests/client/enforce*.test.ts tests/client/observe.test.ts tests/client/agent*.test.ts tests/client/outcome*.test.ts: 132 passed.tsc --noEmit -p packages/diffci-cli: clean.release-files.json.More paths redacted (follow-up)
snapshot.written_during_verification,changed_during_verificationandline_ending_only_changeswere raw onmaintoo. They are now digests on every--redact-pathsreceipt, including the ones returned before the run. The reason that names a file the run changed uses the digest.node --testgets as a glob (test/a[1].test.jsruns as"test/a@([[])1@([]]).test.js") did not match the literal scrub. Each path is now also scrubbed in its glob and shell-escaped forms.apps/desk is a separate project ...). That directory is now a digest, as in the observation report.tests/client/verify-redact-paths.test.ts. Each fails without this change.Still raw, as on
main: repository paths that the runner prints in the output tails and that DiffCI does not know (other files in a stack trace).Conflict with #260: resolved on #260's side (it moved its helper), so the two merge in either order.