Skip to content

Port FinishedRun.Redact over staticOutputLedger (redactStaticSecrets) - #2683

Merged
kblok merged 2 commits into
mainfrom
fix/2600-finishedrun-redact
Dec 2, 2026
Merged

kblok merged 2 commits into
mainfrom
fix/2600-finishedrun-redact

Conversation

@kblok

@kblok kblok commented Dec 2, 2026

Copy link
Copy Markdown
Member

What

FinishedRun.Redact is now built from the config's fixed secret values (Secrecy.StaticOutputLedger(config.AllSecrets).RedactFragments), as upstream's redactStaticSecrets does in runner.ts. A provider key or secret, and fragments of it, are now redacted from text a reporter brings from elsewhere. Before, the port aggregated each test's own redactors in ReportFile, so a reporter's Redact did not use the ledger. A run whose config never loaded redacts nothing, as upstream.

Closes #2600

Upstream parity

Verdict: matches. ReportFile.RedactStaticSecrets mirrors upstream redactStaticSecrets (runner.ts); the config is the one the session or host already passes to ReportFile. I did not run /upstream-parity-check as a separate step; I compared by hand against runner.ts (lines 578, 890, 1673).

  • FinishedRun.redact from staticOutputLedger(allSecrets).redactFragments
  • No config -> identity

Tests

  • reporters.test.ts "redacts the configured secrets, and fragments of them, in text a reporter brings from elsewhere" -> ReporterObjectsTests.Redacts_the_configured_secrets_and_fragments_of_them_in_text_a_reporter_brings_from_elsewhere

Reporters/ReportJson/LastRun tests pass locally on net10.0. ASecretInAnEngineOptionTests fails here only because the sandbox cannot install Chromium.

Not ported

Nothing.


Generated by Claude Code

@coderabbitai

coderabbitai Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 46 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between e52c4a5 and c886ce6.

Files selected for processing: 3

  • src/E2E/Report/ReportFile.cs
  • tests/E2E.Tests/Reporters/ReporterObjectsTests.cs
  • tests/E2E.Tests/Reporters/ReporterRunKit.cs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ls2e1yvtsNUb56dVzQf4eB
@kblok
kblok merged commit 23685b6 into main Dec 2, 2026
5 checks passed
@kblok
kblok deleted the fix/2600-finishedrun-redact branch December 2, 2026 20:50
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.

Port FinishedRun.redact (redactStaticSecrets) over staticOutputLedger (follow-up of #2521)

2 participants