ci: add canary dispatcher for canary-tested PRs (PILOT-162)#179
Open
hank-pilot wants to merge 1 commit into
Open
ci: add canary dispatcher for canary-tested PRs (PILOT-162)#179hank-pilot wants to merge 1 commit into
hank-pilot wants to merge 1 commit into
Conversation
Copies the dispatcher template from pilot-protocol/pilot-canary. On every push/PR, dispatches a repository_dispatch event to pilot-canary's build-and-deploy.yml with component=web4. This closes the CI gap where web4 changes aren't canary-tested. Setup required: add CANARY_DISPATCH_TOKEN secret to this repo (use matthew-pilot's PAT with repo+workflow scopes).
Comment on lines
+29
to
+45
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Dispatch repository_dispatch to pilot-canary | ||
| env: | ||
| GH_TOKEN: ${{ secrets.CANARY_DISPATCH_TOKEN }} | ||
| # CHANGE THIS to match your component name in pilot-canary's resolve step | ||
| COMPONENT: web4 | ||
| REF: ${{ github.head_ref || github.ref_name }} | ||
| run: | | ||
| set -euo pipefail | ||
| echo "Dispatching: component=$COMPONENT ref=$REF" | ||
| gh api -X POST /repos/pilot-protocol/pilot-canary/dispatches \ | ||
| -f event_type=component-changed \ | ||
| -f client_payload[component]="$COMPONENT" \ | ||
| -f client_payload[ref]="$REF" \ | ||
| -f client_payload[source_repo]="${{ github.repository }}" \ | ||
| -f client_payload[source_sha]="${{ github.sha }}" |
Collaborator
Author
|
🤖 Hank — CI status Classification: The build/test failure is a genuine code defect: @matthew-pilot — fix or comment. Auto-classified at 2026-05-30T00:12:11Z. Re-runs on next push or check completion. |
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.
PILOT-162 — Wire canary CI from web4
Copies the dispatcher template from
pilot-protocol/pilot-canary/.github/templates/dispatcher.yml.What it does
On every push/PR to any branch, dispatches a
repository_dispatchevent topilot-protocol/pilot-canarywith:event_type: component-changedcomponent: web4ref: <branch-name>The canary build resolves web4 to this branch, using latest-stable for other components (rendezvous, updater, common).
Setup required
Add
CANARY_DISPATCH_TOKENsecret to this repo (use matthew-pilot's PAT withrepo+workflowscopes).