Skip to content

Commit fc43cd0

Browse files
committed
filter pass test skips
1 parent 168e876 commit fc43cd0

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

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

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,19 @@ repo=pytensor
77
issue_number=1124
88
title="Speed up test times :rocket:"
99
workflow=Tests
10-
latest_id=$(gh run list --workflow $workflow --status success --limit 1 --json databaseId --jq '.[0].databaseId')
11-
jobs=$(gh api /repos/$owner/$repo/actions/runs/$latest_id/jobs --jq '.jobs | map({name: .name, run_id: .run_id, id: .id, started_at: .started_at, completed_at: .completed_at})')
10+
latest_id=$(gh run list --branch main --limit 1 --workflow "Tests" --status success --json databaseId,startedAt,updatedAt --jq '
11+
. | map({
12+
databaseId: .databaseId,
13+
startedAt: .startedAt,
14+
updatedAt: .updatedAt,
15+
minutes: (((.updatedAt | fromdate) - (.startedAt | fromdate)) / 60)
16+
} | select(.minutes > 10))
17+
| .[0].databaseId
18+
')
19+
jobs=$(gh api /repos/$owner/$repo/actions/runs/$latest_id/jobs --jq '
20+
.jobs
21+
| map({name: .name, run_id: .run_id, id: .id, started_at: .started_at, completed_at: .completed_at})
22+
')
1223

1324
# Skip 3.10, float32, and Benchmark tests
1425
function skip_job() {
@@ -105,7 +116,8 @@ $all_times
105116
You can find more information on how to contribute [here](https://pytensor.readthedocs.io/en/latest/dev_start_guide.html)
106117
107118
Automatically generated by [GitHub Action](https://github.com/pymc-devs/pytensor/blob/main/.github/workflows/slow-tests-issue.yml)
108-
Latest run date: $run_date
119+
Latest run date: $run_date
120+
Run logs: [$latest_id](https://github.com/pymc-devs/pytensor/actions/runs/$latest_id)
109121
EOF
110122
)
111123

0 commit comments

Comments
 (0)