Skip to content

ci: report Batteries results from Mathlib adaptation PRs - #95

Merged
bryangingechen merged 1 commit into
leanprover-community:masterfrom
marcelolynch:codex/batteries-pr-status
Nov 3, 2026
Merged

bryangingechen merged 1 commit into
leanprover-community:masterfrom
marcelolynch:codex/batteries-pr-status

Conversation

@marcelolynch

Copy link
Copy Markdown
Collaborator

Extend lean-pr-testing-comments.sh to report ordinary Mathlib adaptation PRs back to Batteries.

  • Accept PR context and the reporting App's login. Link each result to its adaptation PR.
  • Skip results for an outdated Batteries pin. Include the Wanted and import checks.
  • Preserve status comments and labels. Search all comment pages, so long discussions keep one status history.
  • Clear awaiting-mathlib only after its notification succeeds.

Existing push callers remain supported. Mathlib uses this script in a separate reporting job in leanprover-community/mathlib4#45478.

Validation: Bash syntax, ShellCheck, and local reporting checks pass. Live validation is pending.

Prepared with Codex.

@marcelolynch
marcelolynch marked this pull request as ready for review October 30, 2026 22:38
@marcelolynch
marcelolynch marked this pull request as draft October 30, 2026 22:38
@marcelolynch
marcelolynch marked this pull request as ready for review November 2, 2026 19:12
@bryangingechen
bryangingechen merged commit f1eb70c into leanprover-community:master Nov 3, 2026
mathlib-bors Bot pushed a commit to leanprover-community/mathlib4 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.
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.

2 participants