Skip to content

fix(reporters): complete secret redaction - #43807

Closed
microsoft-playwright-automation[bot] wants to merge 1 commit into
mainfrom
triage/43795/41076819942-1
Closed

microsoft-playwright-automation[bot] wants to merge 1 commit into
mainfrom
triage/43795/41076819942-1

Conversation

@microsoft-playwright-automation

Copy link
Copy Markdown
Contributor

Keep full step values until reporter redaction, accept config-relative dotenv files, and redact file-backed text attachments. Replace secret-bearing binary and ZIP attachments with a text notice, including checks of decompressed ZIP entries. Original files remain unchanged.

ZIP inspection is synchronous to preserve reporter callback behavior; fflate is vendored for this. Document trace omission and the separate trace secrets option.

Extended the three existing reporter-secret tests: they fail without the fix and pass in Chromium, Firefox, and WebKit. Neighboring reporter/step tests and all 59 trace tests pass, with 8 skips and four Git fixture reruns requiring process-local bare-repository access. Build and full lint/type checks pass.

Fixes #43795

Prepared by the triage workflow.

@github-actions

Copy link
Copy Markdown
Contributor

Test results for "MCP"

5194 passed, 616 skipped


Merge workflow run.

@github-actions

Copy link
Copy Markdown
Contributor

Test results for "tests 1"

12 failed
❌ [playwright-test] › reporter-preprocess.spec.ts:19 › preprocess sees the filtered corpus, can skip tests, and records the caller location @playwright-x64-server2025-64-core-node22
❌ [playwright-test] › reporter-preprocess.spec.ts:421 › plan.suite exposes setup/teardown dependency projects but they are read-only @playwright-x64-server2025-64-core-node22
❌ [playwright-test] › reporter-preprocess.spec.ts:508 › plan.suite temporarily exposes dependencies without changing final project selection @playwright-x64-server2025-64-core-node22
❌ [playwright-test] › reporter-preprocess.spec.ts:19 › preprocess sees the filtered corpus, can skip tests, and records the caller location @playwright-x64-ubuntu24-64-core-bun
❌ [playwright-test] › reporter-preprocess.spec.ts:421 › plan.suite exposes setup/teardown dependency projects but they are read-only @playwright-x64-ubuntu24-64-core-bun
❌ [playwright-test] › reporter-preprocess.spec.ts:508 › plan.suite temporarily exposes dependencies without changing final project selection @playwright-x64-ubuntu24-64-core-bun
❌ [playwright-test] › reporter-preprocess.spec.ts:19 › preprocess sees the filtered corpus, can skip tests, and records the caller location @playwright-x64-ubuntu24-64-core-node22
❌ [playwright-test] › reporter-preprocess.spec.ts:421 › plan.suite exposes setup/teardown dependency projects but they are read-only @playwright-x64-ubuntu24-64-core-node22
❌ [playwright-test] › reporter-preprocess.spec.ts:508 › plan.suite temporarily exposes dependencies without changing final project selection @playwright-x64-ubuntu24-64-core-node22
❌ [playwright-test] › reporter-preprocess.spec.ts:19 › preprocess sees the filtered corpus, can skip tests, and records the caller location @macos-latest-node22
❌ [playwright-test] › reporter-preprocess.spec.ts:421 › plan.suite exposes setup/teardown dependency projects but they are read-only @macos-latest-node22
❌ [playwright-test] › reporter-preprocess.spec.ts:508 › plan.suite temporarily exposes dependencies without changing final project selection @macos-latest-node22

1 flaky ⚠️ [webkit-page] › page/page-leaks.spec.ts:85 › LE-001 click should not leak `@webkit-playwright-x64-ubuntu24-64-core-node22`

23586 passed, 705 skipped


Merge workflow run.

@github-actions

Copy link
Copy Markdown
Contributor

🔴 The CI failures are caused by this PR

Hi, I'm the Playwright bot. The 12 reported failures are three reporter-preprocessing tests failing on Windows, Linux (Node and Bun), and macOS.

Details

Caused by this PR — reporter preprocessing

At PR head e283581 (CI merge 72fad35), reporters.ts:120 now wraps every reporter in RedactingReporter, including reporters without secrets. This exposes live preprocessing objects through proxies:

  • reporter-preprocess.spec.ts:19 — the extra function wrapper changes the recorded skip location from reporter.ts:6 to index.js:5498.
  • reporter-preprocess.spec.ts:421 — setup/teardown protection uses a Set of original suites. Proxied suites do not match those entries, so operations that should throw instead succeed; the run exits with 1.
  • reporter-preprocess.spec.ts:508 — project exclusion now mutates the suite through proxies, allowing proxy objects into its underlying entries. The run times out instead of running only the retained project.

These are consistent failures in the changed reporter path, not evidence of unrelated flakes. See the Linux job log. After updating the CI database, each test has 4,053 passing run/platform results across 1,096 other workflow runs, with no failed attempts, from October 2–30. All three also pass on main at 3a76eca (run).

Caused by this PR — CI result writing

Some red checks are not additional test failures: the Chromium, installation, and HTML component jobs finish their tests successfully, then fail in ParquetReporter.onEnd with Error: An array was expected. The same unconditional wrapping passes proxy arrays to DuckDB. A focused check confirms that DuckDB accepts the original array but rejects the array returned by SecretsRedactor([]).

Uncertain — retry-only WebKit result

[webkit-page] page/page-leaks.spec.ts:85 › LE-001 click should not leak passed on retry. No matching failure was found outside this PR in the refreshed database, so I cannot call it a confirmed pre-existing flake. It is not one of the 12 failures above.

Triaged by the Playwright bot - agent run

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.

[api review 1.65] Reporter secrets option

1 participant