Repository navigation
feat(main): one-line setup-phase summary (#283 companion for the pre-build side) - #289
Merged
Merged
Conversation
…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
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]>
This was referenced May 31, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
3 new unit tests; 8/8 phase-timing tests pass.