Workflow Runs API pagination broken with created
and status
filters
#86766
Replies: 6 comments
-
Good time of your day @abhijit-hota |
Beta Was this translation helpful? Give feedback.
This comment was marked as off-topic.
This comment was marked as off-topic.
-
I observe the same behavior, albeit using only a single filter ( |
Beta Was this translation helpful? Give feedback.
-
I run into the same issue when listing workflow runs both with curl and go. |
Beta Was this translation helpful? Give feedback.
-
Here to report that I am encountering the same issue. I have been reproducing the issue on the Apache Airflow repository. From my understanding things break when two conditions are met
For example here when looking for the repositories workflows with a
The
I have also tested with varying values for the Removing all filters allow pagination on all the range. |
Beta Was this translation helpful? Give feedback.
-
This can also be reproduced using the Github UI. Once again on the Apache Airflow repository. If you go the page 40 of workflow runs it works fine. Once you reach page 41, you get this error screen inviting you to do additional filtering. |
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Bug
Body
I'm trying to fetch all workflow runs for a repository with
created
andstatus
filters. The corresponding URLs looks like this:https://api.github.com/repos/ORG/REPO/actions/runs?created=<created>&page=<n>&per_page=100&status=completed
The
created
filter looks like>=2023-07-13T15:04:05Z07:00
. Forpage
1 to 10, I receive hundred workflow runs per page. But forpage
> 10, I don't receive any workflow runs.Golang code I used for above output
This uses
go-github
As you can see, even if the first query returns a total of 19 pages and 1872 workflow runs, pages after 10 give no result. Interestingly, if I remove the two filters, the pagination works as intended.
Appreciate any kind of help and/or fix.
Beta Was this translation helpful? Give feedback.
All reactions