Skip to content

[Merged by Bors] - ci: support Batteries adaptation PRs - #45478

Closed
marcelolynch wants to merge 10 commits into
leanprover-community:masterfrom
marcelolynch:codex/retire-batteries-push-ci
Closed

marcelolynch wants to merge 10 commits into
leanprover-community:masterfrom
marcelolynch:codex/retire-batteries-push-ci

Conversation

@marcelolynch

@marcelolynch marcelolynch commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Support Batteries adaptations as ordinary Mathlib PRs from mathlib4-adaptations.

  • Allow full commit pins during PR tests. Bors still requires stable dependency references.
  • Reuse lean-pr-testing-comments.sh in a separate job with the mathlib-adaptations-status App. Preserve status comments, labels, and awaiting-mathlib notifications.
  • Skip reports for superseded Mathlib commits or outdated Batteries pins.

Keep push builds and status reports for existing adaptations in mathlib4-nightly-testing, with their current App. This lets this PR merge before Batteries #2049. TODOs mark the temporary reporting job and documentation for removal after those adaptations move.

Validation: CI's Actionlint passes for the shared workflow and all five callers. The restored job matches the existing reporting behavior. Live validation is pending.

Prepared with Codex.

@mathlib-dependent-issues mathlib-dependent-issues Bot added the blocked-by-other-PR This PR depends on another PR (this label is automatically managed by a bot) label Oct 29, 2026
@github-actions github-actions Bot added the CI Modifies the continuous integration setup or other automation label Oct 29, 2026
@github-actions

github-actions Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

PR summary 51ae464c57

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff (regex)

No declarations were harmed in the making of this PR! 🐙

You can run this locally as follows
## from your `mathlib4` directory:
git clone https://github.com/leanprover-community/mathlib-ci.git ../mathlib-ci

## summary with just the declaration names:
../mathlib-ci/scripts/pr_summary/declarations_diff.sh <optional_commit>

## more verbose report:
../mathlib-ci/scripts/pr_summary/declarations_diff.sh long <optional_commit>

The doc-module for scripts/pr_summary/declarations_diff.sh in the mathlib-ci repository contains some details about this script.

Declarations diff (Lean)

✅ Lean-aware diff — post-build, computed from the Lean environment (commit 51ae464).

  • +0 new declarations
  • −0 removed declarations

No declaration differences.


No changes to strong technical debt.
No changes to weak technical debt.

Current commit 51ae464c57
Reference commit 14577ea482

This script lives in the mathlib-ci repository. To run it locally, from your mathlib4 directory:

git clone https://github.com/leanprover-community/mathlib-ci.git ../mathlib-ci
../mathlib-ci/scripts/reporting/technical-debt-metrics.py pr_summary
  • The relative value is the weighted sum of the differences with weight given by the inverse of the current value of the statistic.
  • The absolute value is the relative value divided by the total sum of the inverses of the current values (i.e. the weighted average of the differences).

⚠️ Workflow documentation reminder

This PR modifies files under .github/workflows/.
Please update docs/workflows.md if the workflow inventory, triggers, or behavior changed.

Modified workflow files:

  • .github/workflows/build_template.yml
  • .github/workflows/ci_dev.yml

@marcelolynch marcelolynch changed the title ci: retire Batteries adaptation branch reporting ci: report Batteries adaptation PR results Oct 29, 2026
@marcelolynch marcelolynch changed the title ci: report Batteries adaptation PR results ci: support Batteries adaptation PRs Oct 29, 2026
@mathlib-merge-conflicts mathlib-merge-conflicts Bot added the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Oct 30, 2026
@mathlib-merge-conflicts

Copy link
Copy Markdown

This pull request has conflicts, please merge master and resolve them.

@github-actions github-actions Bot removed the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Oct 30, 2026
@marcelolynch
marcelolynch marked this pull request as ready for review November 2, 2026 19:14

@bryangingechen bryangingechen 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.

LGTM. Ping me after you update the pin!

@mathlib-dependent-issues mathlib-dependent-issues Bot removed the blocked-by-other-PR This PR depends on another PR (this label is automatically managed by a bot) label Nov 3, 2026
@mathlib-dependent-issues

Copy link
Copy Markdown

This PR/issue depends on:

@bryangingechen

Copy link
Copy Markdown
Contributor

Thanks!
bors r+

@mathlib-bors mathlib-bors Bot added the ready-to-merge This PR has been sent to bors. label Nov 3, 2026
mathlib-bors Bot pushed a commit that referenced this pull request Nov 3, 2026
Support Batteries adaptations as ordinary Mathlib PRs from `mathlib4-adaptations`.

- Allow full commit pins during PR tests. Bors still requires stable dependency references.
- Reuse `lean-pr-testing-comments.sh` in a separate job with the `mathlib-adaptations-status` App. Preserve status comments, labels, and `awaiting-mathlib` notifications.
- Skip reports for superseded Mathlib commits or outdated Batteries pins.

Keep push builds and status reports for existing adaptations in `mathlib4-nightly-testing`, with their current App. This lets this PR merge before Batteries #2049. TODOs mark the temporary reporting job and documentation for removal after those adaptations move.

Validation: CI's Actionlint passes for the shared workflow and all five callers. The restored job matches the existing reporting behavior. Live validation is pending.

- [x] depends on: leanprover-community/mathlib-ci#95

Prepared with Codex.
@mathlib-bors mathlib-bors Bot added the bors-staging This PR is currently being built by bors on the staging branch. label Nov 3, 2026
@mathlib-bors

mathlib-bors Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

@mathlib-bors mathlib-bors Bot changed the title ci: support Batteries adaptation PRs [Merged by Bors] - ci: support Batteries adaptation PRs Nov 3, 2026
@mathlib-bors mathlib-bors Bot closed this Nov 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bors-staging This PR is currently being built by bors on the staging branch. CI Modifies the continuous integration setup or other automation ready-to-merge This PR has been sent to bors.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants