File tree 2 files changed +9
-3
lines changed
2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -528,13 +528,14 @@ jobs:
528
528
STATISTICS_SCRIPT : |
529
529
summary_line=$(tail -n1 test-te.log)
530
530
errors=$(echo $summary_line | grep -oE '[0-9]+ error' | awk '{print $1} END { if (!NR) print 0}')
531
- passed_tests=$(cat pytest-report.jsonl | jq -r 'select(."$report_type" == "CollectReport " and .outcome == "passed") | .outcome' | wc -l)
532
- failed_tests=$(cat pytest-report.jsonl | jq -r 'select(."$report_type" == "CollectReport " and .outcome == "failed") | .outcome' | wc -l)
531
+ passed_tests=$(cat pytest-report.jsonl | jq -r 'select(."$report_type" == "TestReport " and .outcome == "passed") | .outcome' | wc -l)
532
+ failed_tests=$(cat pytest-report.jsonl | jq -r 'select(."$report_type" == "TestReport " and .outcome == "failed") | .outcome' | wc -l)
533
533
total_tests=$((failed_tests + passed_tests))
534
534
echo "TOTAL_TESTS=${total_tests}" >> $GITHUB_OUTPUT
535
535
echo "ERRORS=${errors}" >> $GITHUB_OUTPUT
536
536
echo "PASSED_TESTS=${passed_tests}" >> $GITHUB_OUTPUT
537
537
echo "FAILED_TESTS=${failed_tests}" >> $GITHUB_OUTPUT
538
+ TIMEOUT_MINUTES : 120
538
539
ARTIFACTS : |
539
540
test-te.log
540
541
pytest-report.jsonl
Original file line number Diff line number Diff line change 19
19
type : string
20
20
description : ' Test artifacts to collect'
21
21
required : false
22
+ TIMEOUT_MINUTES :
23
+ type : number
24
+ description : ' Maximum test runtime, in minutes'
25
+ default : " 60"
22
26
23
27
jobs :
24
28
runner :
25
29
uses : ./.github/workflows/_runner_ondemand_slurm.yaml
26
30
with :
27
31
NAME : " A100"
28
32
LABELS : " A100,${{ github.run_id }}"
29
- TIME : " 01:00 :00"
33
+ TIME : " ${{ inputs.TIMEOUT_MINUTES }} :00"
30
34
secrets : inherit
31
35
32
36
run-unit-test :
67
71
- name : Run tests
68
72
shell : bash -x -e {0}
69
73
continue-on-error : true
74
+ timeout-minutes : ${{ inputs.TIMEOUT_MINUTES }}
70
75
run : |
71
76
${{ inputs.EXECUTE }}
72
77
You can’t perform that action at this time.
0 commit comments