fix(renovate): Shard autodiscover across matrix to avoid 1h app token expiry#534
Merged
Conversation
… expiry Single autodiscover job now exceeds the 1h GitHub App installation token lifetime, causing mid-run `bad-credentials` failures. Split into 4 parallel matrix shards filtered by `RENOVATE_AUTODISCOVER_FILTER`; each shard mints its own token and finishes well under 1h. Targeted dispatch (single-repo override) preserved in a separate job.
Contributor
There was a problem hiding this comment.
Pull request overview
Splits the scheduled autodiscover Renovate job into 4 parallel matrix shards (each with its own GitHub App token and prefix-based RENOVATE_AUTODISCOVER_FILTER) so each shard completes within the 1h installation-token TTL, while keeping the existing targeted-repo behavior in a separate job.
Changes:
- Introduces
renovate-shardedjob (runs only when norepositoriesinput is provided) with a 4-way[a-e | f-m | n-r | s-z0-9]shard matrix, each minting its own app token and using a per-shard cache key. - Renames the prior job to
renovate-targeted(runs only whenrepositoriesinput is set), removes the now-redundant per-stepifon theConfigure targeted runstep, and namespaces its cache key with-targeted-to avoid collisions with shard caches.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
mnorbury
approved these changes
Jun 2, 2026
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.
Splits the single autodiscover Renovate job into 4 parallel matrix shards filtered by
RENOVATE_AUTODISCOVER_FILTERso each shard mints its own app token and finishes well under the 1h GitHub App installation-token lifetime (see run 26795902608 for thebad-credentials/Token expiredfailure mode).