Skip to content

Commit bdb8e2f

Browse files
committed
debug vars
1 parent 35e06c9 commit bdb8e2f

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

.github/workflows/nightly-throughput-stress.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,16 @@ env:
4141
jobs:
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

0 commit comments

Comments
 (0)