ci: sync pilo-cli:latest to main via pilo-evals-judge dispatch#536
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a GitHub Actions workflow to keep the pilo-cli:latest image tracking main by dispatching a repository_dispatch event to Mozilla-Ocho/pilo-evals-judge on every push to main (and via manual trigger), so scheduled evals run against the current main build rather than a stale image.
Changes:
- Introduces a new
trigger_main_build.ymlworkflow that fires apilo_main_buildrepository_dispatchtoMozilla-Ocho/pilo-evals-judge. - Includes a small metadata step to populate the dispatch payload with a commit timestamp.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+24
to
+28
| # head_commit is present on push events but absent on workflow_dispatch; | ||
| # fall back to the current UTC time so the payload is always populated. | ||
| TS="${{ github.event.head_commit.timestamp }}" | ||
| if [ -z "$TS" ]; then TS="$(date -u +%Y-%m-%dT%H:%M:%SZ)"; fi | ||
| echo "commit_timestamp=$TS" >> "$GITHUB_OUTPUT" |
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.
Why
The eval pipeline runs
pilo-cli:latest, but nothing currently moves that tag onmain—trigger_eval.ymlonly dispatches onevals/**branches, and the eval repo's build path tags by SHA, never:latest. As a resultpilo-cli:latesthas been frozen at a Feb-2026 build, so the scheduled "pilo-cli" eval line has been measuring stale code rather than currentmain.What this does
Adds
.github/workflows/trigger_main_build.yml: a thin trigger that, on every push tomain(plusworkflow_dispatch), fires apilo_main_buildrepository_dispatchtoMozilla-Ocho/pilo-evals-judge. All build logic lives there — this just signals the SHA. Mirrors the existingtrigger_eval.yml(samePILO_EVALS_DISPATCH_TOKENsecret, endpoint, and API version).Companion PR
Consumer side: Mozilla-Ocho/pilo-evals-judge#87 (
handle_pilo_main_build.ymlbuildspilo-cli:<sha>and moves:latest). That PR should merge first; once this one merges,:latestbegins trackingmainon every push.Test plan
trigger_eval.yml(secret, endpoint,X-GitHub-Api-Version)workflow_dispatch, confirm the eval repo's Handle Pilo Main Build run fires andpilo-cli:latestadvances to currentmain.🤖 Generated with Claude Code