From f68c75cf8697e20bbf339c3a08e1b8655cb112fc Mon Sep 17 00:00:00 2001 From: Ivan Shcheklein Date: Fri, 20 Nov 2026 18:26:01 -0800 Subject: [PATCH] Clarify live Drive CI status and run it after offline failures --- .github/workflows/drive-status.yml | 7 ++++++- .github/workflows/test.yml | 3 +++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/drive-status.yml b/.github/workflows/drive-status.yml index c9f871b..5fef727 100644 --- a/.github/workflows/drive-status.yml +++ b/.github/workflows/drive-status.yml @@ -22,6 +22,11 @@ jobs: HEAD_SHA: ${{ inputs.sha }} STATE: ${{ inputs.state }} run: | + case "$STATE" in + pending) description='Test workflow started. Open Details for progress.' ;; + success) description='All required tests passed.' ;; + failure) description='Test run did not pass. Open Details for the job logs.' ;; + esac gh api --silent --method POST "repos/$GITHUB_REPOSITORY/statuses/$HEAD_SHA" \ - -f context='Live Drive tests' -f state="$STATE" \ + -f context='Live Drive tests' -f state="$STATE" -f description="$description" \ -f target_url="$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID/attempts/$GITHUB_RUN_ATTEMPT" diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d5f357f..61aed1d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -54,6 +54,7 @@ jobs: python-version: ${{ matrix.pyv }} - name: Install dependencies + id: install run: python -m pip install -e '.[fsspec, tests]' - name: Run offline tests @@ -61,7 +62,9 @@ jobs: - name: Run live Drive tests id: live + # An offline failure still fails the job, but the live suite can run. if: >- + !cancelled() && steps.install.outcome == 'success' && github.actor != 'dependabot[bot]' && !startsWith(github.head_ref || github.ref_name, 'dependabot/') && ((github.event_name == 'pull_request' &&