Make WordPress Core

Changeset 56780


Ignore:
Timestamp:
10/04/2023 07:12:15 PM (18 months ago)
Author:
desrosj
Message:

Build/Test Tools: Don’t send a Slack notice for a workflow’s first failure.

After [53947], all workflows will automatically be restarted once in an attempt to rule out reasons for failures, such as timeouts or network hiccups.

Second attempt at [56404], which was previously reverted in [56407].
See #58867.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/.github/workflows/slack-notifications.yml

    r56537 r56780  
    7272            });
    7373
     74            if ( '${{ inputs.calling_status }}' == 'failure' && workflow_run.data.run_attempt == 1 ) {
     75              return 'first-failure';
     76            }
     77
    7478            // When a workflow has been restarted to fix a failure, check the previous run attempt.
    7579            if ( workflow_run.data.run_attempt > 1 ) {
     
    158162    timeout-minutes: 5
    159163    needs: [ prepare ]
    160     if: ${{ inputs.calling_status == 'failure' || failure() }}
     164    if: ${{ needs.prepare.outputs.previous_conclusion != 'first-failure' && inputs.calling_status == 'failure' || failure() }}
    161165
    162166    steps:
Note: See TracChangeset for help on using the changeset viewer.