Skip to content

fix(ci): handle cache eviction and composed cleanup assertions - #4824

Merged
N0zoM1z0 merged 5 commits into
mainfrom
fix/ci-portable-cache-stage-20261017
Oct 17, 2026
Merged

N0zoM1z0 merged 5 commits into
mainfrom
fix/ci-portable-cache-stage-20261017

Conversation

@N0zoM1z0

@N0zoM1z0 N0zoM1z0 commented Oct 17, 2026 •

Copy link
Copy Markdown
Collaborator

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

Change and scope

  • Retain only validated task IDs/hashes before building and snapshot that plan without restarting Turbo. Invalid input clears stale plans.
  • Publish whole reusable cache entries plus a per-task availability index. Explicit missing-task records support normal consumer rebuilds, including complete eviction. Other I/O errors, malformed data, non-files and symlinks remain hard failures with cleanup.
  • Make the Electron fixture consume the shared projectAnalysisError representation; 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.
  • Update the owning testing guide and French spacing. Cross-run keys, restore prefix, 7-day/500 MB policy, required build outputs, prepack and downstream verification are 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:

  • Nine focused cache/scope/CLI/Electron test files: 311/311 passed.
  • Untouched clean-main Electron regression: one selected original assertion fails; 50 related tests pass after the test-only repair.
  • Real YAML/pinned Turbo tests cover pressure, partial/full eviction, byte-identical consumer output, warm reuse and rebuild exit 47; copy-time disappearance, EACCES, symlinks and cleanup remain covered.
  • Full REA workflow on the original pinned baseline plus this fix: six-task pressure build, 18 payload files plus availability metadata; fresh restoration has 6/6 hits and all 1,693 runtime/skill/catalog files match SHA-256 digests.
  • Final 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.

  • I reviewed the final diff and relevant existing code, understand the change and its edge cases, and take responsibility for the complete PR, including AI-assisted work.
  • I checked the evidence above, confirmed it supports the current change, and recorded meaningful validation gaps.
  • I declare this PR ready for initial maintainer review.

Before merge

  • Concrete CI recovery outcome; scope and authority are resolved.
  • Regression and negative coverage retain required builds and actual failures.
  • Owning documentation is current; no generated outputs or unrelated product changes.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ⚠️ Failed 2026-10-17T16:02:26.234619Z 658589c PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@greptile-apps

greptile-apps Bot commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[High impact] The reviewed changes appear safe to merge; no blocking defect was found.

Summary

The PR saves validated task identities before the build and reuses them when staging the cache.

  • Build jobs keep working when Turbo evicts cache entries.
  • The French README separates its language links from the heading.
  • Electron launch tests check errors through one shared shape.

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]
Loading

Reviews (3) · Last reviewed commit: "test(electron): assert composed launch c..." · Reviewed by Greptile

@N0zoM1z0 N0zoM1z0 changed the title fix(ci): handle cache eviction and French README formatting fix(ci): handle cache eviction and composed cleanup assertions Oct 17, 2026
@N0zoM1z0
N0zoM1z0 merged commit 3ddb2e4 into main Oct 17, 2026
39 checks passed
@N0zoM1z0
N0zoM1z0 deleted the fix/ci-portable-cache-stage-20261017 branch October 17, 2026 17:08
morluto added a commit to ShuaixinHuang/rea that referenced this pull request Oct 17, 2026
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.
@morluto morluto added area: build Build, CI, packaging, and publishing bug Something isn't working labels Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: build Build, CI, packaging, and publishing bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants