Skip to content

feat(main): one-line setup-phase summary (#283 companion for the pre-build side) - #289

Merged
zackees merged 1 commit into
mainfrom
feat/setup-phase-summary
May 31, 2026
Merged

zackees merged 1 commit into
mainfrom
feat/setup-phase-summary

Conversation

@zackees

@zackees zackees commented May 31, 2026

Copy link
Copy Markdown
Collaborator

Mirrors the post-step cache save totals: line for the pre-build side. Operators see where the 28.6s pre-build budget went without scraping raw SETUP_SOLDR_PHASE_*_START_MS env vars.

Sample output:

setup phase totals: resolve=8.5s parallel-restore=8.9s target-tree=0.0s toolchain=8.9s install=2.2s zccache-seed=0.1s verify=0.1s cross-bootstrap=0.0s cook=152.4s total=181.0s

3 new unit tests; 8/8 phase-timing tests pass.

…mpanion)

Mirrors the post-step `cache save totals:` line from
`StatsCollector.saveSummaryOneLine()` for the pre-build side. Reads
the SETUP_SOLDR_PHASE_*_START_MS env vars (already recorded by
`markPhase`) and computes durations as deltas between adjacent phase
start times in declared serial order:

  setup phase totals: resolve=8.5s parallel-restore=8.9s
    target-tree=0.0s toolchain=8.9s install=2.2s zccache-seed=0.1s
    verify=0.1s cross-bootstrap=0.0s cook=152.4s total=181.0s

Without this, operators looking for "where did the pre-build time go"
have to scrape raw SETUP_SOLDR_PHASE_*_START_MS env vars from the
runner log and do the subtraction by hand. The aggregate makes
phase-level regression visible on the first read — same idea as
#283/#285/#287 for the post-step.

Wired at the end of `run()` in main.ts, just before `finishPhase
("action")`. Phases whose env var isn't set (passthrough mode, test
harness) are silently skipped — empty string returned when none are
present, no log line emitted.

3 new unit tests cover the happy path, the no-env-vars-set case, and
the partial-phase-set case. 8/8 phase-timing tests pass.

dist/main.js rebuilt via Linux/node:24.

Refs: this tick's observation that zccache Integration's pre-build
budget was 28.6s and the only way to see the breakdown was raw env
var inspection.

Co-Authored-By: Claude Opus 4.7 <[email protected]>
@zackees
zackees merged commit 291b130 into main May 31, 2026
5 of 6 checks passed
@zackees
zackees deleted the feat/setup-phase-summary branch May 31, 2026 04:56
zackees added a commit that referenced this pull request May 31, 2026
Picks up #289 — one-line setup-phase summary at end of pre-build.
The pre-build companion to the post-step `cache save totals:`
line. Operators see where the 28.6s pre-build budget went without
scraping raw SETUP_SOLDR_PHASE_*_START_MS env vars.

Co-authored-by: Claude Opus 4.7 <[email protected]>
zackees added a commit to forge-ci/zccache that referenced this pull request May 31, 2026
setup-soldr v0.9.28 lands forge-ci/setup-soldr#289 — one-line
setup-phase summary at end of pre-build. Mirrors the post-step
save-totals line for the pre-build side.

19 pins bumped across 9 files.

Co-authored-by: Claude Opus 4.7 <[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