Skip to content

Commit 5e6ec5e

Browse files
authored
ci: trial integration and compile benchmark on the f4 runner (#841)
1 parent 79c5175 commit 5e6ec5e

5 files changed

Lines changed: 23 additions & 7 deletions

File tree

‎.github/actionlint.yaml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ self-hosted-runner:
33
labels:
44
- solx-linux-amd64
55
- solx-linux-amd64-self-hosted
6+
- solx-f4-staging

‎.github/workflows/compile-benchmark.yaml‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ jobs:
5050
contents: read
5151
pull-requests: write
5252
packages: read
53-
runs-on: solx-linux-amd64-self-hosted
53+
runs-on: solx-f4-staging
5454
container:
5555
image: ghcr.io/nomicfoundation/solx-ci-runner@sha256:cd5a37f2630fdf1898ddb2ca11f8c2ecc4d572c60011fe923b27b1625f92ba15
56-
options: -m 110g
56+
options: -m 48g
5757
# Warm caches: ~10 min builds + ~20 min benchmark. Worst case: a PR that
5858
# bumps solx-llvm (or its build scripts) builds both the PR and main LLVM
5959
# cold, sequentially.
@@ -160,6 +160,8 @@ jobs:
160160
# 20 min (hyperfine σ on this corpus is well under 1%). The per-binary
161161
# validation pass in run.sh doubles as cache warmup.
162162
- name: Run benchmark
163+
env:
164+
RUNNER_NAME: ${{ runner.name }}
163165
run: |
164166
./tests/benchmark/run.sh \
165167
--bin pr=./target/x86_64-unknown-linux-gnu/release/slang \
@@ -182,3 +184,7 @@ jobs:
182184
with:
183185
name: compile-benchmark-results
184186
path: benchmark-out/
187+
188+
- name: Container memory peak
189+
if: always()
190+
run: echo "memory.peak $(( $(cat /sys/fs/cgroup/memory.peak) / 1024 / 1024 / 1024 )) GiB"

‎.github/workflows/integration-tests.yaml‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ jobs:
4848
contents: read
4949
pull-requests: write
5050
packages: read
51-
runs-on: solx-linux-amd64-self-hosted
51+
runs-on: solx-f4-staging
5252
container:
5353
image: ghcr.io/nomicfoundation/solx-ci-runner@sha256:cd5a37f2630fdf1898ddb2ca11f8c2ecc4d572c60011fe923b27b1625f92ba15
54-
options: -m 110g
54+
options: -m 48g
5555
env:
5656
# renovate: datasource=github-releases depName=foundry-rs/foundry
5757
FOUNDRY_VERSION: "v1.8.4"
@@ -350,3 +350,7 @@ jobs:
350350
echo "Failures: ${failures[*]}"
351351
exit 1
352352
fi
353+
354+
- name: Container memory peak
355+
if: always()
356+
run: echo "memory.peak $(( $(cat /sys/fs/cgroup/memory.peak) / 1024 / 1024 / 1024 )) GiB"

‎.github/workflows/sanitizer.yaml‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,15 @@ jobs:
5757

5858
sanitizer:
5959
needs: [label-check, cooldown-check]
60-
runs-on: solx-linux-amd64-self-hosted
60+
runs-on: solx-f4-staging
6161
# checks: write for the rust-unit-tests action's test-results check run.
6262
permissions:
6363
contents: read
6464
checks: write
6565
packages: read
6666
container:
6767
image: ghcr.io/nomicfoundation/solx-ci-runner@sha256:cd5a37f2630fdf1898ddb2ca11f8c2ecc4d572c60011fe923b27b1625f92ba15
68-
options: -m 110g
68+
options: -m 48g
6969
env:
7070
TARGET: x86_64-unknown-linux-gnu
7171
RUST_SANITIZER: 'address'
@@ -117,6 +117,10 @@ jobs:
117117
target: ${{ env.TARGET }}
118118
sanitizer: ${{ env.RUST_SANITIZER }}
119119

120+
- name: Container memory peak
121+
if: always()
122+
run: echo "memory.peak $(( $(cat /sys/fs/cgroup/memory.peak) / 1024 / 1024 / 1024 )) GiB"
123+
120124
pr-checks:
121125
name: PR Checks (Sanitizer)
122126
runs-on: ubuntu-24.04

‎tests/benchmark/run.sh‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,12 @@ done
4040

4141
mkdir -p "${OUT_DIR}"
4242

43-
# Record binary identities alongside the measurements.
43+
# Record binary identities and the runner alongside the measurements.
4444
: > "${OUT_DIR}/versions.txt"
4545
for i in "${!BIN_NAMES[@]}"; do
4646
echo "${BIN_NAMES[$i]}: $("${BIN_PATHS[$i]}" --version | head -1)" >> "${OUT_DIR}/versions.txt"
4747
done
48+
echo "runner: ${RUNNER_NAME:-$(hostname)}" >> "${OUT_DIR}/versions.txt"
4849
cat "${OUT_DIR}/versions.txt"
4950

5051
# The standard-JSON protocol reports compilation failure inside the JSON

0 commit comments

Comments
 (0)