File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -24,9 +24,9 @@ jobs=$(gh api /repos/$owner/$repo/actions/runs/$latest_id/jobs --jq '
2424# Skip 3.10, float32, and Benchmark tests
2525function skip_job() {
2626 name=$1
27- # if [[ $name == *"py3.10"* ]]; then
28- # return 0
29- # fi
27+ if [[ $name == * " py3.10" * ]]; then
28+ return 0
29+ fi
3030
3131 if [[ $name == * " float32 1" * ]]; then
3232 return 0
@@ -75,7 +75,11 @@ echo "$jobs" | jq -c '.[]' | while read -r job; do
7575 fi
7676
7777 echo " Processing job: $name (ID: $id , Run ID: $run_id )"
78- times=$( gh run view --job $id --log | python extract-slow-tests.py)
78+
79+ # Seeing a bit more stabilty with the API rather than the CLI
80+ # https://docs.github.com/en/rest/actions/workflow-jobs?apiVersion=2022-11-28#download-job-logs-for-a-workflow-run
81+ times=$( gh api /repos/$owner /$repo /actions/jobs/$id /logs | python extract-slow-tests.py)
82+ # times=$(gh run view --job $id --log | python extract-slow-tests.py)
7983
8084 if [ -z " $times " ]; then
8185 # Some of the jobs are non-test jobs, so we skip them
You can’t perform that action at this time.
0 commit comments