Repository navigation
ci(sync-develop): push main into develop directly (#3102) - #3103
Merged
Merged
Conversation
Owner
Author
|
NEEDS CHANGES at
|
Sync Develop opened a pull request from sync/main for every push to main, each one merged by hand. The owner ruled that main -> develop needs none. * sync-develop.yml gains a merge job in conda-tag: it loads the maintenance deploy key, checks develop out beside main's script, and runs util/sync_develop.py --merge. The deploy key bypasses develop's ruleset 28079111; the release App does not. * --merge merges main into develop with a merge commit titled as the pull request was and pushes it. A push refused while develop moved is merged afresh and retried once; any other refusal fails the job. * A merge that conflicts is aborted and sets conflict=true, and only then does pr mirror sync/main and open or update the pull request. The step summary names the path taken. * workflows.rst, releasing.rst and maintenance.rst describe the direct push. * tests/project runs --merge against scratch repositories and pins the jobs, the deploy key and the guards; each fails with its behaviour removed.
JarryShaw
force-pushed
the
ci/3102-sync-develop-direct-push
branch
from
November 26, 2026 22:11
c82b59f to
7e13055
Compare
Owner
Author
|
GOOD TO GO at
|
1 of 14 tasks
Contributor
|
Coverage: 94.73% (unit tier, Python 3.15,
Per-file detail: the |
Owner
Author
|
Ready to merge at |
Closed
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.
Please follow the guide below
Put an
xinto every box [ ] that applies to your pull request (like this: [x])Use the Preview tab to see how your pull request will look
Searched for similar pull requests
Followed the coding style (
make pylint,make mypy,make isort)make testpasses, and a test case covers the changeDescribed the user-visible change below and left its changelog entry to the maintainer, keeping
docs/source/changelog/andCHANGELOG.mdout of the diff, if the change is user-visible: N/A — centralisedWhat is the purpose of your pull request?
Tick the commit type your subject line carries.
fix— corrects a defectfeat— adds a featureperf— changes performance, not behaviourrefactor— changes neither behaviour nor performancetest— tests onlydocs— documentation onlyci— workflows or build toolingrelease— bumps the version or rolls up a distributionchore— anything elseAlso tick if it regenerates constant or registry tables, members keeping their numeric values (the
constlabel)Description of your pull request and other information
Closes #3102. Sync Develop merges
mainintodevelopand pushes it itself; only a conflict opens a pull request (options 1A and 2A).sync-develop.yml: newmergejob inconda-tagwithcontents: read. Its steps are "Load maintenance deploy key" (Create Release's pin), main's script, "Check out develop", "Configure git for the deploy key" and "Merge main into develop and push it".prnow needsmergeand runs only onconflict == 'true'. "Say why no pull request opens" moves intomerge.util/sync_develop.py --merge:git merge --no-fftitledchore: merge main into develop, pushed over ssh. A push refused whiledevelopmoved is merged afresh and retried once; any other refusal fails the job. A conflict is aborted and handed topr. The step summary names the path taken.workflows.rst(Sync Develop, Deploymentenvironment:),releasing.rst(Release Lines),maintenance.rst(Rebases).test_sync_develop_2942gainsTestTheMerge(scratch repos: clean push, level, conflict, retry, conflict on retry, two refusals, a refusal whiledevelopstayed put, failed fetch) and pins for the jobs, the key and the guards.test_secret_environments_1968listsmerge. 13 mutations, each fails its pin.Measured, not changed:
PYPCAPKIT_ACTIONS_DEPLOY_KEY,PYPCAPKITandANACONDA_TOKENare repository secrets, andconda-tagholds none, thoughworkflows.rstandtest_secret_environments_1968say it does.mergenamesconda-taglike every other deploy-key job, so it works either way.Merge only after the 1.8.0 release freeze ends: Create Release is running on
mainnow.Tests:
tests/projecton 3.14, 2480 passed, 88 skipped (-n 4). actionlint 1.7.12 finds nothing.