Repository navigation
fix(ci): align static checks and regression fixtures with current contracts - #7349
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
[Medium impact] The PR mainly changes CI reporting and regression fixtures, with one shared Electron graph identity change. Change the warning-text assertion before merging to meet the repository's test requirements. Findings
Fix with agent prompt### Issue 1
tests/boundary/filesystem/ciTestReports.test.ts:372
This assertion pins explanatory warning text. The test guide requires structured facts instead of frozen explanatory sentences, so a harmless wording change would fail CI.
Keep the skipped-count and module-name checks, but remove this prose check. If warning delivery needs a separate check, compare it with its owning formatter or constant. This repository requirement must be satisfied before merging.
```suggestion
```
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.SummaryThis PR aligns regression fixtures with current contracts and gives both Electron graph projections one source-scoped call-path identity.
Diagram%%{init: {'theme': 'neutral'}}%%
flowchart LR
P["Source path + ElectronCallPath"] --> I["electronCallPathId"]
I --> A["Application graph"]
I --> S["Semantic graph"]
Reviews (19) · Last reviewed commit: "test: avoid pinning registration guidanc..." · Reviewed by Greptile |
(cherry picked from commit 626d025)
Fork CI on 767a1d3 failed three groups that the upstream release passes, and Dependabot reported one new alert: - ciTestProjects pins the cli-boundary worker heap at upstream's measured 512 MiB; the fork still carried its 2026-10-24 768 MiB value. Adopt upstream's vitest.config.ts unchanged. - cliJsonStdinCli sized its stdin input for zod 4.4.3; the fork's zod 4.6.7 shifts the child's startup heap so the fixed input no longer exceeds the 256 MiB child heap. Take the test and its probe fixture from upstream main e3066c1, which sizes the input from the child's actual heap_size_limit. - ciPrHealth used a fixture PR date outside the reporter's 14-day lookback; apply the same one-line fix as upstream main (morluto#7349). - Dependabot alert morluto#5 (qs GHSA-6pq8-jhm2-2vcw, dev): upstream overrides typed-rest-client's qs to 6.16.0, inside the vulnerable range; raise the override to 6.16.1 and regenerate the license inventory. Also record deferrals for the five pins now behind the registry (isomorphic-git, oxfmt, oxlint, release-please, stream-chain); npm audit reports 0, and release-please is bound to its 17.3.0 patch. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Retain the independently approved three-file directory-diagnostic patch without changes while incorporating the merged upstream morluto#7349 CI repairs. Reviewed patch: 3d65eb23d01da9b6df786ad0db337dcff79d85923f23678a5168babb88c16080. Original independent approval was relayed by the coordinating task. This base-update proposal still awaits independent integration review. No remote publication or merge is authorized by this local proposal.
Port only the ciPrHealth public CLI fixture timestamp correction from morluto/rea commit 1201c25 (morluto#7349). Preserve the fixed-clock collector fixtures and production reporting policy. Validation: ciPrHealth Vitest 19/19; check:fast and architecture guards pass. Full check reproduces the baseline Knip unused InspectApkSignatureInput failure.
Current Android contract precondition (2026-10-27)
Current head
93f99e67fd2a5c23a2a96369a5163d5d23cf5817adds 4 lines in one test file. The MCP contract loop now explicitly requestsdetail: "complete"only when that contract declares the field, matching the test's requirement for inline Evidence instead of the JNI contract's summary default. Named-operation, raw Evidence, Ajv schema and cleanup assertions remain intact. This follow-up changes no feature implementation or other tests. Normal pre-commit formatting/lint and pre-push typecheck/lint 2/2 passed (27.4 s), with hooks enabled.Shared isolated evidence used actual failed CI merge
423db9eplus the patch: the existing JNI owner MCP proof passed 1 selected / 4 unselected (35.66 s), and typecheck passed (17.157 s). This is shared diagnostic evidence, not a complete POSIX test-file run or current-branch CI pass. This head's own main CI 40501833777 is queued (checked 2026-10-27 12:14:07 UTC); its required conclusion is pending. Original feature and engine-validation limitations below retain their scope.Earlier upstream test compatibility (2026-10-27)
Historical head
5733ebdd0e59de45ecd76e7e512443b3e46d7222aligned only the two native artifact tests and their shared fixture with merged upstream #7479 (740c0f56, fixed main570abe95). This commit leaves the existing feature/production source and all other tests unchanged. All three Git blobs match that upstream revision; merge-tree against it is clean. Normal pre-commit formatting/lint and pre-push typecheck/lint 2/2 passed (26.884 s), with hooks enabled.The 24/24 loader/verifier check was shared validation executed on #7062 at
a2161f78; it was not this branch's full verification. Historical main CI 40496049946 subsequently failed the Android MCP inline-Evidence contract case corrected above. The earlier green head and this native-fixture head are superseded. The dated checks and limitations below remain evidence for their named revisions.Summary
Repair the current static-check and regression failures while preserving admission, ownership, uncertainty and sensitive-value handling. The latest source-scoping change also left Electron application and semantic graphs computing different IDs for the same wrapper path; both projections now use one source-scoped identity owner, with the existing regression assertions unchanged.
Changes
92213a91, keeping the upstream artifact-coverage file and its additional integrity controls exactly.Earlier CI repair evidence (2026-10-27)
Earlier repair head:
df7536df29d00fbdbaeed4a6c9dcdde19c45d43b. The last full upstream synchronization is pinned0d1d6e85. The net diff against that fixed baseline is 31 files. The shared CI repair wave changes regression fixtures only; production source and the original feature behavior were not expanded. Launcher ownership, malformed-input refusals, native admission, source identities, cleanup retries and sensitive-value controls remain enforced.Native artifact and client fixture checks used the actual CI merge
b2011fd3and its matching three-task build. The results and unavailable coverage are separated below:The earlier retained-root capture correction was checked with 2 selected producer controls passing; the actual process-capture file's 24 Windows PTY cases were unavailable locally. No actual Linux/macOS run is claimed by these fixture checks.
On that historical branch head, normal pre-push typecheck/lint passed 2/2 tasks; hooks were kept enabled. The focused results above describe their executed fixture/build revisions, not a complete run on every branch.
All 13 shared repaired test files are byte-identical to root head
df7536dfafter porting. Read-only merge analysis against fixed upstream5b292b63was clean after the minimal overlap corrections. No full main merge was performed for this wave; merge analysis does not establish CI success.Earlier shared validation remains historical: Apple projection 39/39 and canonical CLI examples 9/9; SAZ CLI/MCP 18 passed / 1 skip after its required build; five public regression files 63 passed / 4 skips at
6e0c0c9f; four Electron files 34 passed / 3 skips; Java files 35 passed / 5 skips; provider/overview/workflow files 15 passed / 1 skip. The borrowed #7336 and #7335 fixture commits retain their authored history. A two-line Electron fixture overlap was aligned with upstream without importing unrelated main changes.Historical snapshot at 2026-10-27 13:32 CST: the then-head hosted CI 40455150833 is queued; its CI required gate has not completed. No failed code job was reported at this query; that is not a completed CI pass. Previous-head results do not establish current-head success. Linux-only extraction-close, FIFO/socket, fake-gh and process/alias coverage still require hosted CI. Human readiness remains a separate declaration below.
Shared fixture repair validated at
46662ce6Historical head:
46662ce6e39c6359517b993c0a405c6b4b998b58. Shared verification source:f353e201. The sharedf353e201repair corrects 8 test/fixture files (146 insertions / 71 deletions) relative to the preceding root repair; it changes no production code. The small POSIX tshark fixture is aligned exactly with fixed upstream365fb03e(bloba59f73d9), retaining its canonical-xwire response, ordinary flat response, version and argument guards. The Windows.cmdfixture retains the nine flat declaration fields; its separate upstream wire-response branch merges without a conflict. Actual Git Bash execution produced byte-exact canonical wire and flat JSON; version and invalid-argument controls passed. Source inspection shows that the new upstream producer derives DNS answer ownership from the separate wire acquisition, so the old flat-only declarations were retired from this shell fixture. No production DNS model was imported and no boundary assertion was weakened.The identity, client and earlier PCAP checks below used actual CI merge
fc8fd620and its matching runtime build (3 successful tasks). The Mac helper checks are controlled local evidence; hosted coverage is recorded separately:46662ce6(see below).An additional local shared-CLI control command was not fully green: in
tests/boundary/cli/sharedJavaScriptCliSession.test.ts, the malformed-JSON failure,invalid_requestand worker-retention assertions passed, but its lateranalyze-javascript-applicationcommand exited 1 instead of 0 (line 853). That command reported 1 passed / 1 failed / 24 unselected. No clean-baseline attribution or production fix is claimed for that failure.The previous root macOS job also reported three
hdiutil verifyresource-unavailable failures on its newly created DMG, before Vitest. This wave does not change the DMG reader or claim that condition is fixed. Four other existing macOS jobs advanced successfully through that same DMG verification stage.Normal hooks remained enabled. The canonical shell-only follow-up reused successful cached typecheck/lint results; its pre-commit hook reported no matching tasks, rather than claiming a new TypeScript test run. The 20 shared repaired test/fixture files were identical across the five branches at that repair wave; later root-only corrections are described below.
Hosted Apple E2E job 122046908907 passed on
46662ce6, including real Apple artifact verification and process boundary regressions. Its Source, build, documentation and static checks also passed. The overall run later stopped with seven newly exposed prerequisite/diagnostic fixture failures in shard 5, and its remaining jobs were cancelled when the correction below was pushed; that earlier run was not fully green. Initial human readiness below remains recorded independently of code-CI completion.Earlier root correction (2026-10-27)
Historical head:
0e95dc55f4572ff9f4f4f95ef235fc759f0d4bd4. The complete diff against last full upstream synchronization0d1d6e85is 41 files, 476 insertions / 192 deletions. Since46662ce6this follow-up changes 4 test files, 19 insertions / 5 deletions, with no production changes.617069 / 6578616d706c65 / 636f6d. The fixed upstream producer accepted the canonical wire fixture; the old exact assertion failed and the corrected exact assertion passed. This corrects the independent tshark lane's 1 failure / 144 passes / 1 skip rather than relaxing the equality check.psin a private bin. CWD discovery remains first and the Ghidra launchers remain unexecuted. A production executable-resolution probe confirmed the missing prerequisite, isolated selection, rejected Java and unchanged launcher bytes. The actual POSIX CLI case was not run locally.2143bb4aand already builtfc8fd620have byte-identical identity producers; real compiled CLI probes for missing absolute direct/Node launchers passed unknown identity, exact diagnostic/path, unchanged configuration and no-backup checks. The four POSIX symlink shapes remain unexecuted locally.Normal pre-commit formatting/lint and final pre-push typecheck/lint 2/2 tasks passed on this head.
Historical snapshot at 2026-10-27 14:52 CST: head
0e95dc55was mergeable and had a new main CI run 40463477194 queued, plus independent tshark run 40463477132 running. Neither had completed at that snapshot; previous-head passes were not completion evidence for that head.Earlier focused correction — 57136e6 (2026-10-27)
The preceding hosted failure was test shard 3 of CI run 40463477194, executing merge
b0d706a748d808a0d766e6244b3d11288d64640a(main0676ad25plus PR head0e95dc55). These five test files now preserve the current owners' contracts:cleanup_incompletewhile preserving the primary timeout category/code in its details.On the exact failed CI merge and its matching build (three tasks passed), all 9 previously failed cases passed; 116 other cases were not executed. This is focused evidence, not a claim that the whole suite passed. Normal pre-commit formatting/lint and pre-push typecheck/lint passed. The first Git transport failed before updating the remote; a checked, bounded HTTP/1.1 retry succeeded without disabling TLS verification or hooks.
Historical hosted CI — 2026-10-27 16:03 CST (superseded head)
Superseded root head:
57136e6f21b68849d2f949622151ff1eaafcdb3e. Its main CI 40469048903 completed successfully, including CI required. The separate real-packet/tshark run 40469048779 also completed successfully. That head's Conventional PR title and PR readiness checks passed; the PR was mergeable without conflict at that historical snapshot.These hosted results apply only to superseded head
57136e6fand do not establish CI success for then-current head5733ebdd. Earlier local results and limitations above remain revision-specific, including the focused 9 passed / 116 unselected result and the Windows commands that were not fully green; this update does not broaden their claimed validation scope.Follow-up test assertions
Commit
df9ac9e24checks browser cleanup failures at their diagnostic paths and requires non-empty launcher remediation. The focused browser, launcher, and Windows verifier files passed (18 tests) against the PR combined locally with main570abe95f. Negative controls using deliberately incorrect expectations failed in the two selected cases. Hosted CI for this head remains pending.Test-oracle cleanup follow-up
Commits
552cb4adcand53c27e43fstrengthen Evidence bundle, cleanup, ownership and progress assertions; make conditional coverage visible; and report skipped CI modules. An entirely skipped portable inventory now fails, while mixed skips remain visible but cannot yet be classified as required or optional from Vitest metadata alone. No real-provider coverage is implied by the fixtures.On the cleanup baseline, 78 focused CLI/MCP/acceptance tests passed with 3 platform skips, 45 lifecycle tests passed, and the report suite passed 10 tests; source-test groups, typecheck, lint and docs checks also passed. Against this PR combined locally with main
570abe95f, the registration review controls passed and 32 focused Evidence, cleanup and reporting tests passed. Hosted CI for the current head remains pending.Author readiness
Human owner: @ShuaixinHuang
The human confirmed initial review and ownership for this PR in this session. Subsequent user-authorized CI repairs retain that initial declaration under the contribution rules; the verification evidence above is current.
Before merge