Repository navigation
fix(ci): repair capture ownership and portable ABI validation - #5224
Conversation
Keep exact cancellation causes and partial snapshot facts in regression oracles. Match fault injection to real directory handles and isolated MCP module ownership; await terminal cleanup progress within the existing test deadline. Reuse the valid ASAR Pickle fixture and preserve truncated-container rejection.
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. |
[Medium impact] The reviewed changes appear safe to merge; no actionable defect was found. SummaryRepairs executable sampling ownership and makes Flutter ABI validation portable across CLI and MCP clients.
The previous and current commits have different merge bases with the target commit, so this review covered the full PR diff. No previous review threads were supplied. GitHub access required authentication, so supersession and remote thread history could not be checked. Tests were not run during this review. Diagram%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[Sample selected executable] --> B[Borrow descriptor for positional reads]
B --> C[Wait for read to settle]
C --> D[Owner closes descriptor]
D --> E{Close succeeds?}
E -->|Yes| F[Return observation or retained read failure]
E -->|No| G[Retain exact owner for cleanup retry]
C --> H[Keep read error and observed cancellation separate]
Reviews (6) · Last reviewed commit: "fix(flutter): advertise portable Unicode..." · Reviewed by Greptile |
Keep the runtime provider mock in the isolated project after reused CLI graphs exposed lost fault injection. Use the existing owned CLI fixture for Inspector parity and update command checks, retain caller environment choices, and require the removed alias to fail with COMMAND_NOT_FOUND. Keep current test deadlines and production behavior.
Use the existing borrowed descriptor reader so stream cancellation cannot invalidate a handle owned by capture. Preserve the exact cancellation and permit immediate scope reuse after cleanup. Reproduce the native-stream failure with actual file IO and retain completed/failed-close controls. Synchronize runtime cancellation and backwards-clock injection with observed running progress. The corrected clock oracle now rejects a Date.now-based deadline under controlled rollback; keep test deadlines and narrow host cleanup checks unchanged.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9494e46c97
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
Integrate main at 8443692 while retaining the published PR history. The snapshot expectation is already fixed upstream in morluto#5224, so the PR diff now contains only the compressed-integer decoder and its regressions. Verified current-main regressions fail in seven target cases; the updated branch passes 241 related tests with two Windows-only skips. Static checks, test discovery and independent review passed.
main's morluto#5224 and morluto#4941 rewrote the snapshot, capture-progress, ZIP and runtime-observation tests that this branch's shared test-hardening commits patched. Take main's version of those files so the branch diff is only the HAR entry-scoping fix (12c6316). Co-Authored-By: Claude Opus 5.5 <[email protected]>
main's morluto#5224 and morluto#4941 rewrote the snapshot, capture-progress, ZIP and runtime-observation tests that this branch's shared test-hardening commits patched. Take main's version of those files so the branch diff is only the ARM32 Mach-O slice fix (1ccb40d). Co-Authored-By: Claude Opus 5.5 <[email protected]>
main's morluto#5224 and morluto#4941 rewrote the snapshot, capture-progress, ZIP and runtime-observation tests that this branch's shared test-hardening commits patched. Take main's version of those files so the branch diff is only the Webpack loader-alias changes (bdd57b4, 641f662, 3a0fd8a). Co-Authored-By: Claude Opus 5.5 <[email protected]>
main (morluto#5224) rewrote the update CLI test with the cliTest fixture. Keep that fixture and reapply this branch's split, so help output and the removed upgrade command each run under their own test deadline. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Problem and change
Repair required CI blockers at their producing boundaries:
FileHandlestream and leave its capture scope blocked. Reuse the existing borrowed descriptor reader; retain physical I/O failure, independently observed cancellation and exact failed-close ownership without discarding any of them.64abd4aefintroduced an ABI selector pattern rejected by JavaScriptvmode and clients without look-around support. Preserve literal Unicode labels through the shared CLI/MCP contract, advertise JSON SchemamaxLength, and enforce the same code-point bound with a capped iterator before the portable slash check. No label-sized copy is allocated.No new target authority or provider capability. Controlled Node children, disposable APK/file fixtures and loopback Inspector only; downloaded applications and external reverse-engineering providers were not executed.
Executed validation
048d70755: five implicated files reproduce 10 failures, 43 passes, 2 existing skips; clean-main execution also reproduces shared-worker mock ordering.2ef87e634: 65 pass, 4 existing skips across 8 files. All four injected pending-read/system-error/close combinations reject the older implementation; exact primary/cancellation facts, cleanup retry and immediate scope reuse pass after the fix. Lifecycle/ownership previously passed 29/29; replacing the monotonic clock withDate.now()fails the corrected oracle, and the real source was restored. Earlier broader CLI/MCP/snapshot/Inspector controls: 103 pass, 2 existing skips.a0edd145d. The advertised-pattern test reproduces the new ABI regression before this fix. After it, 26/26 tests across 3 files pass: CLI selection, real MCP SDK transport, AJV 2020-12 schema/admission agreement, JavaScript plain/u/vpatterns, Unicode limits and all four trailing line terminators. APKs are fixtures; grammar-only cases use an injected provider.npm run checkpasses types, lint, formatting, module/unused-code and architecture guards. Documentation checks and 5 onboarding tests pass; 1,643 files discovered exactly once.Linux, Node 24.18.0/npm 11.16.0; two CPUs, 3 GiB V8 cap and 8 GiB sampled RSS guard. RSS uses 20 ms sampling, may double-count shared pages and miss short-lived/reparented children. Agent tokens and CI-wide cost are unmeasured. An earlier Windows update-help timeout predates this PR; the owned fixture repairs its lifetime, while that stall's cause remains unconfirmed. Later complete Windows lanes passed. Current-head CI/reviews must qualify this final diff.
Author readiness
Human owner: @gensokyo-dev
The owner explicitly authorized ready PRs and delegated the declarations, waiving a separate personal final-diff review. Codex reviewed the diff and executed the stated checks; independent human review was not observed.