Skip to content

ci: auto-resolve lakefile.toml when merging main into the bump branch - #931

Open
jessealama wants to merge 4 commits into
leanprover:mainfrom
jessealama:ci/adaptation-pr-resolve-lakefile
Open

jessealama wants to merge 4 commits into
leanprover:mainfrom
jessealama:ci/adaptation-pr-resolve-lakefile

Conversation

@jessealama

@jessealama jessealama commented Sep 21, 2026

Copy link
Copy Markdown
Contributor

When main moves its Mathlib pin, the [[require]] block in lakefile.toml may conflict with the mathlib4-nightly-testing pin on the bump/v4.X.0 branch. The first step in create-adaptation-pr.sh (merge main into the bump branch) didn't handle such changes, so it bailed out. A solution is to resolve changes in lakefile.toml hunk-by-hunk in favor of the bump branch.

@jessealama
jessealama force-pushed the ci/adaptation-pr-resolve-lakefile branch 2 times, most recently from 3c627cd to 46bbf92 Compare September 21, 2026 12:18
main now pins a Mathlib revision in lakefile.toml, while bump/v4.X.0
branches point at mathlib4-nightly-testing. When main moves its pin,
the [[require]] block may conflict and create-adaptation-pr.sh bails out
in auto mode, so the bump branch reminder fires every few hours.

Resolve conflicting hunks in lakefile.toml in favor of the bump branch
with git merge-file --ours, keeping non-conflicting changes from main.
Merging main may change lakefile.toml (e.g. add a dependency) while
lake-manifest.json is taken whole from the bump branch, leaving the two
out of sync. Run lake update after the merge and commit the manifest if
it changed.
create-adaptation-pr.sh now runs lake update after merging main into the
bump branch, so the job that runs it needs a Lean toolchain. Use
lean-action@v1 like the other non-nightly workflows.
@jessealama
jessealama force-pushed the ci/adaptation-pr-resolve-lakefile branch from 46bbf92 to 84b49f7 Compare September 21, 2026 12:19
The resolved lakefile.toml always matches the bump branch's lake-manifest.json,
since the only [[require]] block is the Mathlib pin that both branches edit and
the bump branch wins. Running lake update was a no-op that required installing
Lean in the reminder workflow.
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.

1 participant