Skip to content

[Merged by Bors] - ci: rely on new bors functionality to block dependent PRs instead of label - #44572

Closed
bryangingechen wants to merge 3 commits into
leanprover-community:masterfrom
bryangingechen:bors-dependencies
Closed

bryangingechen wants to merge 3 commits into
leanprover-community:masterfrom
bryangingechen:bors-dependencies

Conversation

@bryangingechen

Copy link
Copy Markdown
Contributor

Currently, PRs that are labeled with blocked-by-other-PR cannot be merged, due to it being in block_labels in bors.toml. This is an issue for PRs that have been bundled using bors stack or bors link since if they list their dependencies in the PR, the dependent-issues workflow comes and adds that label. (cf. #42976 (comment) and this zulip message).

A new bors feature that should solve this has been deployed (leanprover-community/bors-ng#67). The new [dependencies] settings in bors.toml tell bors to read dependencies from the PR body with the same keywords as the dependent-issues action, and then bors will ensure that the listed PRs are all merged, closed, or in the same bundle before putting the PR on the queue. This PR contains the adaptations necessary to make use of this feature.

It also includes a bump to the leanprover-community/dependent-issues action to include some parsing fixes: leanprover-community/dependent-issues#1.


bryangingechen and others added 2 commits October 6, 2026 18:08
…the label

bors now reads `- [ ] depends on: leanprover-community#123` lines itself (the new
`[dependencies]` table), and lets a dependency through once it is linked
with the PR via `bors link` / `bors stack`, so the two merge together.
`blocked-by-other-PR` stays as dependent-issues' label for people and
dashboards, but no longer blocks bors.

Requires leanprover-community/bors-ng#67 to be deployed first: older bors
ignores `[dependencies]`, and would stop blocking on dependencies entirely.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@bryangingechen bryangingechen added CI Modifies the continuous integration setup or other automation LLM-generated PRs with substantial input from LLMs - review accordingly labels Oct 7, 2026
@github-actions

github-actions Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

PR summary 44ceb001ed

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 44ceb00).

  • +0 new declarations
  • −0 removed declarations

No declaration differences.


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

Current commit 44ceb001ed
Reference commit 75b4d103af

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/dependent-issues.yml

Comment thread bors.toml Resolved
Comment thread bors.toml Resolved
@joneugster joneugster self-assigned this Oct 9, 2026
@joneugster joneugster added the awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. label Oct 9, 2026
@bryangingechen bryangingechen removed the awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. label Oct 20, 2026
@joneugster

Copy link
Copy Markdown
Member

Thanks!

maintainer merge

@github-actions

Copy link
Copy Markdown

🚀 Pull request has been placed on the maintainer queue by joneugster.

@mathlib-triage mathlib-triage Bot added the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Oct 23, 2026
@adomani

adomani commented Oct 23, 2026

Copy link
Copy Markdown
Contributor

Thanks: let's see it in action!

bors merge

@mathlib-bors mathlib-bors Bot added the ready-to-merge This PR has been sent to bors. label Oct 23, 2026
@mathlib-triage mathlib-triage Bot removed the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Oct 23, 2026
mathlib-bors Bot pushed a commit that referenced this pull request Oct 23, 2026
…label (#44572)

Currently, PRs that are labeled with `blocked-by-other-PR` cannot be merged, due to it being in `block_labels` in `bors.toml`. This is an issue for PRs that have been bundled using `bors stack` or `bors link` since if they list their dependencies in the PR, the dependent-issues workflow comes and adds that label. (cf. #42976 (comment) and [this zulip message](https://leanprover.zulipchat.com/#narrow/channel/287929-mathlib4/topic/Stacked.20pull.20requests/near/629173087)).

A new bors feature that should solve this has been deployed (leanprover-community/bors-ng#67). The new `[dependencies]` settings in `bors.toml` tell bors to read dependencies from the PR body with the same keywords as the dependent-issues action, and then bors will ensure that the listed PRs are all merged, closed, or in the same bundle before putting the PR on the queue. This PR contains the adaptations necessary to make use of this feature.

It also includes a bump to the leanprover-community/dependent-issues action to include some parsing fixes: leanprover-community/dependent-issues#1.
@mathlib-bors mathlib-bors Bot added the bors-staging This PR is currently being built by bors on the staging branch. label Oct 23, 2026
@mathlib-bors

mathlib-bors Bot commented Oct 23, 2026

Copy link
Copy Markdown
Contributor

@mathlib-bors mathlib-bors Bot changed the title ci: rely on new bors functionality to block dependent PRs instead of label [Merged by Bors] - ci: rely on new bors functionality to block dependent PRs instead of label Oct 23, 2026
@mathlib-bors mathlib-bors Bot closed this Oct 23, 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 LLM-generated PRs with substantial input from LLMs - review accordingly ready-to-merge This PR has been sent to bors.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants