Skip to content

ci(release): retain DMG recovery experiment without cache or supervision - #103

Closed
JUNERDD wants to merge 7 commits into
mainfrom
ci/release-pipeline-performance
Closed

JUNERDD wants to merge 7 commits into
mainfrom
ci/release-pipeline-performance

Conversation

@JUNERDD

@JUNERDD JUNERDD commented Nov 6, 2026 •

Copy link
Copy Markdown
Owner

This experiment retains separate DMG jobs for recovery and passive build/packaging diagnostics. Rust release caching and the custom DMG process supervisor have been removed because the measurements did not justify keeping them.

Commit 9f267cd removes the release Rust cache, its compiler/SDK key generation, benchmark namespace/save conditions and hit summary; deletes the 205-line DMG supervisor, worker subprocess, phase deadlines and forced cleanup; and removes the additional packaging-step/codesign timeouts and detach retry override. Packaging now uses the same passive diagnostics as #104 and dmgbuild's normal execution/retry policy. Overall job limits and the existing Intel smoke deadline remain. Net change: 208 fewer lines.

Decision Evidence
Remove Rust release caching Same-commit cold/warm run took 40:39 in both attempts. Cargo did less work, but the complete workflow did not improve.
Remove DMG supervision and phase timeout policy The experimental 60-second detach limit caused a packaging failure. The same app later detached in 0.529 seconds. The policy added failure and maintenance cost without an established net benefit.
Retain separate DMG jobs only as an experiment Earlier package-only recovery reused successful 20–31 minute Intel builds, but archiving/transfers/setup add success-path cost. Recovery value is established; overall acceleration is not.
Retain the persistence-test correctness fix It compares reopening with the checkpoint durably saved by close; FSEvents can advance after a live snapshot. Production Rust logic is unchanged.
Do not add Swift caching Not implemented or measured.

Production candidates are reviewed independently in #104 (diagnostics) and #105 (automatic PR candidate discovery/promotion). Their validated commits are unchanged. This branch retains the older explicit-source candidate experiment to support the DMG recovery workflow; it is not a replacement for #105 and should not be merged as a bundle.

Validation for this cleanup: actionlint for the four calling/shared workflows, scoped formatting, Python syntax and stderr callback checks, exact byte comparison of build.py/dmg_progress.py with validated #104, no remaining release-cache/supervisor references, and staged/introduced-commit secret scans passed.

CI at 9f267cdb is successful after one targeted Rust rerun. Both native builds, DMGs, macOS 15 verification, Intel Release smoke and feed signing passed on the first attempt. The first attempt took 41:43 but failed the unchanged persistence test at persistence.rs:51 (scanned_files was 1, expected 0). The exact test and four-case persistence suite passed locally; rerunning only Rust and its dependent summary passed in 1:40. The 11 previously successful jobs retained their original timestamps and artifacts. Total elapsed time, including the 0:47 rerun gap, was 44:10. The intermittent assertion remains unresolved; no test was weakened.

Cleanup CI timing arm64 x64
Build job 12:59 31:12
Bundle, including Cargo 3:52 10:50
Cargo release 2:27 7:15
Xcode build step 6:54 15:06
Separate package job 2:37 4:04
DMG packaging step 1:22 1:44
macOS 15 verification job 1:17 5:04

Collection/feed signing took 0:57. Parallel jobs are not additive. This run verifies the deletion, not a speed improvement. Intel DMG diagnostics recorded five busy detach results followed by success on the sixth attempt under dmgbuild's default policy; no custom process supervisor was needed. Candidate artifact: 13505022535.

Historical validation at 764b5d6:

Validation Result
PR candidate CI Passed after a partial DMG rerun; complete candidate time including failure and recovery was 51:50.
Exact-SHA rehearsal Passed in 0:57.
Same-tree, different-SHA rehearsal Passed in 0:56.

Those rehearsals checked and deleted their drafts, preserved the existing v0.10.7 release and skipped publishing/mirroring. They are historical evidence, not validation of the new cleanup commit. Promotion time is not complete CI time.

Keep this PR draft and unmerged. No formal release, mirror update or local runtime launch is part of this cleanup. Future adoption order remains #104, update/revalidate #105 with its diagnostic wiring, then the final 0.10.8 version-bump PR.

Archive signed apps before independent DMG packaging and verification for each architecture. Add bounded DMG phase diagnostics, isolate Rust dependency caches by native toolchain, and capture Xcode build timings.
Use a fresh Rust cache namespace for the experiment branch and allow cache saves only for its manually dispatched artifacts runs. Keep the same key across cold and warm runs while preserving the production cache policy.
@vercel

vercel Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
atd-agent Ready Ready Preview Nov 6, 2026 12:40pm UTC

@JUNERDD JUNERDD changed the title ci(release): validate and reuse signed PR candidates ci(release): experiment with verified PR candidate promotion Nov 6, 2026
@JUNERDD JUNERDD changed the title ci(release): experiment with verified PR candidate promotion ci(release): retain performance experiments for evaluation Nov 6, 2026
Remove the release Rust cache after the cold and warm workflows showed no end-to-end improvement. Restore dmgbuild execution and retry defaults, keeping passive diagnostics and separate packaging jobs for recovery.
@JUNERDD JUNERDD changed the title ci(release): retain performance experiments for evaluation ci(release): retain DMG recovery experiment without cache or supervision Nov 6, 2026
@JUNERDD JUNERDD closed this Nov 6, 2026
@JUNERDD
JUNERDD deleted the ci/release-pipeline-performance branch November 6, 2026 18:54

This branch was successfully deployed

1 active deployment
Preview — 9f267cdb Deployed Nov 6, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant