Repository navigation
fix(acceptance): page through releases when resolving the previous minor - #2765
Merged
Merged
Conversation
Every acceptance run with lifecycle 'previous' has failed since
2026-11-24T15:01:52Z with:
run combinations [p_current cb_current lc_previous] require PREVIOUS_LIFECYCLE_PATH to be set
expected nil: obtaining latest patch of previous minor
FetchReleaseVersion called ListReleases with nil options, so it only ever saw
the first page of 30 releases. buildpacks/lifecycle published v0.21.30 that
day, which made v0.21.1 through v0.21.30 fill the page exactly and pushed
v0.20.20 onto page two. The ~0.20.x constraint then matched nothing. The last
green run on main was 77 minutes before that release.
ListReleases is now paged through in full. Picking the target version also
steps back over the minors that exist instead of subtracting from the minor
number, so a minor that is never released no longer breaks resolution, and the
error names the repository and the line it ran out at.
buildpacks/pack was unaffected because its minors hold far fewer patches, which
is why only the lc_previous combinations failed.
Verified against the live API: before, buildpacks/lifecycle n=-1 returns the
error above; after, it returns v0.20.20. buildpacks/pack n=-1 returns v0.39.1
either way.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Signed-off-by: Juan Bustamante <bustamantejj@gmail.com>
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.
Summary
Every acceptance run on every pull request has failed since 2026-11-24T15:01:52Z on any matrix combination with
lifecycle: previous:FetchReleaseVersioncalledListReleaseswith nil options, so it only ever saw the first page of 30 releases.buildpacks/lifecyclepublished v0.21.30 that day, which made v0.21.1 through v0.21.30 fill the page exactly and pushed v0.20.20 onto page two. The~0.20.xconstraint then matched nothing:The last green run on
mainwas at 2026-11-24T13:44:45Z, 77 minutes before that release.buildpacks/packis unaffected because its minors hold far fewer patches, which is why only thelc_previouscombinations fail and the rest show up cancelled byfail-fast. No pull request caused this: #1812 touches only a workflow YAML and fails the same way.ListReleasesis now paged through in full. Picking the target version also steps back over the minors that exist instead of subtracting from the minor number, so a minor that is never released no longer breaks resolution, and the error names the repository and the line it ran out at.This blocks every open pull request, so it wants to go in before anything else.
Output
Verified against the live GitHub API by calling
FetchReleaseVersiondirectly, with the asset cache cleared.Before
After
Documentation
Test infrastructure only.
Related
No issue; found while triaging the open pull requests for
0.41.0.