Skip to content

fix(acceptance): page through releases when resolving the previous minor - #2765

Merged
jjbustamante merged 1 commit into
mainfrom
fix/acceptance-previous-minor-pagination
Nov 25, 2026
Merged

jjbustamante merged 1 commit into
mainfrom
fix/acceptance-previous-minor-pagination

Conversation

@jjbustamante

Copy link
Copy Markdown
Member

Summary

Every acceptance run on every pull request has failed since 2026-11-24T15:01:52Z on any matrix combination with lifecycle: previous:

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:

page 1 (30 items, none draft or prerelease):  v0.21.30 ... v0.21.1
page 2 begins:                                v0.20.20, v0.21.0, v0.20.19, ...

The last green run on main was at 2026-11-24T13:44:45Z, 77 minutes before that release. buildpacks/pack is unaffected because its minors hold far fewer patches, which is why only the lc_previous combinations fail and the rest show up cancelled by fail-fast. No pull request caused this: #1812 touches only a workflow YAML and fails the same way.

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.

This blocks every open pull request, so it wants to go in before anything else.

Output

Verified against the live GitHub API by calling FetchReleaseVersion directly, with the asset cache cleared.

Before

buildpacks/lifecycle n= 0 -> v0.21.30
buildpacks/lifecycle n=-1 -> ERROR: obtaining latest patch of previous minor
buildpacks/pack      n= 0 -> v0.40.11
buildpacks/pack      n=-1 -> v0.39.1

After

buildpacks/lifecycle n= 0 -> v0.21.30
buildpacks/lifecycle n=-1 -> v0.20.20
buildpacks/pack      n= 0 -> v0.40.11
buildpacks/pack      n=-1 -> v0.39.1

Documentation

  • Should this change be documented?
    • Yes, see #___
    • No

Test infrastructure only.

Related

No issue; found while triaging the open pull requests for 0.41.0.

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>
@jjbustamante
jjbustamante requested review from a team as code owners November 25, 2026 13:30
@github-actions github-actions Bot added this to the 0.41.0 milestone Nov 25, 2026
@github-actions github-actions Bot added type/enhancement Issue that requests a new feature or improvement. type/chore Issue that requests non-user facing changes. labels Nov 25, 2026
@jjbustamante
jjbustamante merged commit 8967697 into main Nov 25, 2026
16 checks passed
@jjbustamante
jjbustamante deleted the fix/acceptance-previous-minor-pagination branch November 25, 2026 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type/chore Issue that requests non-user facing changes. type/enhancement Issue that requests a new feature or improvement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant