@@ -87,41 +87,11 @@ jobs:
8787 echo "directory=$data_dir" >> "$GITHUB_OUTPUT"
8888 echo "expected_sha=$expected_sha" >> "$GITHUB_OUTPUT"
8989
90- - name : Remove records without measurable queue time
91- id : migration
92- env :
93- DATA_DIRECTORY : ${{ steps.data.outputs.directory }}
94- run : |
95- set -euo pipefail
96- marker="$DATA_DIRECTORY/migrations/remove-unmeasurable-jobs-v1.json"
97- performed=false
98- if [[ -f "$marker" ]]; then
99- summary='{"files_changed":0,"files_scanned":0,"negative_queue_records_removed":0,"records_removed":0,"records_scanned":0,"runnerless_records_removed":0}'
100- else
101- summary=$(
102- python3 .github/scripts/github-actions-queue/migrate_queue_records.py \
103- --jobs-dir "$DATA_DIRECTORY/jobs"
104- )
105- mkdir -p "$(dirname "$marker")"
106- jq . <<< "$summary" > "$marker"
107- performed=true
108- fi
109- echo "$summary" | jq .
110- {
111- echo "### Queue record migration"
112- echo
113- echo '```json'
114- echo "$summary" | jq .
115- echo '```'
116- } >> "$GITHUB_STEP_SUMMARY"
117- echo "performed=$performed" >> "$GITHUB_OUTPUT"
118-
11990 - name : Collect completed jobs
12091 id : collect
12192 env :
12293 GH_TOKEN : ${{ steps.collector-token.outputs.token }}
12394 DATA_DIRECTORY : ${{ steps.data.outputs.directory }}
124- MIGRATION_PERFORMED : ${{ steps.migration.outputs.performed }}
12595 MAX_WINDOWS : ${{ inputs.max_windows }}
12696 run : |
12797 set -euo pipefail
@@ -130,10 +100,6 @@ jobs:
130100 echo "::error::max_windows must be between 1 and 20"
131101 exit 1
132102 fi
133- max_runtime_seconds=2400
134- if [[ "$MIGRATION_PERFORMED" == "true" ]]; then
135- max_runtime_seconds=1800
136- fi
137103 summary=$(
138104 python3 .github/scripts/github-actions-queue/collect.py \
139105 --state "$DATA_DIRECTORY/state.json" \
@@ -145,7 +111,7 @@ jobs:
145111 --max-windows "$max_windows" \
146112 --max-workers 4 \
147113 --max-requests 12000 \
148- --max-runtime-seconds "$max_runtime_seconds"
114+ --max-runtime-seconds 2400
149115 )
150116 echo "$summary" | jq .
151117 {
@@ -163,13 +129,8 @@ jobs:
163129 - name : Build queue report
164130 env :
165131 DATA_DIRECTORY : ${{ steps.data.outputs.directory }}
166- MIGRATION_PERFORMED : ${{ steps.migration.outputs.performed }}
167132 run : |
168133 set -euo pipefail
169- if [[ "$MIGRATION_PERFORMED" == "true" ]]; then
170- rm -f "$DATA_DIRECTORY/report-state.json.gz"
171- rm -rf "$DATA_DIRECTORY/report-data"
172- fi
173134 summary=$(
174135 python3 .github/scripts/github-actions-queue/report.py \
175136 --jobs-dir "$DATA_DIRECTORY/jobs" \
0 commit comments