Skip to content

ci: run make build on PRs, cloud build only on main - #33

Merged
Ale Paredes (ale7714) merged 1 commit into
mainfrom
fix/make-build-on-prs
Oct 16, 2026
Merged

Ale Paredes (ale7714) merged 1 commit into
mainfrom
fix/make-build-on-prs

Conversation

@ale7714

Copy link
Copy Markdown
Contributor

Build Test cannot pass on a fork PR. The cloud builder clones the url in meta.json and checks out the PR SHA, which a clone of this repo lacks, so #32 fails with reference is not a tree on every platform, as has every fork PR since #21 added ref.

PRs run make build instead, the same setup.sh and build.sh the builder runs: linux inside the builder's own cloud-build-base:*-focal images, darwin on macos-15 with the builder's Python 3.13. These jobs run under pull_request with no secrets, so the safe to test label, pull_request_target and the label manager go away; the repo still makes a maintainer approve runs from external contributors. The cloud build runs only on pushes to main, so failures specific to the builder (brew deps, caches, model detection, the build block in meta.json) appear after merge.

Darwin cloud builds keep failing until viam-build/circle-build#49 lands (the cache bug behind #31). skip-update never took effect (viamrobotics/build-action#24), so labeled PRs ran viam module update with their own meta.json. build-action@v1 points at v1.6; the pin moves it to v1.7.4.

🤖 Generated with Claude Code

The cloud builder clones this repo and checks out the PR SHA, so it cannot build a fork PR's commit. Running `make build` on GitHub runners under `pull_request` tests the same scripts with no secrets, which retires the `safe to test` gate and its `pull_request_target` checkout.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@viam-ci-workflows viam-ci-workflows Bot added the safe to test Run CI on this PR (fork PRs need a maintainer to apply it) label Oct 16, 2026
@ale7714
Ale Paredes (ale7714) merged commit f7df9b8 into main Oct 16, 2026
6 of 7 checks passed
@ale7714
Ale Paredes (ale7714) deleted the fix/make-build-on-prs branch October 16, 2026 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe to test Run CI on this PR (fork PRs need a maintainer to apply it)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant