Skip to content

Commit add7048

Browse files
committed
Move Greenlight workflows to 8-64 ARC runner
- Switch every job in both workflows from mt-l-x86iavx512-16-32 to mt-l-x86iavx512-8-64 - Replace the greenlight-container-tools composite action with inline apt-get/curl installs - Install AWS CLI v2 inline in announce_start and record jobs - Install gh (via apt keyring) and jq inline in the review job Notes: The 8-64 runner (8 CPU / 64 GB) fits the workload better than 16-32. Dropping the local composite action removes a repo-relative dependency and makes each job's tool setup self-contained and explicit, matching the container-based (node:20-bookworm) jobs that have no host execution mode. Signed-off-by: Jean Schmidt <contato@jschmidt.me>
1 parent 0c5cfd3 commit add7048

2 files changed

Lines changed: 35 additions & 18 deletions

File tree

.github/workflows/greenlight-pr-review.yml

Lines changed: 34 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ defaults:
4646
jobs:
4747
announce_start:
4848
environment: greenlight-record
49-
runs-on: mt-l-x86iavx512-16-32
49+
runs-on: mt-l-x86iavx512-8-64
5050
# OSDC ARC (kubernetes-novolume) has no host execution mode: steps run in this
5151
# container, which is the pod that receives the runner's CPU/memory. The base image
5252
# supplies node (JS actions) + git; setup-python/uv and the tools step add the rest.
@@ -68,10 +68,15 @@ jobs:
6868
with:
6969
fetch-depth: 1
7070

71-
- name: Install container CLI tools
72-
uses: ./.github/actions/greenlight-container-tools
73-
with:
74-
awscli: "true"
71+
- name: Install AWS CLI v2
72+
run: |
73+
set -euo pipefail
74+
apt-get update
75+
apt-get install -y --no-install-recommends ca-certificates curl unzip
76+
curl -fsSL "https://awscli.amazonaws.com/awscli-exe-linux-$(uname -m).zip" -o /tmp/awscliv2.zip
77+
unzip -q /tmp/awscliv2.zip -d /tmp
78+
/tmp/aws/install
79+
rm -rf /tmp/awscliv2.zip /tmp/aws
7580
7681
- name: Set up Python 3.14
7782
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
@@ -121,7 +126,7 @@ jobs:
121126
122127
review:
123128
environment: bedrock
124-
runs-on: mt-l-x86iavx512-16-32
129+
runs-on: mt-l-x86iavx512-8-64
125130
container:
126131
image: node:20-bookworm
127132
timeout-minutes: 40
@@ -143,11 +148,19 @@ jobs:
143148
path: pytorch
144149
fetch-depth: 1
145150

146-
- name: Install container CLI tools
147-
uses: ./.github/actions/greenlight-container-tools
148-
with:
149-
gh: "true"
150-
jq: "true"
151+
- name: Install gh and jq
152+
run: |
153+
set -euo pipefail
154+
apt-get update
155+
apt-get install -y --no-install-recommends ca-certificates curl gnupg jq
156+
install -d -m 755 /etc/apt/keyrings
157+
curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg \
158+
-o /etc/apt/keyrings/githubcli-archive-keyring.gpg
159+
chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg
160+
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" \
161+
> /etc/apt/sources.list.d/github-cli.list
162+
apt-get update
163+
apt-get install -y --no-install-recommends gh
151164
152165
- name: Configure AWS credentials via OIDC
153166
uses: aws-actions/configure-aws-credentials@7474bc4690e29a8392af63c5b98e7449536d5c3a # v4.3.1
@@ -295,7 +308,7 @@ jobs:
295308
record:
296309
needs: [announce_start, review]
297310
if: ${{ always() }}
298-
runs-on: mt-l-x86iavx512-16-32
311+
runs-on: mt-l-x86iavx512-8-64
299312
container:
300313
image: node:20-bookworm
301314
timeout-minutes: 15
@@ -319,11 +332,15 @@ jobs:
319332
with:
320333
fetch-depth: 1
321334

322-
- name: Install container CLI tools
323-
uses: ./.github/actions/greenlight-container-tools
324-
with:
325-
awscli: "true"
326-
jq: "true"
335+
- name: Install AWS CLI v2 and jq
336+
run: |
337+
set -euo pipefail
338+
apt-get update
339+
apt-get install -y --no-install-recommends ca-certificates curl unzip jq
340+
curl -fsSL "https://awscli.amazonaws.com/awscli-exe-linux-$(uname -m).zip" -o /tmp/awscliv2.zip
341+
unzip -q /tmp/awscliv2.zip -d /tmp
342+
/tmp/aws/install
343+
rm -rf /tmp/awscliv2.zip /tmp/aws
327344
328345
- name: Set up Python 3.14
329346
# greenlight pins requires-python >=3.14 with uv python-preference=only-system,

.github/workflows/greenlight-review.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ defaults:
6262

6363
jobs:
6464
scan:
65-
runs-on: mt-l-x86iavx512-16-32
65+
runs-on: mt-l-x86iavx512-8-64
6666
# OSDC ARC (kubernetes-novolume) has no host execution mode: steps run in this
6767
# container, which is the pod that receives the runner's CPU/memory. The base image
6868
# supplies node (for JS actions) + git; mise-action installs Python 3.14, uv, and just.

0 commit comments

Comments
 (0)