Repository navigation
fix(ci): guard non-OCA and orphan-upstream forks, skip superseded rebases - #17
Merged
Merged
Conversation
…ases Sync: - Mirror guard is now per fork (forks.yml `mirror`, default = upstream_org set). Non-OCA mirrors (ledoent/odoo, ledoent/sentry) are compared with their GitHub parent before merge-upstream, so sentry/master reports its divergence instead of 409-ing nightly. odoo-cloud-platform stays `mirror: false` (it carries real commits). - Compare 404 "No common ancestor" is reported as "no shared history" instead of falling through to a merge-upstream 409 (OpenUpgrade@20.0). - A diverged branch whose ahead commits are only sync merges / the distributor chore, with a net delta of forward-port.yml at most, is flagged "safe to reset" with the exact command. Never reset automatically. - Skipped branches say which side is missing them (merge-upstream's 404 is the same for both). - check_ledoent_branch targets the fork's real parent and default branch instead of hardcoded OCA / 18.0. Rebaser: - forks.yml `rebase_exclude` parks branches on purpose. - Branches whose every fork/upstream PR is closed or merged, branches with no commits of their own, and branches git cherry shows fully upstream are listed once as "to retire" instead of being rebased and re-reported. - Conflicts show the date of the base the branch was cut from. forks.yml: drop OpenUpgrade 20.0 from branches (orphan upstream; ours is the prod 20.0-campaign base), exclude 19.0-fix-stock-account-coa-account-type, mark odoo/sentry mirrors, and refresh stale comments (20.0 series, sentry release-branch model, seer's kencove parent, ddmrp MIGs retired).
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.
What changed
The 2026-11-28 digest reported the same failures it had reported for weeks. Four of the five headline problems sat in the script's blind spots, and the 28 rebase conflicts were mostly branches with nothing left to rebase. This PR closes those gaps. Alongside it, the forks themselves were cleaned up (branches retired or rebased, mirrors reset where allowed).
Sync (
fork_sync_digest.py)Per-fork
mirrorflag. It defaults to the current behaviour (on whenupstream_orgis set).ledoent/odoo,ledoent/sentry) are now compared with their GitHub parent before merge-upstream.sentry@masterwill report "diverged, 136 ahead" instead of an unexplained HTTP 409.odoo-cloud-platformis explicitlymirror: false: its 19.0 carries real commits, so merging is correct there.No common ancestor.
Safe-to-reset classifier. Flags a diverged branch as safe to reset when:
forward-port.yml.The digest then prints the exact reset command. It never resets on its own. Checked live: it flags
social@18.0(12 ahead, only deltaforward-port.yml) and correctly does not flagsentry@master.Skip reasons. merge-upstream answers 404 "Branch not found" whichever side lacks the branch, and the digest used to call all of them "not on upstream". The skipped branches now say which side is missing it.
sale-workflow@20.0,report-print-send@19.0/20.0) are all missing on fork.check_ledoent_branchuses the fork's real parent and its default branch, not the hardcodedOCA/18.0fallbacks.Rebaser
rebase_exclude:(fnmatch globs) parks a branch deliberately.Listed once as "to retire", not rebased or counted as conflicts:
git cherryshows are fully upstream.Branches with no PR keep rebasing, because some are aggregated by repos.yaml without one.
Conflict rows show the base date of the commit the branch was cut from (
· base from YYYY-MM-DD). That separates "upstream did this months ago" from a fresh conflict.forks.yml20.0frombranches:. It has no shared history with OCA's 20.0, and it is the base of the prod-pinned20.0-campaignand the open 20.0 fork PRs, so it must not be reset.rebase_exclude: [19.0-fix-stock-account-coa-account-type], a real conflict with OCA#5881 that needs a lab check first.mirrorflags:ledoent/odooandledoent/sentrygetmirror: true;odoo-cloud-platformgetsmirror: false.*-kencovebranches),kencove/seer, defunct),Tests
python -m pytest .github/scripts/tests: 57 passed (15 new), andruff checkis clean.After merge
A manual run (
gh workflow run fork-sync-and-digest.yml -R ledoent/.github) should report:ledoentbranch is retired),