authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-12-03 21:29:51+01:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-12-04 20:06:48+01:00
log78cba869289c66be875a72850437f95fe7541e92
tree917cddf87bda1def7117adfd10197dc419c882c2
parent2728eb5d5ed0a7cdf33140b31ffa364eaffd7afd
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

ci: set maxrss from $ZSF_MAX_RSS if provided by the runner

All of our runners now define this. When running a CI script locally, this will not be set, so we default to 0, aka "all available system memory".

18 files changed, 21 insertions(+), 15 deletions(-)

ci/aarch64-linux-debug.sh+1-1
...@@ -44,7 +44,7 @@ ninja install...@@ -44,7 +44,7 @@ ninja install
4444
45# No -fqemu and -fwasmtime here as they're covered by the x86_64-linux scripts.45# No -fqemu and -fwasmtime here as they're covered by the x86_64-linux scripts.
46stage3-debug/bin/zig build test docs \46stage3-debug/bin/zig build test docs \
47 --maxrss 44918199637 \47 --maxrss ${ZSF_MAX_RSS:-0} \
48 -Dstatic-llvm \48 -Dstatic-llvm \
49 -Dskip-non-native \49 -Dskip-non-native \
50 -Dtarget=native-native-musl \50 -Dtarget=native-native-musl \
ci/aarch64-linux-release.sh+1-1
...@@ -44,7 +44,7 @@ ninja install...@@ -44,7 +44,7 @@ ninja install
4444
45# No -fqemu and -fwasmtime here as they're covered by the x86_64-linux scripts.45# No -fqemu and -fwasmtime here as they're covered by the x86_64-linux scripts.
46stage3-release/bin/zig build test docs \46stage3-release/bin/zig build test docs \
47 --maxrss 44918199637 \47 --maxrss ${ZSF_MAX_RSS:-0} \
48 -Dstatic-llvm \48 -Dstatic-llvm \
49 -Dskip-non-native \49 -Dskip-non-native \
50 -Dtarget=native-native-musl \50 -Dtarget=native-native-musl \
ci/aarch64-macos-debug.sh+1
...@@ -42,6 +42,7 @@ cmake .. \...@@ -42,6 +42,7 @@ cmake .. \
42ninja install42ninja install
4343
44stage3-debug/bin/zig build test docs \44stage3-debug/bin/zig build test docs \
45 --maxrss ${ZSF_MAX_RSS:-0} \
45 --zig-lib-dir "$PWD/../lib" \46 --zig-lib-dir "$PWD/../lib" \
46 -Denable-macos-sdk \47 -Denable-macos-sdk \
47 -Dstatic-llvm \48 -Dstatic-llvm \
ci/aarch64-macos-release.sh+1
...@@ -51,6 +51,7 @@ stage3-release/bin/zig build test docs \...@@ -51,6 +51,7 @@ stage3-release/bin/zig build test docs \
5151
52# Ensure that stage3 and stage4 are byte-for-byte identical.52# Ensure that stage3 and stage4 are byte-for-byte identical.
53stage3-release/bin/zig build \53stage3-release/bin/zig build \
54 --maxrss ${ZSF_MAX_RSS:-0} \
54 --prefix stage4-release \55 --prefix stage4-release \
55 -Denable-llvm \56 -Denable-llvm \
56 -Dno-lib \57 -Dno-lib \
ci/aarch64-windows.ps1+2
...@@ -5,6 +5,7 @@ $ZIG_LLVM_CLANG_LLD_URL = "https://ziglang.org/deps/$ZIG_LLVM_CLANG_LLD_NAME.zip...@@ -5,6 +5,7 @@ $ZIG_LLVM_CLANG_LLD_URL = "https://ziglang.org/deps/$ZIG_LLVM_CLANG_LLD_NAME.zip
5$PREFIX_PATH = "$(Get-Location)\..\$ZIG_LLVM_CLANG_LLD_NAME"5$PREFIX_PATH = "$(Get-Location)\..\$ZIG_LLVM_CLANG_LLD_NAME"
6$ZIG = "$PREFIX_PATH\bin\zig.exe"6$ZIG = "$PREFIX_PATH\bin\zig.exe"
7$ZIG_LIB_DIR = "$(Get-Location)\lib"7$ZIG_LIB_DIR = "$(Get-Location)\lib"
8$ZSF_MAX_RSS = if ($Env:ZSF_MAX_RSS) { $Env:ZSF_MAX_RSS } else { 0 }
89
9if (!(Test-Path "..\$ZIG_LLVM_CLANG_LLD_NAME.zip")) {10if (!(Test-Path "..\$ZIG_LLVM_CLANG_LLD_NAME.zip")) {
10 Write-Output "Downloading $ZIG_LLVM_CLANG_LLD_URL"11 Write-Output "Downloading $ZIG_LLVM_CLANG_LLD_URL"
...@@ -54,6 +55,7 @@ CheckLastExitCode...@@ -54,6 +55,7 @@ CheckLastExitCode
5455
55Write-Output "Main test suite..."56Write-Output "Main test suite..."
56& "stage3-release\bin\zig.exe" build test docs `57& "stage3-release\bin\zig.exe" build test docs `
58 --maxrss $ZSF_MAX_RSS `
57 --zig-lib-dir "$ZIG_LIB_DIR" `59 --zig-lib-dir "$ZIG_LIB_DIR" `
58 --search-prefix "$PREFIX_PATH" `60 --search-prefix "$PREFIX_PATH" `
59 -Dstatic-llvm `61 -Dstatic-llvm `
ci/loongarch64-linux-debug.sh+1-1
...@@ -45,7 +45,7 @@ ninja install...@@ -45,7 +45,7 @@ ninja install
4545
46# No -fqemu and -fwasmtime here as they're covered by the x86_64-linux scripts.46# No -fqemu and -fwasmtime here as they're covered by the x86_64-linux scripts.
47stage3-debug/bin/zig build test docs \47stage3-debug/bin/zig build test docs \
48 --maxrss 60129542144 \48 --maxrss ${ZSF_MAX_RSS:-0} \
49 -Dstatic-llvm \49 -Dstatic-llvm \
50 -Dskip-non-native \50 -Dskip-non-native \
51 -Dtarget=native-native-musl \51 -Dtarget=native-native-musl \
ci/loongarch64-linux-release.sh+1-1
...@@ -45,7 +45,7 @@ ninja install...@@ -45,7 +45,7 @@ ninja install
4545
46# No -fqemu and -fwasmtime here as they're covered by the x86_64-linux scripts.46# No -fqemu and -fwasmtime here as they're covered by the x86_64-linux scripts.
47stage3-release/bin/zig build test docs \47stage3-release/bin/zig build test docs \
48 --maxrss 60129542144 \48 --maxrss ${ZSF_MAX_RSS:-0} \
49 -Dstatic-llvm \49 -Dstatic-llvm \
50 -Dskip-non-native \50 -Dskip-non-native \
51 -Dtarget=native-native-musl \51 -Dtarget=native-native-musl \
ci/riscv64-linux-debug.sh+1-1
...@@ -44,7 +44,7 @@ ninja install...@@ -44,7 +44,7 @@ ninja install
4444
45# No -fqemu and -fwasmtime here as they're covered by the x86_64-linux scripts.45# No -fqemu and -fwasmtime here as they're covered by the x86_64-linux scripts.
46stage3-debug/bin/zig build test-cases test-modules test-unit test-c-abi test-stack-traces test-error-traces test-llvm-ir \46stage3-debug/bin/zig build test-cases test-modules test-unit test-c-abi test-stack-traces test-error-traces test-llvm-ir \
47 --maxrss 68719476736 \47 --maxrss ${ZSF_MAX_RSS:-0} \
48 -Dstatic-llvm \48 -Dstatic-llvm \
49 -Dskip-non-native \49 -Dskip-non-native \
50 -Dskip-single-threaded \50 -Dskip-single-threaded \
ci/riscv64-linux-release.sh+1-1
...@@ -44,7 +44,7 @@ ninja install...@@ -44,7 +44,7 @@ ninja install
4444
45# No -fqemu and -fwasmtime here as they're covered by the x86_64-linux scripts.45# No -fqemu and -fwasmtime here as they're covered by the x86_64-linux scripts.
46stage3-release/bin/zig build test-cases test-modules test-unit test-c-abi test-stack-traces test-error-traces test-llvm-ir \46stage3-release/bin/zig build test-cases test-modules test-unit test-c-abi test-stack-traces test-error-traces test-llvm-ir \
47 --maxrss 68719476736 \47 --maxrss ${ZSF_MAX_RSS:-0} \
48 -Dstatic-llvm \48 -Dstatic-llvm \
49 -Dskip-non-native \49 -Dskip-non-native \
50 -Dskip-single-threaded \50 -Dskip-single-threaded \
ci/s390x-linux-debug.sh+1-1
...@@ -45,7 +45,7 @@ ninja install...@@ -45,7 +45,7 @@ ninja install
4545
46# No -fqemu and -fwasmtime here as they're covered by the x86_64-linux scripts.46# No -fqemu and -fwasmtime here as they're covered by the x86_64-linux scripts.
47stage3-debug/bin/zig build test docs \47stage3-debug/bin/zig build test docs \
48 --maxrss 30064771072 \48 --maxrss ${ZSF_MAX_RSS:-0} \
49 -Dstatic-llvm \49 -Dstatic-llvm \
50 -Dskip-non-native \50 -Dskip-non-native \
51 -Dtarget=native-native-musl \51 -Dtarget=native-native-musl \
ci/s390x-linux-release.sh+1-1
...@@ -45,7 +45,7 @@ ninja install...@@ -45,7 +45,7 @@ ninja install
4545
46# No -fqemu and -fwasmtime here as they're covered by the x86_64-linux scripts.46# No -fqemu and -fwasmtime here as they're covered by the x86_64-linux scripts.
47stage3-release/bin/zig build test docs \47stage3-release/bin/zig build test docs \
48 --maxrss 30064771072 \48 --maxrss ${ZSF_MAX_RSS:-0} \
49 -Dstatic-llvm \49 -Dstatic-llvm \
50 -Dskip-non-native \50 -Dskip-non-native \
51 -Dtarget=native-native-musl \51 -Dtarget=native-native-musl \
ci/x86_64-freebsd-debug.sh+1-1
...@@ -44,7 +44,7 @@ unset CXX...@@ -44,7 +44,7 @@ unset CXX
44ninja install44ninja install
4545
46stage3-debug/bin/zig build test docs \46stage3-debug/bin/zig build test docs \
47 --maxrss 42949672960 \47 --maxrss ${ZSF_MAX_RSS:-0} \
48 -Dstatic-llvm \48 -Dstatic-llvm \
49 -Dskip-spirv \49 -Dskip-spirv \
50 -Dskip-wasm \50 -Dskip-wasm \
ci/x86_64-freebsd-release.sh+1-1
...@@ -44,7 +44,7 @@ unset CXX...@@ -44,7 +44,7 @@ unset CXX
44ninja install44ninja install
4545
46stage3-release/bin/zig build test docs \46stage3-release/bin/zig build test docs \
47 --maxrss 42949672960 \47 --maxrss ${ZSF_MAX_RSS:-0} \
48 -Dstatic-llvm \48 -Dstatic-llvm \
49 -Dskip-spirv \49 -Dskip-spirv \
50 -Dskip-wasm \50 -Dskip-wasm \
ci/x86_64-linux-debug-llvm.sh+1-1
...@@ -49,7 +49,7 @@ stage3-debug/bin/zig build \...@@ -49,7 +49,7 @@ stage3-debug/bin/zig build \
49 -Dno-lib49 -Dno-lib
5050
51stage3-debug/bin/zig build test docs \51stage3-debug/bin/zig build test docs \
52 --maxrss 21000000000 \52 --maxrss ${ZSF_MAX_RSS:-0} \
53 -Dlldb=$HOME/deps/lldb-zig/Debug-e0a42bb34/bin/lldb \53 -Dlldb=$HOME/deps/lldb-zig/Debug-e0a42bb34/bin/lldb \
54 -fqemu \54 -fqemu \
55 -fwasmtime \55 -fwasmtime \
ci/x86_64-linux-debug.sh+1-1
...@@ -48,7 +48,7 @@ stage3-debug/bin/zig build \...@@ -48,7 +48,7 @@ stage3-debug/bin/zig build \
48 -Dno-lib48 -Dno-lib
4949
50stage3-debug/bin/zig build test docs \50stage3-debug/bin/zig build test docs \
51 --maxrss 21000000000 \51 --maxrss ${ZSF_MAX_RSS:-0} \
52 -Dlldb=$HOME/deps/lldb-zig/Debug-e0a42bb34/bin/lldb \52 -Dlldb=$HOME/deps/lldb-zig/Debug-e0a42bb34/bin/lldb \
53 -fqemu \53 -fqemu \
54 -fwasmtime \54 -fwasmtime \
ci/x86_64-linux-release.sh+1-1
...@@ -54,7 +54,7 @@ stage3-release/bin/zig build \...@@ -54,7 +54,7 @@ stage3-release/bin/zig build \
54 -Dno-lib54 -Dno-lib
5555
56stage3-release/bin/zig build test docs \56stage3-release/bin/zig build test docs \
57 --maxrss 21000000000 \57 --maxrss ${ZSF_MAX_RSS:-0} \
58 -Dlldb=$HOME/deps/lldb-zig/Release-e0a42bb34/bin/lldb \58 -Dlldb=$HOME/deps/lldb-zig/Release-e0a42bb34/bin/lldb \
59 -fqemu \59 -fqemu \
60 -fwasmtime \60 -fwasmtime \
ci/x86_64-windows-debug.ps1+2-1
...@@ -5,6 +5,7 @@ $ZIG_LLVM_CLANG_LLD_URL = "https://ziglang.org/deps/$ZIG_LLVM_CLANG_LLD_NAME.zip...@@ -5,6 +5,7 @@ $ZIG_LLVM_CLANG_LLD_URL = "https://ziglang.org/deps/$ZIG_LLVM_CLANG_LLD_NAME.zip
5$PREFIX_PATH = "$($Env:USERPROFILE)\$ZIG_LLVM_CLANG_LLD_NAME"5$PREFIX_PATH = "$($Env:USERPROFILE)\$ZIG_LLVM_CLANG_LLD_NAME"
6$ZIG = "$PREFIX_PATH\bin\zig.exe"6$ZIG = "$PREFIX_PATH\bin\zig.exe"
7$ZIG_LIB_DIR = "$(Get-Location)\lib"7$ZIG_LIB_DIR = "$(Get-Location)\lib"
8$ZSF_MAX_RSS = if ($Env:ZSF_MAX_RSS) { $Env:ZSF_MAX_RSS } else { 0 }
89
9if (!(Test-Path "$PREFIX_PATH.zip")) {10if (!(Test-Path "$PREFIX_PATH.zip")) {
10 Write-Output "Downloading $ZIG_LLVM_CLANG_LLD_URL"11 Write-Output "Downloading $ZIG_LLVM_CLANG_LLD_URL"
...@@ -54,7 +55,7 @@ CheckLastExitCode...@@ -54,7 +55,7 @@ CheckLastExitCode
5455
55Write-Output "Main test suite..."56Write-Output "Main test suite..."
56& "stage3-debug\bin\zig.exe" build test docs `57& "stage3-debug\bin\zig.exe" build test docs `
57 --maxrss 32212254720 `58 --maxrss $ZSF_MAX_RSS `
58 --zig-lib-dir "$ZIG_LIB_DIR" `59 --zig-lib-dir "$ZIG_LIB_DIR" `
59 --search-prefix "$PREFIX_PATH" `60 --search-prefix "$PREFIX_PATH" `
60 -Dstatic-llvm `61 -Dstatic-llvm `
ci/x86_64-windows-release.ps1+2-1
...@@ -5,6 +5,7 @@ $ZIG_LLVM_CLANG_LLD_URL = "https://ziglang.org/deps/$ZIG_LLVM_CLANG_LLD_NAME.zip...@@ -5,6 +5,7 @@ $ZIG_LLVM_CLANG_LLD_URL = "https://ziglang.org/deps/$ZIG_LLVM_CLANG_LLD_NAME.zip
5$PREFIX_PATH = "$($Env:USERPROFILE)\$ZIG_LLVM_CLANG_LLD_NAME"5$PREFIX_PATH = "$($Env:USERPROFILE)\$ZIG_LLVM_CLANG_LLD_NAME"
6$ZIG = "$PREFIX_PATH\bin\zig.exe"6$ZIG = "$PREFIX_PATH\bin\zig.exe"
7$ZIG_LIB_DIR = "$(Get-Location)\lib"7$ZIG_LIB_DIR = "$(Get-Location)\lib"
8$ZSF_MAX_RSS = if ($Env:ZSF_MAX_RSS) { $Env:ZSF_MAX_RSS } else { 0 }
89
9if (!(Test-Path "$PREFIX_PATH.zip")) {10if (!(Test-Path "$PREFIX_PATH.zip")) {
10 Write-Output "Downloading $ZIG_LLVM_CLANG_LLD_URL"11 Write-Output "Downloading $ZIG_LLVM_CLANG_LLD_URL"
...@@ -54,7 +55,7 @@ CheckLastExitCode...@@ -54,7 +55,7 @@ CheckLastExitCode
5455
55Write-Output "Main test suite..."56Write-Output "Main test suite..."
56& "stage3-release\bin\zig.exe" build test docs `57& "stage3-release\bin\zig.exe" build test docs `
57 --maxrss 32212254720 `58 --maxrss $ZSF_MAX_RSS `
58 --zig-lib-dir "$ZIG_LIB_DIR" `59 --zig-lib-dir "$ZIG_LIB_DIR" `
59 --search-prefix "$PREFIX_PATH" `60 --search-prefix "$PREFIX_PATH" `
60 -Dstatic-llvm `61 -Dstatic-llvm `