Foundation / checks (ecs) (push) Successful in 2m28s
Foundation / checks (deploy) (push) Successful in 4m54s
Foundation / checks (postgres) (push) Failing after 8m46s
Foundation / checks (network) (push) Successful in 15m41s
Foundation / checks (client) (push) Successful in 17m3s
Foundation / checks (tsan) (push) Successful in 45m3s
Foundation / checks (checks) (push) Successful in 1h27m38s
Foundation / postgres-tools (push) Skipped
Foundation / server-image (push) Skipped
Foundation / image (push) Skipped
A push's diff against its before SHA counts every commit it carries, and any tests/ change selected checks, tsan and ecs. Run 475 spent 1h44m in checks for two commits that only touched tests/region_store_tests.cpp, which the native suites never build. Sources compiled only into evo-postgres-tests now select the PostgreSQL suites alone; the PostgreSQL image runs the repository format check so they stay formatted. Native CI stages compile with CI_BUILD_JOBS (default 4, previously a fixed 2). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
55 lines
1.9 KiB
Bash
55 lines
1.9 KiB
Bash
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
# Run inside the Dockerfile's ci-toolchain stage, not an arbitrary host shell.
|
|
suite="${1:?Expected checks or tsan}"
|
|
# Compile parallelism; each clang analysis/ASan job can take 1-2 GiB of runner memory.
|
|
jobs="${CI_BUILD_JOBS:-4}"
|
|
cmake --version
|
|
g++-14 --version
|
|
clang++-19 --version
|
|
clang-format-19 --version
|
|
clang-tidy-19 --version
|
|
uname -a
|
|
|
|
check_preset() {
|
|
local preset="$1"
|
|
local compiler="$2"
|
|
cmake --preset "$preset" "-DCMAKE_CXX_COMPILER=$compiler"
|
|
cmake --build --preset "$preset" --parallel "$jobs"
|
|
ctest --preset "$preset" --no-tests=error --timeout 120
|
|
}
|
|
|
|
case "$suite" in
|
|
checks)
|
|
check_preset debug g++-14
|
|
cmake --build --preset debug --target format-check
|
|
check_preset release g++-14
|
|
check_preset analysis clang++-19
|
|
check_preset asan clang++-19
|
|
./build/release/evo-benchmark
|
|
./build/release/evo-spatial-benchmark
|
|
./build/release/evo-sim --seed 123456 --entities 8 --ticks 1000000 --verify-replay
|
|
|
|
cmake --preset debug -B build/fuzz -DCMAKE_CXX_COMPILER=clang++-19 \
|
|
-DEVO_BUILD_FUZZER=ON
|
|
cmake --build build/fuzz --target evo-snapshot-fuzz evo-world-codec-fuzz --parallel "$jobs"
|
|
./build/fuzz/evo-world-codec-fuzz -seed=123456 -runs=10000 \
|
|
-max_len=96 -timeout=10 -rss_limit_mb=1024
|
|
mkdir -p build/fuzz/corpus
|
|
./build/release/evo-sim --seed 0 --entities 0 --ticks 0 \
|
|
--save build/fuzz/corpus/empty.evo
|
|
./build/release/evo-sim --seed 123456 --entities 8 --ticks 1000 \
|
|
--save build/fuzz/corpus/eight.evo
|
|
./build/fuzz/evo-snapshot-fuzz build/fuzz/corpus -seed=123456 \
|
|
-runs=10000 -max_len=65536 -timeout=10 -rss_limit_mb=1024
|
|
;;
|
|
tsan)
|
|
check_preset tsan clang++-19
|
|
;;
|
|
*)
|
|
echo 'Expected checks or tsan' >&2
|
|
exit 2
|
|
;;
|
|
esac
|