@@ -76,46 +76,30 @@ jobs:
7676 run : |
7777 echo "Test failed for rapids-singlecell"
7878 echo "failure_type=test" >> $GITHUB_ENV
79-
80- - name : Export failure_type output
81- if : always()
82- id : export_failure
83- run : |
84- echo "failure_type=${{ env.failure_type }}" >> $GITHUB_OUTPUT
85-
86- report-failure :
87- name : Report GPU CI Failure
88- needs : test
89- if : needs.test.result == 'failure' && github.event_name == 'schedule'
90- runs-on : ubuntu-latest
91- permissions :
92- issues : write
93- contents : read
94- env :
95- GH_TOKEN : ${{ secrets.TOKEN_FOR_ISSUE_WRITE }}
96- steps :
79+
9780 - name : Check for open failure issue
81+ if : failure() && github.event_name == 'schedule'
9882 id : find_issue
9983 run : |
100- FAILURE_TYPE="${{ needs.test.outputs.failure_type }}"
101- if [ -z "$FAILURE_TYPE" ]; then FAILURE_TYPE="test"; fi
102- echo "failure_type=$FAILURE_TYPE" >> $GITHUB_ENV
103- ISSUE_TITLE="GPU CI ${FAILURE_TYPE^} Failure"
84+ ISSUE_TITLE="Integration Testing CI ${failure_type^} Failure on python rapids_singlecell"
10485 echo "Checking for existing issue: $ISSUE_TITLE"
105- ISSUE_COUNT=$(gh issue list --repo scverse/rapids-singlecell --state open --search "$ISSUE_TITLE" --json number --jq 'length')
86+ ISSUE_COUNT=$(gh issue list --repo scverse/rapids_singlecell --state open --search "${ ISSUE_TITLE} " --json number --jq 'length')
10687 if [[ "$ISSUE_COUNT" -gt 0 ]]; then
88+ echo "${failure_type^} failure issue already exists for today."
10789 echo "issue_exists=true" >> $GITHUB_ENV
10890 else
10991 echo "issue_exists=false" >> $GITHUB_ENV
11092 echo "issue_title=$ISSUE_TITLE" >> $GITHUB_ENV
11193 fi
11294
11395 - name : Report failure issue
114- if : env.issue_exists == 'false'
96+ if : failure() && env.issue_exists == 'false' && github.event_name == 'schedule '
11597 run : |
11698 RUN_URL="${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
117- ISSUE_BODY="The GPU CI failed on ${failure_type} for scverse/rapids-singlecell. Please review logs in [integration-testing run](${RUN_URL})."
118- gh issue create --repo scverse/rapids-singlecell --title "${{ env.issue_title }}" --body "$ISSUE_BODY"
99+ ISSUE_BODY="The daily CI failed on ${failure_type} for rapids_singlecell failed. Please go to [the logs of the integration testing repo](${RUN_URL}) to review. @scverse/anndata"
100+ gh issue create --repo scverse/rapids_singlecell --title "${{ env.issue_title }}" --body "${ISSUE_BODY}"
101+
102+
119103
120104 keepalive-job :
121105 name : Keepalive Workflow
0 commit comments