Skip to content

ci_preflight: per-stage startedAt and seconds in preflight-summary.json (CR-143) - #402

Merged
luisleo526 merged 4 commits into
mainfrom
core/preflight-stage-times
Oct 17, 2026
Merged

luisleo526 merged 4 commits into
mainfrom
core/preflight-stage-times

Conversation

@luisleo526

Copy link
Copy Markdown
Collaborator

CR-143. scripts/ci_preflight.py now records startedAt (UTC ISO-8601) and seconds (monotonic duration, 3 decimals) for every stage in preflight-summary.json, plus both values for the run as a whole. A stage that is still running has seconds: null. The summary is still rewritten at every stage start and end. So when preflight times out, the summary shows which stage was running and how long it had been going.

Today a CLOUD preflight timed out four times at 1,800 s, each time in stage 23 of 51 (verifier-tests). The summary carried no timing, so nobody could tell which stage was slow.

Only keys are added; every existing key and value is unchanged. Readers checked: the tests in scripts/test_ci_preflight.py; lab remote's preflight-summary keyline (pineforge-workflow campaign/src/remote/keylines.mjs:145), which reads status, exitCode and stages only; ci_verify.py, which does not read this file. Red test first (971ee20), change second (a2bb972).

🤖 Generated with Claude Code

Comment on lines +775 to +777
'import json, pathlib; '
'p = pathlib.Path("logs/preflight-summary.json"); '
'pathlib.Path("logs/mid-run.json").write_text(p.read_text())'
luisleo526 and others added 2 commits October 17, 2026 15:45
Resolve CHANGELOG.md: this branch's preflight-timings line joins the
1.6.1 — Unreleased section #401 opened, instead of a separate Unreleased
heading, since it ships in the same release.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@luisleo526
luisleo526 merged commit c818585 into main Oct 17, 2026
20 checks passed
@luisleo526
luisleo526 deleted the core/preflight-stage-times branch October 17, 2026 10:28
luisleo526 added a commit that referenced this pull request Oct 17, 2026
* docs: the 1.6.1-rc.1 release candidate notes

Prepare the 1.6.1-rc.1 changelog entry dated 2026-10-17, carrying forward the reviewed 1.6.1 — Unreleased section (b148979, c818585) and naming all pull requests merged since v1.6.0 (#398, #400, #401, #402). Update the two CHANGELOG section anchor links in README.md and docs/pages/public-contract.md introduced by b148979 from #161--unreleased to #161-rc1--2026-10-17 while keeping the current final release and pair lines on 1.6.0.

* docs: drop the hpo-candidate pairing line from the 1.6.1-rc.1 entry (review of #403)

No pineforge-hpo release candidate exists yet and the reviewed 1.6.1 entry
did not claim one.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>

---------

Co-authored-by: HaoLiangWen <[email protected]>
Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
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