Repository navigation
LOCAL: post a Slack note when a fork build publishes or fails - #48
Merged
Merged
Conversation
A new notify-build job dispatches orca-fork-build to SwapLabsInc/SwapLabs as soon as the release goes live, or once the run cannot publish, with the outcome, commit, run id and (when published) tag. That repository's Orca sync note workflow posts it to Slack. It does not wait for the best-effort macOS leg, and like notify-devvms it reuses SWAPLABS_DEVVMS_DISPATCH_TOKEN and never fails the build. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This was referenced Oct 22, 2026
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.
ELI5
Slack now hears from each fork build. When a SwapLabs Fork Build publishes its release, or fails to, it tells SwapLabsInc/SwapLabs, which posts one line to the Orca sync channel.
What Changed
A new
notify-buildjob in.github/workflows/swaplabs-build.ymlsends anorca-fork-buildrepository dispatch to SwapLabsInc/SwapLabs. The payload carries:published,failedorcancelled;preflightbuilt (head_sha, falling back togithub.shawhen preflight itself failed);The job runs after
publish(needs: [preflight, draft, build-linux, publish], withalways()). So the published note goes out as soon as the release is live, without waiting for the best-effort macOS leg. It runs only for a build that started (should_build == 'true', or a failed preflight), so a no-op run posts nothing.Like
notify-devvms, it reusesSWAPLABS_DEVVMS_DISPATCH_TOKEN, holds noGITHUB_TOKENpermission, and never fails the build. A missing token is a notice and a failed dispatch is a warning. The contract tests that allowed onlynotify-devvmsto read that secret or to call another repository now allownotify-buildtoo.docs/reference/swaplabs-fork-builds.mddocuments the job.Why
The operator wants a Slack note when a fork build is published, not just when a sync merges. SwapLabsInc/SwapLabs#223 adds the receiving side:
orca-fork-build, validates the payload, and posts once per outcome and run;The existing
orca-fork-releasedispatch only fires on success and carries only the tag, so it could not report a failed build.Linked Issue
N/A: requested by the operator during the 22 October upstream sync (#47).
Visual Proof
N/A: CI workflow only.
Testing
swaplabs-build-workflow*.test.mjs: 4 files, 65 tests pass, including the newswaplabs-build-workflow-build-note.test.mjs. It covers the published, failed and cancelled payloads, a missing token, and a failed dispatch.oxfmt --checkandoxlintare clean on the changed files.check-changed-code-quality.mjssince66ee345e87: 0 findings.AI Disclosure
Prepared by Claude Code (Claude Opus 5.5) at the operator's request.
Agent skill upstream boundary
Notes
Cross-repo order does not matter. Before SwapLabs#223 merges, nothing listens for
orca-fork-build, so the dispatch is a no-op. Before this PR merges, that workflow simply receives none.🤖 Generated with Claude Code
Need help on this PR? Tag
@codesmith-botwith what you need.