This is an automated email from the ASF dual-hosted git repository.
klesh pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/devlake.git
The following commit(s) were added to refs/heads/main by this push:
new 50459f9ba fix(github): reduce workflow jobs page size (#9316)
50459f9ba is described below
commit 50459f9ba8f6d752d11564b8080997187d0e29b2
Author: LE COZ Cedric <[email protected]>
AuthorDate: Fri Nov 6 08:28:57 2026 +0000
fix(github): reduce workflow jobs page size (#9316)
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 (#3199).
---
backend/plugins/github/tasks/cicd_job_collector.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/backend/plugins/github/tasks/cicd_job_collector.go
b/backend/plugins/github/tasks/cicd_job_collector.go
index 670230d6c..b8a01bbd9 100644
--- a/backend/plugins/github/tasks/cicd_job_collector.go
+++ b/backend/plugins/github/tasks/cicd_job_collector.go
@@ -95,7 +95,7 @@ func CollectJobs(taskCtx plugin.SubTaskContext) errors.Error {
Table: RAW_JOB_TABLE,
},
ApiClient: data.ApiClient,
- PageSize: 100,
+ PageSize: PAGE_SIZE,
Input: iterator,
UrlTemplate: "repos/{{ .Params.Name }}/actions/runs/{{
.Input.ID }}/jobs",
Query: func(reqData *api.RequestData) (url.Values,
errors.Error) {