Skip to content

Trigger halide/Halide's upgrade-llvm workflow after publishing - #8

Open
alexreinking wants to merge 1 commit into
mainfrom
trigger-halide-llvm-upgrade
Open

Trigger halide/Halide's upgrade-llvm workflow after publishing#8
alexreinking wants to merge 1 commit into
mainfrom
trigger-halide-llvm-upgrade

Conversation

@alexreinking

Copy link
Copy Markdown
Member

Summary

upgrade-llvm.yml in halide/Halide currently only runs on its own daily cron, polling uv lock -P halide-llvm for changes. Since build-llvm.yml now publishes new releases proactively (auto-discovering main + the two prior LLVM majors, see #7), it can push-notify Halide right after a successful publish instead of making it wait for the next poll.

This adds a trigger-halide-upgrade job that runs after publish succeeds, mints a token for the LLVM_UPDATER GitHub App (the same one upgrade-llvm.yml already runs as in Halide) scoped to the Halide repo, and calls gh workflow run upgrade-llvm.yml --repo halide/Halide. This mirrors the existing reverse-direction pattern in Halide's pip.yml, which already calls gh workflow run rebuild-index.yml --repo halide/pypi after its own nightly publish.

Required manual setup (not doable from this PR)

  • Add LLVM_UPDATER_ID and LLVM_UPDATER_PRIVATE_KEY as secrets on halide/pypi (same values already configured on halide/Halide). The App doesn't need to be installed on halide/pypi — it only needs to be installed on halide/Halide, which it already is.
  • Confirm the LLVM_UPDATER App's permissions include Actions: write; today it's only used for contents/pull-requests, so this scope may need to be added in the App's settings.

Until both are done, this job will fail (harmlessly — it's independent of publish/rebuild-index, so it won't block releases), and Halide will keep relying on its daily poll in the meantime.

Test plan

  • actionlint .github/workflows/build-llvm.yml
  • After secrets/permissions are set up, dispatch build-llvm.yml once and confirm a run of upgrade-llvm.yml appears in halide/Halide's Actions tab shortly after publish completes

🤖 Generated with Claude Code

Reuses the LLVM_UPDATER GitHub App so a new halide-llvm release notifies
Halide immediately instead of waiting for its daily poll.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant