Repository navigation
ci(start-wrt): detect changes and upload rerun-safely like the other products - #4779
Conversation
…products StartWRT is a product like every other, so it now uses the CI mechanisms #4763 built for StartOS and the debs instead of older copies of them: - .github/scripts/classify-event.sh holds the event logic build-products.yaml ran inline: a pull request's files, or a push's diff from the workflow's last successful push build. start-wrt.yaml's new changes job runs it in place of its paths: filters, so a superseded queued push's StartWRT changes still build. - changed-products.mjs lists StartWRT and records which workflow builds each product; --workflow limits its output to that workflow's products. - scripts/s3-put-once.sh is StartOS's skip-identical-bytes S3 upload, now shared with StartWRT's deploy, so re-running a StartWRT deploy resumes it. - pr-retarget.yml grants StartWRT's changes job the permissions it needs. Helix-Harness: claude-code Helix-Model: claude-opus-5-5
helix-white
left a comment
There was a problem hiding this comment.
Requesting one change on ac95e1f.
Load StartOS upload tooling from the workflow commit, not the published build's commit (.github/workflows/startos-image.yaml, deploy checkout). build-products.yaml dispatches the publisher on a branch and passes the original build SHA separately. A build already running when this PR merges can therefore invoke the updated workflow with a pre-PR inputs.commit. That checkout has no scripts/s3-put-once.sh, so every platform's upload fails with exit 127 after deploy-prepare has registered the version. Publishing an older retained build has the same problem.
The proposal checks out github.sha for the upload helper while retaining inputs.commit for image assembly and the published commit. It records that ownership, adds a regression assertion with distinct workflow/build SHAs, and corrects the publisher header's overly broad claim that every step uses the build commit.
Reviewed change classification, retarget permissions, and both upload callers. git merge-tree --write-tree origin/master HEAD reports no conflicts. Existing CI has no reported failures, with build/test jobs still pending. No builds, tests, or lint were run during review; the proposed regression assertion is unexecuted.
Proposed changes: ac95e1f...proposal/4779
Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol
Helix-Harness: claude-code Helix-Model: claude-opus-5-5
|
Adopted the proposal as
|
helix-white
left a comment
There was a problem hiding this comment.
Approved on e7ef262. The change since my previous review matches the proposal and resolves the older-build deployment regression: upload tooling follows the workflow commit, while image assembly and published commit ownership remain pinned to the build. The contract comment, corrected publisher header, and distinct-SHA regression assertion are included.
git merge-tree --write-tree origin/master HEAD is clean. I read the author's verification report, including the regression failing with the previous workflow. Current CI is pending; no builds, tests, or lint were run during re-review. No remaining findings.
Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol
Dismissed by Helix: the changes require a substantive PR brief update. StartOS upload tooling now comes from the workflow commit rather than the published build commit, fixing missing-helper failures for older builds. The substantive brief must explain this tooling provenance change while distinguishing the unchanged build-pinned images and release metadata.
Summary
StartWRT change detection now matches the other products.
start-wrt.yamlno longer haspaths:filters. Every push and pull request runs a short "Detect StartWRT changes" job, which runs.github/scripts/classify-event.sh start-wrt.yaml.build-products.yamlnow calls the same script for its own products; it holds the logic that workflow ran inline.paths:looked only at the triggering push's own commits..github/scripts/changed-products.mjslists StartWRT with the paths and push-only release paths its filters had.--workflowlimits a run's output to that workflow's products.build-products.yaml'sproducts=stays the four products that share the compile.Rerun-safe uploads.
scripts/s3-put-once.showns the S3 upload rule: an existing key fails the upload unless it already holds the same bytes, or the dispatch setsforce-overwrite. StartOS's deploy legs and StartWRT's deploy both call it.Also:
pr-retarget.ymlgrants StartWRT's reusable-workflow callpull-requests: readandactions: read, which the new job needs.check-pr-retarget-workflows.pyasserts it.scripts/s3-put-once.shrepublishes StartOS and StartWRT. A pull request touching it builds nothing.build.mkheader now name the shared product list instead of StartWRT's own filter.Implementation diff: +198 / −138 lines in 7 files (excludes lockfiles, tests, docs, release notes, and changelog). I counted
check-pr-retarget-workflows.py, a CI assertion script, as a test. The comment-only edits tostartos-iso.yamland StartWRT'sbuild.mkcount as docs.Approach
build-products.yaml:Testing
All 167
.github/actionstests pass locally one7ef26274, along with the release-notes script tests andcheck-pr-retarget-workflows.py.ghandgit. They cover pull request files, renames, a push diffed from the last successful run, recovery of a superseded push's changes, the 10-page search and dispatch. The StartWRT cases also check that it searchesstart-wrt.yaml's own runs.lsnote in the migration-payload step, unchanged from master.e7ef26274passed: 35 checks passed and 21 were skipped by design. The skipped ones are the deploy and publish jobs, which don't run on pull requests; migration images for platforms that have none; the OpenWrt image; and the retarget workflow's calls.os-image=true, with StartWRT absent fromproducts=. "Detect StartWRT changes" reportedstart-wrt=trueandproducts=start-wrt, and StartWRT's riscv64 build then ran and passed..github/actionstests, passed as well.start-wrt.yaml's last successful push run, which predates this job.STARTWRT_ALPHA_REGISTRYis set.Neighbors
shared-libs/crates/**. Once this merges, StartWRT's classifier entry needs those paths too, alongside the deb products'.Helix-Harness: claude-code
Helix-Model: claude-opus-5-5