ci/build-one: accept arbitrary commit input; publish to nightly-bisect-* tag#93
Merged
Merged
Conversation
…t-* tag PR-Bld-C in the mirror of OpenIPC/firmware's nightly redesign. Mirrors OpenIPC/firmware#2116. Adds an optional `commit` workflow_- dispatch input to `build-one.yml` so: - `gh workflow run build-one.yml -f platform=X -f commit=<sha>` builds the given SHA from `git bisect run`. - Output goes to `nightly-bisect-<short>` (prerelease) tag, distinct from the dated `nightly-YYYYMMDD-<short>` namespace produced by PR-Bld-A's master.yml. The manifest aggregator's regex only indexes `^nightly-[0-9]{8}-[0-9a-f]{7}$`, so one-off bisect rebuilds never enter manifest.{json,flat}. - Without `commit`, falls back to building HEAD and tags as `nightly-bisect-<short>-<UTC ts>` so repeated dispatches of the same HEAD don't collide. Also: - Retry budget around `bash builder.sh` matching master.yml + OpenIPC/firmware#2129's hardening. - BUILD_ID / BUILD_SHA / BUILD_PLATFORM env at the Build firmware step level (forward-compat with Phase 3 of the mirror plan). - Drops dead `env: TAG_NAME: latest` at workflow level. - Release body carries sha/short/platform/one_off=true for the aggregator's downstream consumers to easily distinguish bisect builds from dated nightlies. See ~/.claude/plans/mirror-nightly-redesign-to-builder.md. 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-Bld-C of three in the mirror of OpenIPC/firmware's nightly redesign. Mirrors OpenIPC/firmware#2116. Tiny CI-only change:
build-one.ymlgains an optionalcommitworkflow_dispatch input, enablinggit bisect runto drive sub-nightly granularity rebuilds.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).env: TAG_NAME: latest.Tag namespace separation
nightly-bisect-*is deliberately distinct fromnightly-YYYYMMDD-<short>(the dated nightlies produced bymaster.ymlafter #91):enrich_manifest.py(PR-Bld-B, ci/nightly: manifest aggregator + 90-build retention sweep #92) filters strictly on^nightly-[0-9]{8}-[0-9a-f]{7}$, sonightly-bisect-*releases never entermanifest.{json,flat}.cleanup.yml(PR-Bld-B) uses the same regex, so the 90-build retention sweep leaves them alone. One-off bisect builds persist until you delete them manually.Use it
Test plan
platform=<x> -f commit=<sha>→ builds that ref, publishes tonightly-bisect-<short>(deterministic).platform=<x>and no commit → builds HEAD, publishes tonightly-bisect-<short>-<ts>.nightly-bisect-*entries inmanifest.flat).See also
~/.claude/plans/mirror-nightly-redesign-to-builder.md.🤖 Generated with Claude Code