Repository navigation
fix(ci): handle cache eviction and composed cleanup assertions - #4824
Conversation
(cherry picked from commit 0ccd0e6)
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. |
[High impact] The reviewed changes appear safe to merge; no blocking defect was found. SummaryThe PR saves validated task identities before the build and reuses them when staging the cache.
No actionable new issues were found. Review checks were static; tests were not run. Live PR status and previous review threads could not be retrieved, so supersession could not be confirmed. No previous findings were supplied. The merge bases differed, so the full PR diff was reviewed. Diagram%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[Turbo dry run] --> B[Validate and save task identities]
B --> C[Restore cross-run cache]
C --> D[Required build]
D --> E[Stage entries from saved plan]
E --> F{Required companions available?}
F -->|Yes| G[Copy complete entry]
F -->|No| H[Record missing task]
G --> I[Publish cache and availability index]
H --> I
I --> J[Downstream build and verification]
J --> K[Reuse hits and rebuild misses]
Reviews (3) · Last reviewed commit: "test(electron): assert composed launch c..." · Reviewed by Greptile |
(cherry picked from commit e1466dc480e715b427cddfc3569b2baf03574405)
Retain main's portable cache staging and composed Electron cleanup assertions from morluto#4824. Remove the superseded cache-retention workaround so the remaining diff only preserves spaced output flag values and their regressions.
Summary
Restore main CI across three independently reproduced blockers: cache entries can disappear after successful builds, the Electron launch regression reads obsolete raw error fields, and the French README needs a formatter-required blank line.
Problem and expected behavior
ENOENT. Turbo may evict cache hits during a build or an additional dry run. Successful builds do not reserve cache files; consumers must rebuild misses. This corrects the assumption introduced in perf(ci): upload only current portable build cache entries #4744.63c65a224. After [Bug] Active Electron capture discards incomplete process and transport cleanup owners #4805,analysisErrorWithCleanupFailurepreserves primary and cleanup diagnostics in a composed error. Raw.reason/.cause.reasonare obsolete test oracles. The scheduling hypothesis was rejected by the clean-main reproduction.Change and scope
projectAnalysisErrorrepresentation; remove parallel raw-error arrays. Preserve orphan/listener counts and verify both original failure provenance and every incomplete cleanup resource. Product cleanup logic is unchanged.Semantic owners: CI task-plan/cache handoff and the existing domain error projection. Product CLI/MCP, Evidence, provider authority and installation contracts are unchanged. Ordinary CI/test repairs; additional maintainer scope approval is not applicable.
Validation performed
Linux, pinned Node 24.18.0/npm 11.16.0, integrated with main
3fa972af7:npm run check:ci,npm run check,npm run docs:check, actionlint,git diff --check, and pre-push checks passed.An earlier combined local run hit an unchanged CLI case's 30-second deadline on busy cores; the unchanged file passed on two idle physical cores. The final integrated 311-test run passed without timeout changes. Local work used two CPUs, sampled peak family RSS at most 5.01 GiB, and no memory guard stopped work. No speedup claim. Local adapter fixtures do not establish real Electron GUI, Hopper/Ghidra, or non-Linux runtime behavior; hosted verification is tracked separately.
Author readiness
Human owner: @N0zoM1z0
These declarations record the human owner's explicit standing task instruction: “後續審閱,承擔,聲明 都同意!不用問我了”. No separate new human-review event is asserted.
Before merge