ci/build-one: accept arbitrary commit input; publish to nightly-bisect-* tag#2116
Merged
Conversation
…t-* tag
build-one.yml gains an optional `commit` workflow_dispatch input. When
present, the checkout step pulls that ref and the resulting release is
tagged `nightly-bisect-<short>` (prerelease). When absent, the workflow
falls back to building HEAD and tags as
`nightly-bisect-<short>-<timestamp>` so repeated one-offs of the same
HEAD don't collide.
The tag namespace `nightly-bisect-*` is deliberately distinct from
nightly-YYYYMMDD-<short> (the daily scheduled releases produced by
build.yml) so:
- one-off bisect rebuilds don't pollute the dated nightly index
(enrich_manifest.py filters strictly on the dated naming pattern, so
nightly-bisect-* releases never enter manifest.{json,flat})
- the retention sweep (cleanup.yml) leaves them alone (same regex)
This is what enables `git bisect run` to invoke
gh workflow run build-one.yml -f platform=X -f commit=<sha>
for sub-nightly granularity. Combined with the upcoming contrib/
openipc-bisect host driver, that gives a full bisect loop down to a
single commit when daily granularity isn't enough.
Also bumped the retry budget to match #2115 (30 60 120 300 600 1200)
since build-one shares the same upstream-CDN flake exposure as the
matrix build.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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.
Summary
PR-E of six. Tiny CI-only change:
build-one.ymlgains an optionalcommitworkflow_dispatch input. With it,git bisect runcan drive sub-nightly granularity rebuilds when daily resolution isn't enough.What changes
commit:(SHA). When set, checkout pulls that ref.resolvejob computes the upload tag once and threads it via job outputs:commit:nightly-bisect-<short>(deterministic per commit, prerelease)commit:nightly-bisect-<short>-<UTC ts>(so repeated one-offs of the same HEAD don't collide)sha=,short=,platform=,one_off=true).30 60 120 300 600 1200).Tag namespace separation
nightly-bisect-*is deliberately distinct fromnightly-YYYYMMDD-<short>(the dated nightlies produced bybuild.yml):enrich_manifest.py(ci/nightly: manifest aggregator + 90-build retention sweep #2112) filters strictly on^nightly-[0-9]{8}-[0-9a-f]{7}$, sonightly-bisect-*releases never entermanifest.{json,flat}.cleanup.yml(ci/nightly: manifest aggregator + 90-build retention sweep #2112) uses the same regex, so the 90-build retention sweep leaves them alone. One-off bisect builds persist until you delete them manually.This means
sysupgrade --build=nightly-bisect-<short>won't resolve via the manifest path (correct — these aren't channel-published builds), butsysupgrade --url=<github asset url>works as always.Use it
Test plan
platform=hi3520dv200_liteand no commit → builds HEAD, publishes tonightly-bisect-<short>-<ts>.platform=hi3520dv200_lite -f commit=<earlier sha>→ builds that ref, publishes tonightly-bisect-<short>(deterministic).nightly-bisect-*entries inmanifest.flat).🤖 Generated with Claude Code