Skip to content

Commit ccb21d3

Browse files
committed
ci(prcheck): split pipeline script into client + thin runner
Refactor the prcheck pipeline script in preparation for a second runner that submits package builds. No behavior change: * Move .github/workflows/scripts/control-tower-prcheck/ to .github/workflows/scripts/control-tower/. * Extract HTTP/auth/polling helpers from run_control_tower_prcheck.py into a shared client.py module (post_scenario, get_job_status, poll_until_terminal, etc.). * Rename the runner to run_prcheck.py and reduce it to a thin CLI on top of client.py. * Update the sources-upload stages template to point at the new script paths.
1 parent 5737e80 commit ccb21d3

4 files changed

Lines changed: 273 additions & 230 deletions

File tree

.github/workflows/ado/templates/sources-upload-stages.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ stages:
111111
echo "##[endgroup]"
112112
113113
echo "##[group]Python dependencies"
114-
pip install -r .github/workflows/scripts/control-tower-prcheck/requirements.txt
114+
pip install -r .github/workflows/scripts/control-tower/requirements.txt
115115
echo "##[endgroup]"
116116
displayName: "Install dependencies"
117117
env:
@@ -200,7 +200,7 @@ stages:
200200
inlineScript: |
201201
set -euo pipefail
202202
203-
python3 .github/workflows/scripts/control-tower-prcheck/run_control_tower_prcheck.py \
203+
python3 .github/workflows/scripts/control-tower/run_prcheck.py \
204204
--api-audience "$API_AUDIENCE" \
205205
--api-base-url "$API_BASE_URL" \
206206
--build-reason "$BUILD_REASON" \

0 commit comments

Comments
 (0)