ci: add verify-sync workflow for monorepo drift detection#641
Open
johnformio wants to merge 1 commit into
Open
ci: add verify-sync workflow for monorepo drift detection#641johnformio wants to merge 1 commit into
johnformio wants to merge 1 commit into
Conversation
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.
Summary
Adds
.github/workflows/verify-sync.yml(and a companion.github/sync-verify.ymlexclude config) that runs only on sync PRs opened byformio/gh-workflows:bin/sync-oss.mjs. The job pulls downformio/nirvanaat the SHA stamped in the PR body's<!-- formio-sync-meta ... -->marker, runsverify-oss-sync.mjsagainst this repo's PR head, and posts a sticky comment summarising any drift. Critical drift (OSS contains changes not in nirvana) fails the check; informational drift (nirvana has content the PR doesn't) just reports.Regular PRs (dependabot, community contributions, hotfixes) lack the marker, so the job is skipped — no comment, no noise.
Prerequisites
MONOREPO_SYNC_TOKENwith read access toformio/nirvanaandformio/gh-workflows.formio/gh-workflowsmainmust containbin/verify-oss-sync.mjsandoss-templates/. These currently live on theper-release-oss-syncbranch — until that merges tomain, this workflow will fail at the "Checkout gh-workflows (verify tool)" step on any sync PR. Hold merging until then, or merge now and accept that the next sync PR will surface the missing-tool error and need to be re-run aftergh-workflowsis updated.Test plan
MONOREPO_SYNC_TOKENis set on this repo (or inherited from the org).formio/gh-workflows@maincarriesbin/verify-oss-sync.mjsbefore the next sync PR opens.release: <pkg>@<version>PR fromsync-oss.mjsshould show a greenverify-sync / comparecheck with a sticky comment.