This is an automated email from the ASF dual-hosted git repository.

hubcio pushed a commit to branch feat/partition-routing
in repository https://gitbox.apache.org/repos/asf/iggy.git

commit 30e241103dbe304aa13bb6490e779d3123c728d1
Author: Hubert Gruszecki <[email protected]>
AuthorDate: Tue Oct 13 23:07:47 2026 +0200

    fix(ci): tolerate unavailable job timing metadata
    
    GitHub jobs-list API failures prevented the finalizer from checking
    required job results even when every build and test passed.
    
    Report unavailable timings as a warning and retain the independent
    needs-result gate for failed or cancelled jobs.
---
 .github/workflows/pre-merge.yml | 16 +++++++++++-----
 1 file changed, 11 insertions(+), 5 deletions(-)

diff --git a/.github/workflows/pre-merge.yml b/.github/workflows/pre-merge.yml
index 24c0017f1..602563c75 100644
--- a/.github/workflows/pre-merge.yml
+++ b/.github/workflows/pre-merge.yml
@@ -237,11 +237,17 @@ jobs:
         uses: actions/github-script@v9
         with:
           script: |
-            const jobs = await github.rest.actions.listJobsForWorkflowRun({
-              owner: context.repo.owner,
-              repo: context.repo.repo,
-              run_id: context.runId
-            });
+            let jobs;
+            try {
+              jobs = await github.rest.actions.listJobsForWorkflowRun({
+                owner: context.repo.owner,
+                repo: context.repo.repo,
+                run_id: context.runId
+              });
+            } catch (error) {
+              core.warning(`Job timings unavailable: ${error.message}`);
+              jobs = { data: { jobs: [] } };
+            }
 
             const jobTimes = {};
             const jobStatuses = {};

Reply via email to