Skip to content

fix: retry listing jobs with per_page=30 on failure - #21

Merged
puerco merged 2 commits into
slsa-framework:mainfrom
HastD:per-page
Nov 22, 2026
Merged

puerco merged 2 commits into
slsa-framework:mainfrom
HastD:per-page

Conversation

@HastD

@HastD HastD commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

The GitHub API seems to experience server errors (e.g. HTTP 502) much more frequently when per_page=100 is set for certain requests, such as listing jobs for a workflow run. Instead of just failing in this case, we can make it more robust by starting over with per_page=30, which is the default and seems significantly less likely to fail in practice.

This should at least partially mitigate #19.

HastD and others added 2 commits November 20, 2026 10:19
The GitHub API seems to experience server errors (e.g. HTTP 502) much
more frequently when `per_page=100` is set for certain requests, such as
listing jobs for a workflow run. Instead of just failing in this case,
we can make it more robust by starting over with `per_page=30`, which is
the default and seems significantly less likely to fail in practice.
Signed-off-by: Adolfo García Veytia (Puerco) <adolfo.garcia@uservers.net>

@puerco puerco left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @HastD !

@puerco
puerco merged commit 69c3a6b into slsa-framework:main Nov 22, 2026
9 checks passed
@HastD
HastD deleted the per-page branch November 22, 2026 04:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants