Skip to content

ci: sync pilo-cli:latest to main via pilo-evals-judge dispatch#536

Merged
lmorchard merged 1 commit into
mainfrom
ci/trigger-main-build
Jun 10, 2026
Merged

ci: sync pilo-cli:latest to main via pilo-evals-judge dispatch#536
lmorchard merged 1 commit into
mainfrom
ci/trigger-main-build

Conversation

@lmorchard

Copy link
Copy Markdown
Collaborator

Why

The eval pipeline runs pilo-cli:latest, but nothing currently moves that tag on maintrigger_eval.yml only dispatches on evals/** branches, and the eval repo's build path tags by SHA, never :latest. As a result pilo-cli:latest has been frozen at a Feb-2026 build, so the scheduled "pilo-cli" eval line has been measuring stale code rather than current main.

What this does

Adds .github/workflows/trigger_main_build.yml: a thin trigger that, on every push to main (plus workflow_dispatch), fires a pilo_main_build repository_dispatch to Mozilla-Ocho/pilo-evals-judge. All build logic lives there — this just signals the SHA. Mirrors the existing trigger_eval.yml (same PILO_EVALS_DISPATCH_TOKEN secret, endpoint, and API version).

Companion PR

Consumer side: Mozilla-Ocho/pilo-evals-judge#87 (handle_pilo_main_build.yml builds pilo-cli:<sha> and moves :latest). That PR should merge first; once this one merges, :latest begins tracking main on every push.

Test plan

  • YAML parse + convention cross-check against trigger_eval.yml (secret, endpoint, X-GitHub-Api-Version)
  • After both PRs merge: trigger via workflow_dispatch, confirm the eval repo's Handle Pilo Main Build run fires and pilo-cli:latest advances to current main.

🤖 Generated with Claude Code

Copilot AI review requested due to automatic review settings June 10, 2026 23:34

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.yml workflow that fires a pilo_main_build repository_dispatch to Mozilla-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"
@lmorchard lmorchard merged commit d5501d5 into main Jun 10, 2026
14 checks passed
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.

2 participants