Repository navigation
Fix stale bot skipping older PRs - #75761
Merged
Merged
Conversation
The first stale step used the default budget of 30 operations. Every run ran out after the newest ~800 of ~1900 open items, so PRs older than about apache#71300 were never marked or closed.
Andrushika
requested review from
amoghrajesh,
ashb,
bugraoz93,
gopidesupavan,
jason810496,
jscheffl and
potiuk
as code owners
October 27, 2026 13:45
vincbeck
approved these changes
Oct 27, 2026
henry3260
approved these changes
Oct 27, 2026
potiuk
approved these changes
Oct 27, 2026
Contributor
Backport successfully created: v3-4-testNote: As of Merging PRs targeted for Airflow 3.X In matter of doubt please ask in #release-management Slack channel.
|
1 task done
vatsrahul1001
pushed a commit
that referenced
this pull request
Oct 28, 2026
…PRs (#75761) (#75794) The first stale step used the default budget of 30 operations. Every run ran out after the newest ~800 of ~1900 open items, so PRs older than about #71300 were never marked or closed. (cherry picked from commit cb58200) Co-authored-by: Andrew Chang <[email protected]>
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.
Why
stale.ymlruns once a day. Its first step reads the open issues and PRs, newest first, in pages of 100. It marks a PR stale after 45 days without activity. It closes the PR 5 days later.Each run of the step has a limit of operations. The option for this limit is
operations-per-run. When a run reaches the limit, it stops and saves its position. The next run continues from that position.#14494 moved the bot to actions/stale in 2021. It did not set
operations-per-run. The default of 30 applies. Each page costs one operation.Airflow now has about 1900 open issues and PRs. In the last 14 runs, every run of the first step stopped with "No more operations left!". Each run read only the newest 750 to 880 items. In 12 of the 14 runs, the run did not find the saved position. It started again from the newest item. The lowest PR number that any run reached was #71329. In these 14 days, the bot did not check any older PR.
What
Set
operations-per-run: 500on the first step. In the log, each PR that the step marks costs about four operations. So 500 covers the 20 pages and about 100 marked PRs. One run then reads all items, and the saved position is not necessary. For this reason, I did not try to fix the saved position.The first run will mark the idle PRs that the bot skipped until now. Some of them wait for a review, not for the author. The same rule already applies to newer PRs today.
related: #3883, #14494
Was generative AI tooling used to co-author this PR?
Generated-by: Claude Code (Opus 5.5) following the guidelines