Repository navigation
fix(github): use PAGE_SIZE for jobs collector to avoid 502 on large runs - #9316
Open
cedriclecoz wants to merge 2 commits into
Open
cedriclecoz wants to merge 2 commits into
cedriclecoz wants to merge 2 commits into
Conversation
GitHub's /actions/runs/{id}/jobs endpoint times out and returns 502
with per_page=100 on workflow runs with many jobs (~70+), which
permanently fails Collect Job Runs and blocks PR conversion for the
repo. Reuse PAGE_SIZE (30), as cicd_run_collector already does to
avoid oversized responses (apache#3199).
fix(github): reduce workflow jobs page size
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.
pr-type/bug-fix,pr-type/feature-development, etc.Summary
This PR switches cicd_job_collector.go from the hard-coded PageSize: 100 to the existing PAGE_SIZE constant (30), which cicd_run_collector.go already uses to avoid oversized responses.
Does this close any open issues?
Closes #9315
Other Information
Verified in my setup: a repo that had failed Collect Job Runs on every run since 2026-10-23 completed in ~3 min with per_page=30 (6,293 job pages, no 502s). Its PR counts in DevLake now match GitHub exactly.