4545 - name : Check workflow runner labels
4646 run : |
4747 python3 -B .github/scripts/check-runner-labels.test.py
48- python3 -B .github/scripts/private-linux-routing.test.py
4948 python3 -B .github/scripts/check-runner-labels.py
5049
5150 - name : Detect affected jobs
@@ -144,48 +143,11 @@ jobs:
144143 if : needs.changes.outputs.test_web != 'false'
145144 run : vp run --filter @t3tools/web test
146145
147- private-linux-status :
148- name : Request private server tests
149- needs : changes
150- runs-on : ubuntu-24.04
151- timeout-minutes : 5
152- permissions :
153- contents : read
154- statuses : write
155- outputs :
156- enabled : ${{ steps.request.outputs.enabled }}
157- if : >-
158- !cancelled() && vars.PRIVATE_LINUX_CI == 'true' &&
159- github.actor_id == '25274700' && github.triggering_actor == 'ScriptedAlchemy' &&
160- (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository)
161- steps :
162- - name : Request private server capacity
163- id : request
164- env :
165- GH_TOKEN : ${{ github.token }}
166- SERVER_TESTS : ${{ needs.changes.outputs.test_server }}
167- SOURCE_SHA : ${{ github.event.pull_request.head.sha || github.sha }}
168- run : |
169- set -euo pipefail
170- enabled=false
171- state=success
172- description='Hosted Linux CI selected'
173- if [[ "$SERVER_TESTS" != false ]]; then
174- enabled=true
175- state=pending
176- description="Requested private-linux:$GITHUB_REPOSITORY:$GITHUB_RUN_ID:$GITHUB_RUN_ATTEMPT:full"
177- fi
178- gh api --method POST "repos/$GITHUB_REPOSITORY/statuses/$SOURCE_SHA" \
179- -f state="$state" -f context='Private Linux CI' -f description="$description" \
180- -f target_url="$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID"
181- echo "enabled=$enabled" >> "$GITHUB_OUTPUT"
182-
183146 server :
184147 name : Server tests ${{ matrix.shard }}
185- needs : [changes, private-linux-status ]
148+ needs : [changes]
186149 if : >-
187- !cancelled() && needs.changes.outputs.test_server != 'false' &&
188- !(needs.private-linux-status.result == 'success' && needs.private-linux-status.outputs.enabled == 'true')
150+ !cancelled() && needs.changes.outputs.test_server != 'false'
189151 runs-on : ubuntu-24.04
190152 timeout-minutes : 30
191153 strategy :
@@ -270,7 +232,7 @@ jobs:
270232 check :
271233 name : Fork Check
272234 if : ${{ !cancelled() && github.repository != 'pingdotgg/t3code' }}
273- needs : [changes, private-linux-status, checks, clients, server, rust, mobile_native]
235+ needs : [changes, checks, clients, server, rust, mobile_native]
274236 runs-on : ubuntu-24.04
275237 timeout-minutes : 5
276238 steps :
@@ -279,12 +241,9 @@ jobs:
279241 RESULTS : ${{ toJSON(needs) }}
280242 run : |
281243 echo "$RESULTS" | jq -r 'to_entries[] | "\(.key): \(.value.result)"'
282- echo "$RESULTS" | jq -e '(."private-linux-status".result == "success" and ."private-linux-status".outputs.enabled == "true") as $private
283- | .changes.outputs as $gates
244+ echo "$RESULTS" | jq -e '.changes.outputs as $gates
284245 | {clients: ["test", "test_web"], server: ["test_server"]} as $renamed
285246 | all(to_entries[];
286247 .value.result == "success"
287- or (.key == "private-linux-status" and .value.result == "skipped")
288- or (.key == "server" and .value.result == "skipped" and $private)
289248 or (.value.result == "skipped"
290249 and (($renamed[.key] // [.key]) | all(.[]; $gates[.] == "false"))))' > /dev/null
0 commit comments