Skip to content

Start the policy syncs when a PR merges - #162

Draft
anandhu-eng wants to merge 2 commits into
mainfrom
ci/notify-policy-sync
Draft

anandhu-eng wants to merge 2 commits into
mainfrom
ci/notify-policy-sync

Conversation

@anandhu-eng

Copy link
Copy Markdown
Collaborator

Adds .github/workflows/notify-policy-sync.yml. For every PR merged into main, it starts two workflows in mlcommons/endpoints-automations:

  • Docs sync: updates the submitter docs. Changes go in a PR to mlcommons/endpoints-submission-docs; changes it can't settle and open questions about the rules go in issues there.
  • Infra sync: files spec issues in the repos whose code a rule change affects (endpoints-submission-cli, endpoints-lifecycle-manager, mlperf-endpoints-api).

What runs here. A single short job on pull_request_target. It checks out no PR code and runs no PR code. It creates a token that can only start workflows in endpoints-automations, then starts the two syncs. The syncs decide what's relevant; a PR that changes no rules file stops before any model call.

Secrets. The app's secrets are in this repo's AI workflow environment, which is limited to main with no required reviewers. Only workflows on main can read them, and merges start the syncs right away.

Tested. The same file runs in the sandbox policies repo; merging a test PR there started the docs sync, which stopped as expected.

Draft until:

  • the app's access to mlperf-endpoints-api is approved;
  • production dry runs of both syncs on the last merged policy PR look right.

Merging this PR starts both syncs for this PR itself. Neither does anything, because no rules file changes.

🤖 Generated with Claude Code

notify-policy-sync.yml starts two workflows in mlcommons/endpoints-automations for each PR merged
into main: the docs sync (endpoints-submission-docs) and the infra sync (spec issues in the CLI,
lifecycle manager and API repos). It reads the app secrets from the AI workflow environment.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

MLCommons CLA bot All contributors have signed the MLCommons CLA ✍️ ✅

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

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.

🔵 Needs a closer look

Inaccessible downstream workflows prevented verification of dispatch contracts and production effects, while production dry runs and app-access approval remain outstanding.

No open issues 🎉

What changed in this PR

Adds a workflow that starts downstream policy synchronization when a PR merges into main, without checking out or running PR code.

Changes:

  • Creates a short-lived app token scoped to Actions write access in mlcommons/endpoints-automations.
  • Dispatches the docs sync with the source repository, PR number, and merge commit SHA.
  • Independently dispatches the production infra sync for merges in mlcommons/endpoints_policies, even if the docs dispatch fails.
File Description
.github/​workflows/​notify-policy-sync.yml Adds the merge-triggered job that dispatches the docs and infra policy syncs.

Review effort: Balanced

@anandhu-eng
anandhu-eng marked this pull request as ready for review October 30, 2026 10:21
@anandhu-eng
anandhu-eng requested a review from a team October 30, 2026 10:22
@anandhu-eng
anandhu-eng marked this pull request as draft October 30, 2026 10:22
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