File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed
Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change 4141jobs :
4242 throughput-stress :
4343 runs-on : ubuntu-latest-4-cores
44- timeout-minutes : ${{ fromJSON(inputs.job_timeout_minutes || vars.NIGHTLY_JOB_TIMEOUT_MINUTES || 420) }}
44+ timeout-minutes : ${{ fromJSON(inputs.job_timeout_minutes || ( vars.NIGHTLY_JOB_TIMEOUT_MINUTES || ' 420') ) }}
4545
4646 steps :
47+ - name : Debug vars
48+ run : |
49+ echo "vars.NIGHTLY_TEST_DURATION: ${{ vars.NIGHTLY_TEST_DURATION }}"
50+ echo "vars.NIGHTLY_JOB_TIMEOUT_MINUTES: ${{ vars.NIGHTLY_JOB_TIMEOUT_MINUTES }}"
51+ echo "inputs.duration: ${{ inputs.duration }}"
52+ echo "inputs.job_timeout_minutes: ${{ inputs.job_timeout_minutes }}"
53+
4754 - name : Print test configuration
4855 run : |
4956 echo "=== Throughput Stress Test Configuration ==="
@@ -115,16 +122,16 @@ jobs:
115122
116123 echo "SCENARIO_EXIT_CODE=${PIPESTATUS[0]}" >> $GITHUB_ENV
117124
118- - name : Upload logs on failure
119- if : env.SCENARIO_EXIT_CODE != '0'
125+ - name : Upload logs on failure/cancellation
126+ if : failure() || cancelled()
120127 uses : actions/upload-artifact@v4
121128 with :
122129 name : throughput-stress-logs
123130 path : ${{ env.WORKER_LOG_DIR }}
124131 retention-days : 30
125132
126- - name : Notify Slack on failure
127- if : env.SCENARIO_EXIT_CODE != '0'
133+ - name : Notify Slack on failure/cancellation
134+ if : failure() || cancelled()
128135 uses : slackapi/slack-github-action@v2
129136 with :
130137 webhook-type : incoming-webhook
You can’t perform that action at this time.
0 commit comments