Skip to content

Commit 28d5f62

Browse files
committed
switch to REST endpoint
1 parent 33082e0 commit 28d5f62

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

scripts/slowest_tests/update-slowest-times-issue.sh

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff 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
2525
function 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

0 commit comments

Comments
 (0)