Repository navigation
fix(ci): preserve focused Playwright file selection - #23270
Conversation
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (5)
💤 Files with no reviewable changes (1)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 4 remain after this review. 📝 WalkthroughWalkthroughE2E commands in the golden workflows, terminal IME workflow, and Hangul runner now pass spec paths without a Priority: ⬇️ Low Merge Risk: ⚪ Minimal · up to The focused commands and their file-selection check are ready for normal merge checks. Hosted native IME execution remains pending, but no resulting failure has been established. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 2 files. (2 skipped: 2 unsupported.)
✨ Finishing Touches 💡 2📝 Generate docstrings 💡
🛠️ Fix failing CI checks 💡
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. Comment |
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
This is a CI-only fix restoring Playwright file filters that a literal -- separator had disabled.
- Removed the
--separator from every focusedpnpm run test:e2e <files>invocation in.github/workflows/terminal-ime-e2e.ymland.github/workflows/golden-e2e-experiment.yml(Linux, macOS, Windows), plus the native IBustest:e2e:headfulargv inconfig/scripts/run-terminal-ibus-hangul-e2e.mjs. - Added a regression test (
config/scripts/playwright-focused-workflow-selection.test.mjs) that parses the two workflows and the runner source, extracts the four focused commands, and asks the installed Playwright CLI to list tests in a temp fixture — asserting each command selects only its requested files and excludestests/e2e/unrelated.spec.ts. - Updated the existing assertion in
config/scripts/terminal-ime-e2e-workflow.test.mjsto the new no---argv.
The mechanism checks out against the dependency itself: Playwright 1.63.0's program.js:50-53 computes dashDashIndex = process.argv.indexOf("--") and slices every argv entry after the first -- out of the test filters, so the requested files were silently ignored and the full suite ran. I reproduced the negative control in a scratch directory: the old shape lists both fixture files, the new shape lists only the requested one — so the new test genuinely fails when the bug is reintroduced. I also confirmed nothing else in the repo asserts the old shape, and the sibling workflows that already work (e2e.yml:286, windows-terminal-restart-e2e.yml:56-63) use this exact no--- form. Related contract tests (pr-e2e-gate-contract, package-electron-runtime-contract) and the two touched test files pass locally.
ℹ️ The regression guard's discovery is scoped to these two workflows
focusedArguments() reads only terminal-ime-e2e.yml, golden-e2e-experiment.yml, and the IBus runner, so the same pnpm run test:e2e -- <file> mistake could be reintroduced in another workflow without tripping it. This is not a defect in the fix — it is the boundary of what the new guard covers, and worth knowing when the next focused E2E line is added.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
Assert each golden platform step and its focused arguments before deduplicating Playwright discovery probes.
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
This run covers the four commits pushed since the prior Pullfrog review (d2ce8bf). They repair the getHourlyBuildIdentity unit test against the current package.json version; the Playwright file-selection fix from the prior review is unchanged.
- Added an optional
packageVersiontogetHourlyBuildIdentity— the function uses it when supplied and otherwise falls back to readingpackage.json, so production behavior is unchanged and tests no longer depend on the live package version. - Isolated the historical hourly test — the 2026-09-14 unpublished-release scenario now passes
packageVersion: '1.4.201', which is what keeps it on the1.4.203base instead of tracking main's1.4.214. - Added a package-version floor case — asserts that a package version newer than every published tag becomes the hourly base (
1.4.214-hourly.*, build number 1). - Updated the existing test inputs to match the shared contract.
ℹ️ The hourly test repair is unrelated to this PR's title and changes a production script
The new commits fix a test that is currently red on main — getHourlyBuildIdentity reads package.json at 1.4.214, but the historical case expects the 1.4.203 base — so the repair is warranted. It is, however, unrelated to the Playwright file-selection fix named in the title, and it extends a production build script's public signature. The PR description still states "No production … behavior changes" and does not mention the hourly work, so a reviewer reading the body alone would not know this is in scope.
Technical details
# Hourly identity repair is out of scope for the PR description
## Affected sites
- `config/scripts/hourly-build-version.mjs:82-91` — `getHourlyBuildIdentity` signature gains `packageVersion`; default path still reads `package.json`.
- `config/scripts/hourly-build-version.test.mjs:130-156` — historical test now injects `packageVersion: '1.4.201'`; new floor case uses `'1.4.214'`.
- `package.json:3` — main is at `1.4.214`, which is why the historical assertion (`1.4.203-hourly.*`) no longer holds without injection.
## Required outcome
- PR description to reflect that it also repairs the hourly-build-version test and amends a production script's API.
## Open questions for the human
- Is the hourly repair intended to be here, or should it be split into its own change? It fixes a currently-red test, so landing it is fine; only the description is misleading.DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
This delta covers the one commit pushed since the prior Pullfrog review (5ee4e27). The Playwright file-selection fix and the hourly-build identity test repair are unchanged.
- Added per-platform command assertions —
assertGoldenPlatformCommandsinconfig/scripts/playwright-focused-workflow-selection.test.mjsparses eachRun golden E2E tests on {Linux,macOS,Windows}step ingolden-e2e-experiment.ymland asserts the exactpnpm run test:e2e <files>set that platform runs, so each platform's command shape is checked independently before the existing dedup-based CLI probe. Verified the job id (golden-e2e), step names, and expected sets match the workflow; the test passes locally.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
…yai#23270) Playwright 1.63 (taken with v1.4.215) reads the forwarded `--` in `pnpm run test:e2e -- <spec>` as ending file selection, so the real-IME X11 step ran all 841 e2e tests and timed out at 25 minutes. Cherry-picks upstream's dffb349, which is on upstream main but in neither v1.4.215 nor v1.4.216. Declared as pending-upstream exceptions so the next sync does not reset these files to a tag that still has the bug; drop them once a stable tag carries it. Also declares the transcript-replay registration seam.

ELI5
The focused IME job was accidentally running 824 tests instead of four, so it hit its 25-minute deadline before the native input checks. This restores the file filters passed to Playwright.
What Changed
Remove the extra
--before test filenames in the X11 IME command, its native IBus runner, and the golden-test experiment commands. Playwright 1.63 treats arguments after that separator as user arguments and removes them from file selection.A regression test reads the actual workflow/runner arguments and asks the installed Playwright CLI to list tests in a small fixture. It verifies that every command selects only its requested files, including an unrelated file that must stay excluded. It also checks each Linux, macOS, and Windows invocation before deduplicating the CLI probes.
Why
Both #23162 and #23257 cancelled their X11 jobs after executing unrelated browser tests. The exact old invocation lists 824 tests across 387 files; the corrected invocation lists four tests in the intended IME file. Correcting argument delivery preserves the intended coverage and deadlines instead of increasing the job timeout.
Linked Issue
None. Investigated from CI failures on #23162 and #23257.
Visual Proof
N/A — CI command selection only.
Shared hourly CI prerequisite
The branch also carries the shared hourly-build fixture correction from #23274. Historical package-version inputs are explicit, with exact version/build-number assertions retained and a newer-package control. Default build commands still read package.json; the dedicated no-module-mocking lint rule stays enabled.
Testing
--listreproduces 824 versus four tests without launching any application.e48b231d9dc5, headd2ce8bfe15ba.Review
No test assertions, skips, retries, key timing, or deadlines changed. The unrelated full suite remains owned by the existing E2E workflow. Commands remain compatible with Linux, macOS, and Windows.
Agent skill upstream boundary
Notes
No production, SSH, or workspace behavior changes.
Checklist