Repository navigation
1343 lines (1309 loc) · 61.4 KB
/
Copy pathci.yml
File metadata and controls
1343 lines (1309 loc) · 61.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# ============================================================================
# Laige CI — P0 platform matrix on merge (M0-CI-01)
#
# Roadmap: roadmap/M0-foundations.md, step M0-CI-01
# PRD refs: §6 (P0 platforms, AC-6.1), §14 (cadence), §8.1 (build budget)
#
# Cadence (PRD §14, as amended 2026-10-13 — "fast lane + gated slow
# suites"):
# * This workflow runs on every push to the default branch (master) —
# i.e., on merge — and on manual workflow_dispatch. The eleven FAST
# jobs always run: the seven P0 OS/variant jobs — the five P0 OS
# jobs plus the two sanitizer lanes (M0-CI-02) — and the four
# platform-independent tooling jobs: the include-graph lint with
# dependency-count metric (M0-CI-03), the public API manifest drift
# check (M0-TOOL-01), the determinism source scan (M1-DET-01), and
# the determinism check (M0-TOOL-02).
#
# * The SLOW suites do NOT run in the push lane. Every ctest entry
# that took longer than 30 s in the latest master run (38312355303,
# 2026-10-12) has been moved out of the main job into a dedicated
# job of its own (one per lane), and those jobs run ONLY when the
# matching workflow_dispatch checkbox is ticked — the merge-lane
# equivalent of the ci:slow:* PR labels used by ci-pull.yml:
#
# checkbox (dispatch input) / label ctest entry(es) lanes
# slow-sim / ci:slow:sim laige-sim_tests gcc clang asan tsan
# slow-render / ci:slow:render laige-render_tests gcc clang asan tsan
# slow-particle / ci:slow:particle particle_render gcc clang tsan
# slow-zero-alloc / ci:slow:zero-alloc zero_alloc asan tsan
# slow-ecs-stress / ci:slow:ecs-stress ecs_stress asan tsan
# slow-bench-50k / ci:slow:bench-50k laige_bench_render_50k_fpx16,
# laige_bench_render_50k_fp32,
# laige_bench_ac4_fpx16,
# laige_bench_ac4_fp32 (M2-AC-01) gcc clang
#
# Evidence (run 38312355303, per-entry times in s, threshold 30 s):
# laige_bench_render_50k_fpx16 gcc 577.05 clang 578.42
# laige_bench_render_50k_fp32 gcc 593.82 clang 566.52
# laige_bench_ac4_fpx16 / _fp32 NEW in M2-AC-01 — estimated ~60 s
# from the render-50k evidence (577 s over 4000 frames of 116k
# quads vs the ac4 frame's 10k quads); first-run times replace
# this estimate in the header once the entry has a master-run
# measurement
# laige-sim_tests gcc 59.97 clang 53.79 asan 124.03 tsan 159.52
# laige-render_tests gcc 53.83 clang 44.45 asan 43.20 tsan 60.41
# particle_render gcc 38.76 clang 34.67 asan 28.84 tsan 39.56
# zero_alloc gcc 16.16 clang 14.39 asan 43.76 tsan 54.75
# ecs_stress gcc 16.34 clang 14.45 asan 42.87 tsan 54.70
# The threshold is per lane: zero_alloc / ecs_stress stay in the
# main gcc/clang jobs (under 30 s there) and move only on the
# sanitizer lanes; particle_render stays in the main asan job
# (28.84 s). No entry exceeds 30 s on windows/macOS (worst:
# laige-sim_tests 27.11 s on macos-intel), so those lanes have no
# slow jobs and their jobs are unchanged.
#
# The main jobs' ctest EXCLUDES the moved entries (-E) and each
# slow job SELECTS its entry (-R): every entry runs exactly once
# per gated run, never twice, and never ungated. The suite list is
# re-derived from the latest master run whenever a suite crosses
# (or leaves) the 30 s threshold — see AGENTS.md §5, "Slow CI
# suites and the milestone gate".
#
# * MILESTONE GATE: a milestone-gate PR MUST carry ALL six ci:slow:*
# labels so every slow job runs and passes before merge (AGENTS.md
# §5). After the gate merges, a workflow_dispatch here with all six
# checkboxes ticked re-runs the slow matrix on master.
#
# * Pull requests run the SAME matrix in the companion workflow
# .github/workflows/ci-pull.yml: the fast jobs run unconditionally
# on every PR, the slow jobs only when the PR carries the matching
# ci:slow:* label. A label added after a run is created never
# re-triggers that run — the label must be on the PR before the
# run starts. Local verification of the Linux trees before pushing
# remains a developer obligation (AGENTS.md, section 5: the local
# Linux test gate).
#
# One job per P0 OS/variant (PRD §6). Each job runs the canonical flow from
# docs/getting-started/building.md — configure → build → ctest (unit tests
# only in M0):
#
# linux-gcc Linux x64, g++ (ubuntu-24.04)
# linux-clang Linux x64, clang++ (ubuntu-24.04)
# linux-asan Linux x64, clang++, LAIGE_ASAN=ON (ubuntu-24.04)
# linux-tsan Linux x64, clang++, LAIGE_TSAN=ON (ubuntu-24.04)
# windows-msvc Windows x64, MSVC 2022 (windows-2022)
# macos-arm64 macOS arm64, AppleClang (macos-15)
# macos-intel macOS Intel, AppleClang (macos-14)
# include-lint Include-graph lint + dependency count (M0-CI-03)
# api-manifest Public API manifest drift check (M0-TOOL-01)
# det-lint Determinism source scan (M1-DET-01)
# detcheck Determinism check (M0-TOOL-02)
#
# The include-lint job (M0-CI-03; NFR-8.11, NFR-8.13) is platform-
# independent — it parses the #include edges of src/** (PRD §10.1 rules:
# laige-core includes nothing internal, arrows only downward in the
# module stack, vendored deps included only from their deps.lock owner)
# and asserts the vendored-dependency count stays ≤ 10 (PRD §11) while
# printing the list. It is Python 3 stdlib only, so one runner image
# suffices; it runs on every PR too (ci-pull.yml, same job definition).
#
# Sanitizer lanes (M0-CI-02; NFR-8.2 "Core is ASan + UBSan + TSan clean in
# CI", AGENTS TEST-006):
#
# * linux-asan builds the canonical build-asan tree (LAIGE_ASAN=ON:
# whole tree instrumented with ASan+UBSan) and runs the unit suites.
# Any sanitizer report is fatal to the test process — UBSan via
# -fno-sanitize-recover=all (wired by CMake), ASan via
# abort_on_error=1:halt_on_error=1 below — so ctest exits non-zero and
# the job fails: "fail build on any sanitizer report".
# * linux-tsan builds the canonical build-tsan tree (LAIGE_TSAN=ON:
# whole tree instrumented with TSan). tests/ applies
# TSAN_OPTIONS=halt_on_error=1 per test (M0-BUILD-01), so the first
# data race report kills the test process and ctest fails.
#
# Toolchain: clang++ for both lanes — TSan is most mature on Clang and
# -fsanitize=undefined enables a superset of the GCC UB checks; the GCC
# build itself is covered by the linux-gcc job. Scope is Linux-only per
# the M0-CI-02 roadmap step (the MSVC/AppleClang sanitizer flag wiring
# already exists in CMake for later extension).
#
# Reports are archived as artifacts on every run, green or red:
# - the tee'd ctest output carries every report that reached stderr
# (ASan and TSan both print reports to stderr);
# - ASan additionally writes one report file per test process under
# asan-reports/ (ASAN_OPTIONS log_path below);
# - <tree>/Testing/Temporary/LastTest.log keeps ctest's full raw
# output of every test.
# The label-gated slow jobs on the sanitizer lanes carry the same
# archive step (per-suite artifact names, below).
#
# Build budget (PRD §8.1: clean build ≤ 10 min on CI; roadmap M0-CI-01
# "matrix runs in < 10 min"): every fast build job carries
# timeout-minutes: 10, so a job (and therefore the whole matrix, which
# runs the jobs in parallel) longer than the budget fails instead of
# dragging on. The include-lint job is a lint job, not a build, and
# carries its own timeout-minutes: 5. Two documented exceptions carry
# wider caps: the two macOS build jobs (arm64 20, Intel 15 — below) and
# the two slow BENCH jobs (30 — M2-PERF-01's render-50k gate renders
# 4000 offscreen frames of the ~116k-item reference scene in software
# GL on this machine's llvmpipe stack: ~10 min of bench per backend on
# the reference lane plus ~3 min of build; the pre-split main jobs
# carried 45 for that work plus the rest of the suite). The main Linux
# jobs' caps reverted to 10 on 2026-10-13 with the split: their heaviest
# remaining entries are the filtered sim/render suites (≤ 26 s on the
# gcc lane) plus the build (~1.5 min), ~5 min total on the reference
# lane.
#
# macOS exceptions: the shared GitHub macOS runners' tail latency
# (runner preemption) exceeds the 10-min budget: the M2-UI-01 PR lane
# (run 38138278150) saw three consecutive 10-min cancellations of the
# macOS arm64 job (11m25s in Build, 10m18s in Test, 10m32s in Build)
# while the identical build + test finished in 5m37s on the macOS
# Intel lane. Raised on user decision 2026-10-11: macOS arm64 now
# carries timeout-minutes: 20, macOS Intel 15 — each cap gives the
# shared runners headroom without hiding a real hang (a job at its
# cap is still well past the 10-min budget and gets investigated).
# The arm64 15 -> 20 step (2026-10-12): this PR's run 38245828701 hit
# the 15-min cap on all three attempts — each finished its full build
# + the 122/122 ctest suite at 15:00-15:10, the cap firing seconds
# before the job's final cleanup (the identical macOS Intel job
# finished in 7:50 on the same run). If macOS lanes keep hitting
# their walls, the evidence is persistent runner degradation, not a
# code regression — revisit the budget, never silently lower the cap
# back.
#
# Windows note: CMake's default generator there is the multi-config
# "Visual Studio 17 2022" generator, which ignores CMAKE_BUILD_TYPE and
# would build every configuration from the canonical `cmake --build build
# -j`. The Windows job therefore pins the canonical Debug configuration
# explicitly on the build and test steps (--config Debug / -C Debug); the
# single-config platforms run the canonical commands verbatim. The
# Windows Test step additionally imports the VS 2022 development
# environment (vswhere + VsDevCmd.bat, same step, before ctest) because
# the trait_compile_* fixtures invoke cl.exe directly from a generated
# cmake -P script — outside the VS generator's toolchain setup — and
# need the MSVC environment (INCLUDE/LIB/PATH) to find the CRT/STL
# headers.
#
# Budget-gate scope (roadmap M1-BENCH-01: "the CI reference machine,
# ubuntu-24.04, is the gate"; docs/benchmarks/methodology.md §5): the
# sim-tick budget-gate ctest entries (laige_bench_sim_tick_fpx16 /
# laige_bench_sim_tick_fp32, tools/bench) run ONLY on the reference
# platform — the P0 Linux jobs, both of which run on ubuntu-24.04. The
# macOS/Windows jobs run the same ctest suite minus those entries: the
# absolute budgets.json targets are calibrated on the reference machine,
# and the shared macOS/Windows runners' tail latency (runner
# preemption) would flap the absolute p99 gate without tracking an
# engine regression. Every other test — including determinism,
# zero-alloc, fuzz, and the API/lint tooling jobs — still runs on all
# P0 platforms, as does the ungated sim-tick smoke
# (laige_bench_sim_tick_smoke): it exercises the workload and asserts
# its bit-identical fpx16_16 final_hash on every platform, without
# checking timing. The render-50k budget entries
# (laige_bench_render_50k_fpx16 / _fp32) and the AC-4 budget entries
# (laige_bench_ac4_fpx16 / _fp32, M2-AC-01) are the SLOW bench jobs
# above — reference-platform-scoped, gated by ci:slow:bench-50k / the
# slow-bench-50k checkbox, and run at every milestone gate (AGENTS.md
# §5).
#
# AC-6.1 (same source tree, same feature set, no per-OS feature flags): no
# build job passes feature flags; every build job builds the identical
# tree with the only variation being the platform/compiler (include-lint
# does not build).
# ============================================================================
name: CI (merge)
on:
push:
branches: [master]
workflow_dispatch:
inputs:
slow-sim:
description: "Run the slow laige-sim_tests jobs (gcc, clang, asan, tsan)"
type: boolean
default: false
slow-render:
description: "Run the slow laige-render_tests jobs (gcc, clang, asan, tsan)"
type: boolean
default: false
slow-particle:
description: "Run the slow particle_render jobs (gcc, clang, tsan)"
type: boolean
default: false
slow-zero-alloc:
description: "Run the slow zero_alloc jobs (asan, tsan)"
type: boolean
default: false
slow-ecs-stress:
description: "Run the slow ecs_stress jobs (asan, tsan)"
type: boolean
default: false
slow-bench-50k:
description: "Run the slow bench jobs (laige_bench_render_50k + laige_bench_ac4, gcc, clang)"
type: boolean
default: false
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
linux-gcc:
name: Linux x64 (g++)
runs-on: ubuntu-24.04
# Back to the 10-min build budget on 2026-10-13: the render-50k bench
# and the other >30 s entries moved to the label-gated slow jobs
# (linux-gcc-slow / linux-gcc-bench, below). The heaviest remaining
# entries are the filtered sim/render suites (≤ 26 s) + the build
# (~1.5 min) — ~5 min total on the reference lane.
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- name: Install GLFW X11 headers (laige-render)
# GLFW's X11 backend (GLFW_BUILD_WAYLAND=OFF in src/laige-render/
# CMakeLists.txt) needs only the X11 *headers* at configure time
# (GLFW 3.5 dlopens the X11/GL libraries at runtime); the
# ubuntu-24.04 runner image ships none of them. The libegl/libgl
# packages are the RUNTIME GL stack for the headless GL smoke
# (Mesa surfaceless EGL + llvmpipe software GL; the engine and
# GLAD load them by dlopen at runtime) (M2-GL-01).
run: |
sudo apt-get update -qq
sudo apt-get install -y -qq \
libx11-dev libxcursor-dev libxrandr-dev \
libxinerama-dev libxi-dev libxext-dev \
libegl1 libgl1 libegl-mesa0 libglx-mesa0 libgl1-mesa-dri
- name: Configure
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER=g++
- name: Build
run: cmake --build build -j
- name: Test (unit)
# -E excludes the >30 s entries that moved to the dedicated
# label-gated jobs (2026-10-13 split, see the header): they are
# selected there with -R, so each entry runs exactly once per
# gated run.
run: |
ctest --test-dir build --output-on-failure \
-E '^(laige-sim_tests|laige-render_tests|particle_render|laige_bench_render_50k_fpx16|laige_bench_render_50k_fp32|laige_bench_ac4_fpx16|laige_bench_ac4_fp32)$'
linux-clang:
name: Linux x64 (clang++)
runs-on: ubuntu-24.04
# Back to the 10-min build budget on 2026-10-13 — see the linux-gcc
# note and the header.
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- name: Install GLFW X11 headers (laige-render)
# GLFW's X11 backend (GLFW_BUILD_WAYLAND=OFF in src/laige-render/
# CMakeLists.txt) needs only the X11 *headers* at configure time
# (GLFW 3.5 dlopens the X11/GL libraries at runtime); the
# ubuntu-24.04 runner image ships none of them. The libegl/libgl
# packages are the RUNTIME GL stack for the headless GL smoke
# (Mesa surfaceless EGL + llvmpipe software GL; the engine and
# GLAD load them by dlopen at runtime) (M2-GL-01).
run: |
sudo apt-get update -qq
sudo apt-get install -y -qq \
libx11-dev libxcursor-dev libxrandr-dev \
libxinerama-dev libxi-dev libxext-dev \
libegl1 libgl1 libegl-mesa0 libglx-mesa0 libgl1-mesa-dri
- name: Configure
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER=clang++
- name: Build
run: cmake --build build -j
- name: Test (unit)
# -E excludes the >30 s entries that moved to the dedicated
# label-gated jobs (2026-10-13 split, see the header): they are
# selected there with -R, so each entry runs exactly once per
# gated run.
run: |
ctest --test-dir build --output-on-failure \
-E '^(laige-sim_tests|laige-render_tests|particle_render|laige_bench_render_50k_fpx16|laige_bench_render_50k_fp32|laige_bench_ac4_fpx16|laige_bench_ac4_fp32)$'
linux-asan:
name: Linux x64 ASan+UBSan (clang++)
runs-on: ubuntu-24.04
# 10-min build budget: the >30 s entries moved to the label-gated
# linux-asan-slow job (2026-10-13 split, see the header).
timeout-minutes: 10
# Job-scoped token: the archive step below needs actions:write, which
# the workflow-level contents:read token does not grant (GitHub
# Actions has no step-level permissions).
permissions:
contents: read
actions: write
steps:
- uses: actions/checkout@v4
- name: Install GLFW X11 headers (laige-render)
# GLFW's X11 backend (GLFW_BUILD_WAYLAND=OFF in src/laige-render/
# CMakeLists.txt) needs only the X11 *headers* at configure time
# (GLFW 3.5 dlopens the X11/GL libraries at runtime); the
# ubuntu-24.04 runner image ships none of them. The libegl/libgl
# packages are the RUNTIME GL stack for the headless GL smoke
# (Mesa surfaceless EGL + llvmpipe software GL; the engine and
# GLAD load them by dlopen at runtime) (M2-GL-01).
run: |
sudo apt-get update -qq
sudo apt-get install -y -qq \
libx11-dev libxcursor-dev libxrandr-dev \
libxinerama-dev libxi-dev libxext-dev \
libegl1 libgl1 libegl-mesa0 libglx-mesa0 libgl1-mesa-dri
- name: Configure (ASan+UBSan)
run: cmake -S . -B build-asan -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER=clang++ -DLAIGE_ASAN=ON
- name: Build (ASan+UBSan)
run: cmake --build build-asan -j
- name: Test (unit, ASan+UBSan)
# Every sanitizer report is fatal to the test process: ASan via
# abort_on_error=1:halt_on_error=1 here, UBSan via
# -fno-sanitize-recover=all (wired by CMake). detect_leaks=1 (the
# Linux default) is stated explicitly. log_path keeps one report
# file per test process for the artifact upload below. -E
# excludes the >30 s entries that moved to the label-gated
# linux-asan-slow job (2026-10-13 split, see the header).
env:
ASAN_OPTIONS: "abort_on_error=1:halt_on_error=1:detect_leaks=1:log_path=${{ github.workspace }}/asan-reports/asan"
run: |
set -o pipefail
ctest --test-dir build-asan --output-on-failure \
-E '^(laige-sim_tests|laige-render_tests|zero_alloc|ecs_stress)$' \
2>&1 | tee asan-ctest-output.txt
- name: Archive sanitizer reports
# Runs green or red: on a red run the reports live in this
# artifact. The job-level token grants actions:write.
if: always()
uses: actions/upload-artifact@v4
with:
name: linux-asan-reports
path: |
asan-ctest-output.txt
asan-reports/
build-asan/Testing/Temporary/LastTest.log
linux-tsan:
name: Linux x64 TSan (clang++)
runs-on: ubuntu-24.04
# 10-min build budget: the >30 s entries moved to the label-gated
# linux-tsan-slow job (2026-10-13 split, see the header). Before the
# split the full TSan suite (incl. laige-sim_tests at ~2.7 min and
# the render suites) needed 30 min; the heaviest REMAINING entries
# are archetype (~26 s) and laige_run_smoke (~17 s) plus the build
# (~2 min) — ~5 min total, inside 10 with runner-variance margin.
timeout-minutes: 10
# Job-scoped token: the archive step below needs actions:write (see
# the linux-asan job comment).
permissions:
contents: read
actions: write
steps:
- uses: actions/checkout@v4
- name: Install GLFW X11 headers (laige-render)
# GLFW's X11 backend (GLFW_BUILD_WAYLAND=OFF in src/laige-render/
# CMakeLists.txt) needs only the X11 *headers* at configure time
# (GLFW 3.5 dlopens the X11/GL libraries at runtime); the
# ubuntu-24.04 runner image ships none of them. The libegl/libgl
# packages are the RUNTIME GL stack for the headless GL smoke
# (Mesa surfaceless EGL + llvmpipe software GL; the engine and
# GLAD load them by dlopen at runtime) (M2-GL-01).
run: |
sudo apt-get update -qq
sudo apt-get install -y -qq \
libx11-dev libxcursor-dev libxrandr-dev \
libxinerama-dev libxi-dev libxext-dev \
libegl1 libgl1 libegl-mesa0 libglx-mesa0 libgl1-mesa-dri
- name: Configure (TSan)
run: cmake -S . -B build-tsan -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER=clang++ -DLAIGE_TSAN=ON
- name: Build (TSan)
run: cmake --build build-tsan -j
- name: Test (unit, TSan)
# TSAN_OPTIONS=halt_on_error=1 is applied per test by tests/
# (M0-BUILD-01), so the first data race report kills the test
# process and ctest fails. The race report is printed to stderr
# and captured by the tee below. -E excludes the >30 s entries
# that moved to the label-gated linux-tsan-slow job (2026-10-13
# split, see the header).
run: |
set -o pipefail
ctest --test-dir build-tsan --output-on-failure \
-E '^(laige-sim_tests|laige-render_tests|particle_render|zero_alloc|ecs_stress)$' \
2>&1 | tee tsan-ctest-output.txt
- name: Archive sanitizer reports
# Runs green or red: on a red run the race report lives in this
# artifact. The job-level token grants actions:write.
if: always()
uses: actions/upload-artifact@v4
with:
name: linux-tsan-reports
path: |
tsan-ctest-output.txt
build-tsan/Testing/Temporary/LastTest.log
# ------------------------------------------------------------------------
# Slow suites (2026-10-13 split; see the header). Each job below is one
# ctest entry that exceeded 30 s in the latest master run: one dedicated
# job per suite per lane (the matrix context is not available in a
# job-level `if:`, so one block per suite). The main job's ctest
# excludes the entry, so it runs exactly once per gated run, here.
# ------------------------------------------------------------------------
linux-gcc-sim:
name: "Linux x64 (g++) slow: laige-sim_tests"
runs-on: ubuntu-24.04
# 20: build (~1.5 min) + laige-sim_tests (59.97 s in the evidence run),
# plus runner variance.
timeout-minutes: 20
if: github.event.inputs.slow-sim == 'true'
steps:
- uses: actions/checkout@v4
- name: Install GLFW X11 headers (laige-render)
# Same rationale as the main job (see linux-gcc).
run: |
sudo apt-get update -qq
sudo apt-get install -y -qq \
libx11-dev libxcursor-dev libxrandr-dev \
libxinerama-dev libxi-dev libxext-dev \
libegl1 libgl1 libegl-mesa0 libglx-mesa0 libgl1-mesa-dri
- name: Configure
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER=g++
- name: Build
run: cmake --build build -j
- name: "Test (slow: laige-sim_tests)"
run: ctest --test-dir build --output-on-failure -R '^laige-sim_tests$'
linux-gcc-render:
name: "Linux x64 (g++) slow: laige-render_tests"
runs-on: ubuntu-24.04
# 20: build (~1.5 min) + laige-render_tests (53.83 s in the evidence run),
# plus runner variance.
timeout-minutes: 20
if: github.event.inputs.slow-render == 'true'
steps:
- uses: actions/checkout@v4
- name: Install GLFW X11 headers (laige-render)
# Same rationale as the main job (see linux-gcc).
run: |
sudo apt-get update -qq
sudo apt-get install -y -qq \
libx11-dev libxcursor-dev libxrandr-dev \
libxinerama-dev libxi-dev libxext-dev \
libegl1 libgl1 libegl-mesa0 libglx-mesa0 libgl1-mesa-dri
- name: Configure
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER=g++
- name: Build
run: cmake --build build -j
- name: "Test (slow: laige-render_tests)"
run: ctest --test-dir build --output-on-failure -R '^laige-render_tests$'
linux-gcc-particle:
name: "Linux x64 (g++) slow: particle_render"
runs-on: ubuntu-24.04
# 20: build (~1.5 min) + particle_render (38.76 s in the evidence run),
# plus runner variance.
timeout-minutes: 20
if: github.event.inputs.slow-particle == 'true'
steps:
- uses: actions/checkout@v4
- name: Install GLFW X11 headers (laige-render)
# Same rationale as the main job (see linux-gcc).
run: |
sudo apt-get update -qq
sudo apt-get install -y -qq \
libx11-dev libxcursor-dev libxrandr-dev \
libxinerama-dev libxi-dev libxext-dev \
libegl1 libgl1 libegl-mesa0 libglx-mesa0 libgl1-mesa-dri
- name: Configure
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER=g++
- name: Build
run: cmake --build build -j
- name: "Test (slow: particle_render)"
run: ctest --test-dir build --output-on-failure -R '^particle_render$'
linux-gcc-bench-fpx16:
name: "Linux x64 (g++) slow bench: laige_bench_render_50k_fpx16 + laige_bench_ac4_fpx16"
runs-on: ubuntu-24.04
# 30: build (~1.5 min) + the render-50k bench (577.05 s in the evidence
# run) + the ac4 bench (estimated ~60 s, M2-AC-01) plus runner
# variance. The pre-split 45-min exception minus the rest of the suite.
timeout-minutes: 30
if: github.event.inputs.slow-bench-50k == 'true'
steps:
- uses: actions/checkout@v4
- name: Install GLFW X11 headers (laige-render)
# Same rationale as the main job (see linux-gcc).
run: |
sudo apt-get update -qq
sudo apt-get install -y -qq \
libx11-dev libxcursor-dev libxrandr-dev \
libxinerama-dev libxi-dev libxext-dev \
libegl1 libgl1 libegl-mesa0 libglx-mesa0 libgl1-mesa-dri
- name: Configure
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER=g++
- name: Build
run: cmake --build build -j
- name: "Test (slow bench: render-50k + ac4, fpx16)"
run: ctest --test-dir build --output-on-failure -R '^(laige_bench_render_50k_fpx16|laige_bench_ac4_fpx16)$'
linux-gcc-bench-fp32:
name: "Linux x64 (g++) slow bench: laige_bench_render_50k_fp32 + laige_bench_ac4_fp32"
runs-on: ubuntu-24.04
# 30: build (~1.5 min) + the render-50k bench (593.82 s in the evidence
# run) + the ac4 bench (estimated ~60 s, M2-AC-01) plus runner variance.
timeout-minutes: 30
if: github.event.inputs.slow-bench-50k == 'true'
steps:
- uses: actions/checkout@v4
- name: Install GLFW X11 headers (laige-render)
# Same rationale as the main job (see linux-gcc).
run: |
sudo apt-get update -qq
sudo apt-get install -y -qq \
libx11-dev libxcursor-dev libxrandr-dev \
libxinerama-dev libxi-dev libxext-dev \
libegl1 libgl1 libegl-mesa0 libglx-mesa0 libgl1-mesa-dri
- name: Configure
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER=g++
- name: Build
run: cmake --build build -j
- name: "Test (slow bench: render-50k + ac4, fp32)"
run: ctest --test-dir build --output-on-failure -R '^(laige_bench_render_50k_fp32|laige_bench_ac4_fp32)$'
linux-clang-sim:
name: "Linux x64 (clang++) slow: laige-sim_tests"
runs-on: ubuntu-24.04
# 20: build (~1.5 min) + laige-sim_tests (53.79 s in the evidence run),
# plus runner variance.
timeout-minutes: 20
if: github.event.inputs.slow-sim == 'true'
steps:
- uses: actions/checkout@v4
- name: Install GLFW X11 headers (laige-render)
# Same rationale as the main job (see linux-clang).
run: |
sudo apt-get update -qq
sudo apt-get install -y -qq \
libx11-dev libxcursor-dev libxrandr-dev \
libxinerama-dev libxi-dev libxext-dev \
libegl1 libgl1 libegl-mesa0 libglx-mesa0 libgl1-mesa-dri
- name: Configure
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER=clang++
- name: Build
run: cmake --build build -j
- name: "Test (slow: laige-sim_tests)"
run: ctest --test-dir build --output-on-failure -R '^laige-sim_tests$'
linux-clang-render:
name: "Linux x64 (clang++) slow: laige-render_tests"
runs-on: ubuntu-24.04
# 20: build (~1.5 min) + laige-render_tests (44.45 s in the evidence run),
# plus runner variance.
timeout-minutes: 20
if: github.event.inputs.slow-render == 'true'
steps:
- uses: actions/checkout@v4
- name: Install GLFW X11 headers (laige-render)
# Same rationale as the main job (see linux-clang).
run: |
sudo apt-get update -qq
sudo apt-get install -y -qq \
libx11-dev libxcursor-dev libxrandr-dev \
libxinerama-dev libxi-dev libxext-dev \
libegl1 libgl1 libegl-mesa0 libglx-mesa0 libgl1-mesa-dri
- name: Configure
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER=clang++
- name: Build
run: cmake --build build -j
- name: "Test (slow: laige-render_tests)"
run: ctest --test-dir build --output-on-failure -R '^laige-render_tests$'
linux-clang-particle:
name: "Linux x64 (clang++) slow: particle_render"
runs-on: ubuntu-24.04
# 20: build (~1.5 min) + particle_render (34.67 s in the evidence run),
# plus runner variance.
timeout-minutes: 20
if: github.event.inputs.slow-particle == 'true'
steps:
- uses: actions/checkout@v4
- name: Install GLFW X11 headers (laige-render)
# Same rationale as the main job (see linux-clang).
run: |
sudo apt-get update -qq
sudo apt-get install -y -qq \
libx11-dev libxcursor-dev libxrandr-dev \
libxinerama-dev libxi-dev libxext-dev \
libegl1 libgl1 libegl-mesa0 libglx-mesa0 libgl1-mesa-dri
- name: Configure
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER=clang++
- name: Build
run: cmake --build build -j
- name: "Test (slow: particle_render)"
run: ctest --test-dir build --output-on-failure -R '^particle_render$'
linux-clang-bench-fpx16:
name: "Linux x64 (clang++) slow bench: laige_bench_render_50k_fpx16 + laige_bench_ac4_fpx16"
runs-on: ubuntu-24.04
# 30: build (~1.5 min) + the render-50k bench (578.42 s in the evidence
# run) + the ac4 bench (estimated ~60 s, M2-AC-01) plus runner variance.
timeout-minutes: 30
if: github.event.inputs.slow-bench-50k == 'true'
steps:
- uses: actions/checkout@v4
- name: Install GLFW X11 headers (laige-render)
# Same rationale as the main job (see linux-clang).
run: |
sudo apt-get update -qq
sudo apt-get install -y -qq \
libx11-dev libxcursor-dev libxrandr-dev \
libxinerama-dev libxi-dev libxext-dev \
libegl1 libgl1 libegl-mesa0 libglx-mesa0 libgl1-mesa-dri
- name: Configure
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER=clang++
- name: Build
run: cmake --build build -j
- name: "Test (slow bench: render-50k + ac4, fpx16)"
run: ctest --test-dir build --output-on-failure -R '^(laige_bench_render_50k_fpx16|laige_bench_ac4_fpx16)$'
linux-clang-bench-fp32:
name: "Linux x64 (clang++) slow bench: laige_bench_render_50k_fp32 + laige_bench_ac4_fp32"
runs-on: ubuntu-24.04
# 30: build (~1.5 min) + the render-50k bench (566.52 s in the evidence
# run) + the ac4 bench (estimated ~60 s, M2-AC-01) plus runner variance.
timeout-minutes: 30
if: github.event.inputs.slow-bench-50k == 'true'
steps:
- uses: actions/checkout@v4
- name: Install GLFW X11 headers (laige-render)
# Same rationale as the main job (see linux-clang).
run: |
sudo apt-get update -qq
sudo apt-get install -y -qq \
libx11-dev libxcursor-dev libxrandr-dev \
libxinerama-dev libxi-dev libxext-dev \
libegl1 libgl1 libegl-mesa0 libglx-mesa0 libgl1-mesa-dri
- name: Configure
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER=clang++
- name: Build
run: cmake --build build -j
- name: "Test (slow bench: render-50k + ac4, fp32)"
run: ctest --test-dir build --output-on-failure -R '^(laige_bench_render_50k_fp32|laige_bench_ac4_fp32)$'
linux-asan-sim:
name: "Linux x64 ASan+UBSan (clang++) slow: laige-sim_tests"
runs-on: ubuntu-24.04
# 20: build (~2.5 min) + laige-sim_tests (124.03 s in the evidence run),
# plus runner variance.
timeout-minutes: 20
# Job-scoped token: the archive step needs actions:write (see
# linux-asan).
permissions:
contents: read
actions: write
if: github.event.inputs.slow-sim == 'true'
steps:
- uses: actions/checkout@v4
- name: Install GLFW X11 headers (laige-render)
# Same rationale as the main job (see linux-asan).
run: |
sudo apt-get update -qq
sudo apt-get install -y -qq \
libx11-dev libxcursor-dev libxrandr-dev \
libxinerama-dev libxi-dev libxext-dev \
libegl1 libgl1 libegl-mesa0 libglx-mesa0 libgl1-mesa-dri
- name: Configure (ASan+UBSan)
run: cmake -S . -B build-asan -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER=clang++ -DLAIGE_ASAN=ON
- name: Build (ASan+UBSan)
run: cmake --build build-asan -j
- name: "Test (slow: laige-sim_tests, ASan+UBSan)"
env:
ASAN_OPTIONS: "abort_on_error=1:halt_on_error=1:detect_leaks=1:log_path=${{ github.workspace }}/asan-reports/asan"
run: |
set -o pipefail
ctest --test-dir build-asan --output-on-failure \
-R '^laige-sim_tests$' 2>&1 | tee asan-ctest-output.txt
- name: Archive sanitizer reports
# Runs green or red: on a red run the reports live in this
# artifact (one artifact per suite, per run).
if: always()
uses: actions/upload-artifact@v4
with:
name: linux-asan-slow-sim
path: |
asan-ctest-output.txt
asan-reports/
build-asan/Testing/Temporary/LastTest.log
linux-asan-render:
name: "Linux x64 ASan+UBSan (clang++) slow: laige-render_tests"
runs-on: ubuntu-24.04
# 20: build (~2.5 min) + laige-render_tests (43.20 s in the evidence run),
# plus runner variance.
timeout-minutes: 20
# Job-scoped token: the archive step needs actions:write (see
# linux-asan).
permissions:
contents: read
actions: write
if: github.event.inputs.slow-render == 'true'
steps:
- uses: actions/checkout@v4
- name: Install GLFW X11 headers (laige-render)
# Same rationale as the main job (see linux-asan).
run: |
sudo apt-get update -qq
sudo apt-get install -y -qq \
libx11-dev libxcursor-dev libxrandr-dev \
libxinerama-dev libxi-dev libxext-dev \
libegl1 libgl1 libegl-mesa0 libglx-mesa0 libgl1-mesa-dri
- name: Configure (ASan+UBSan)
run: cmake -S . -B build-asan -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER=clang++ -DLAIGE_ASAN=ON
- name: Build (ASan+UBSan)
run: cmake --build build-asan -j
- name: "Test (slow: laige-render_tests, ASan+UBSan)"
env:
ASAN_OPTIONS: "abort_on_error=1:halt_on_error=1:detect_leaks=1:log_path=${{ github.workspace }}/asan-reports/asan"
run: |
set -o pipefail
ctest --test-dir build-asan --output-on-failure \
-R '^laige-render_tests$' 2>&1 | tee asan-ctest-output.txt
- name: Archive sanitizer reports
# Runs green or red: on a red run the reports live in this
# artifact (one artifact per suite, per run).
if: always()
uses: actions/upload-artifact@v4
with:
name: linux-asan-slow-render
path: |
asan-ctest-output.txt
asan-reports/
build-asan/Testing/Temporary/LastTest.log
linux-asan-zero-alloc:
name: "Linux x64 ASan+UBSan (clang++) slow: zero_alloc"
runs-on: ubuntu-24.04
# 20: build (~2.5 min) + zero_alloc (43.76 s in the evidence run),
# plus runner variance.
timeout-minutes: 20
# Job-scoped token: the archive step needs actions:write (see
# linux-asan).
permissions:
contents: read
actions: write
if: github.event.inputs.slow-zero-alloc == 'true'
steps:
- uses: actions/checkout@v4
- name: Install GLFW X11 headers (laige-render)
# Same rationale as the main job (see linux-asan).
run: |
sudo apt-get update -qq
sudo apt-get install -y -qq \
libx11-dev libxcursor-dev libxrandr-dev \
libxinerama-dev libxi-dev libxext-dev \
libegl1 libgl1 libegl-mesa0 libglx-mesa0 libgl1-mesa-dri
- name: Configure (ASan+UBSan)
run: cmake -S . -B build-asan -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER=clang++ -DLAIGE_ASAN=ON
- name: Build (ASan+UBSan)
run: cmake --build build-asan -j
- name: "Test (slow: zero_alloc, ASan+UBSan)"
env:
ASAN_OPTIONS: "abort_on_error=1:halt_on_error=1:detect_leaks=1:log_path=${{ github.workspace }}/asan-reports/asan"
run: |
set -o pipefail
ctest --test-dir build-asan --output-on-failure \
-R '^zero_alloc$' 2>&1 | tee asan-ctest-output.txt
- name: Archive sanitizer reports
# Runs green or red: on a red run the reports live in this
# artifact (one artifact per suite, per run).
if: always()
uses: actions/upload-artifact@v4
with:
name: linux-asan-slow-zero-alloc
path: |
asan-ctest-output.txt
asan-reports/
build-asan/Testing/Temporary/LastTest.log
linux-asan-ecs-stress:
name: "Linux x64 ASan+UBSan (clang++) slow: ecs_stress"
runs-on: ubuntu-24.04
# 20: build (~2.5 min) + ecs_stress (42.87 s in the evidence run),
# plus runner variance.
timeout-minutes: 20
# Job-scoped token: the archive step needs actions:write (see
# linux-asan).
permissions:
contents: read
actions: write
if: github.event.inputs.slow-ecs-stress == 'true'
steps:
- uses: actions/checkout@v4
- name: Install GLFW X11 headers (laige-render)
# Same rationale as the main job (see linux-asan).
run: |
sudo apt-get update -qq
sudo apt-get install -y -qq \
libx11-dev libxcursor-dev libxrandr-dev \
libxinerama-dev libxi-dev libxext-dev \
libegl1 libgl1 libegl-mesa0 libglx-mesa0 libgl1-mesa-dri
- name: Configure (ASan+UBSan)
run: cmake -S . -B build-asan -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER=clang++ -DLAIGE_ASAN=ON
- name: Build (ASan+UBSan)
run: cmake --build build-asan -j
- name: "Test (slow: ecs_stress, ASan+UBSan)"
env:
ASAN_OPTIONS: "abort_on_error=1:halt_on_error=1:detect_leaks=1:log_path=${{ github.workspace }}/asan-reports/asan"
run: |
set -o pipefail
ctest --test-dir build-asan --output-on-failure \
-R '^ecs_stress$' 2>&1 | tee asan-ctest-output.txt
- name: Archive sanitizer reports
# Runs green or red: on a red run the reports live in this
# artifact (one artifact per suite, per run).
if: always()
uses: actions/upload-artifact@v4
with:
name: linux-asan-slow-ecs-stress
path: |
asan-ctest-output.txt
asan-reports/
build-asan/Testing/Temporary/LastTest.log
linux-tsan-sim:
name: "Linux x64 TSan (clang++) slow: laige-sim_tests"
runs-on: ubuntu-24.04
# 20: build (~2 min) + laige-sim_tests (159.52 s in the evidence run),
# plus runner variance.
timeout-minutes: 20
# Job-scoped token: the archive step needs actions:write (see
# linux-tsan).
permissions:
contents: read
actions: write
if: github.event.inputs.slow-sim == 'true'
steps:
- uses: actions/checkout@v4
- name: Install GLFW X11 headers (laige-render)
# Same rationale as the main job (see linux-tsan).
run: |
sudo apt-get update -qq
sudo apt-get install -y -qq \
libx11-dev libxcursor-dev libxrandr-dev \
libxinerama-dev libxi-dev libxext-dev \
libegl1 libgl1 libegl-mesa0 libglx-mesa0 libgl1-mesa-dri
- name: Configure (TSan)
run: cmake -S . -B build-tsan -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER=clang++ -DLAIGE_TSAN=ON
- name: Build (TSan)
run: cmake --build build-tsan -j
- name: "Test (slow: laige-sim_tests, TSan)"
run: |
set -o pipefail
ctest --test-dir build-tsan --output-on-failure \
-R '^laige-sim_tests$' 2>&1 | tee tsan-ctest-output.txt
- name: Archive sanitizer reports
# Runs green or red: on a red run the reports live in this
# artifact (one artifact per suite, per run).
if: always()
uses: actions/upload-artifact@v4
with:
name: linux-tsan-slow-sim
path: |
tsan-ctest-output.txt
build-tsan/Testing/Temporary/LastTest.log
linux-tsan-render:
name: "Linux x64 TSan (clang++) slow: laige-render_tests"
runs-on: ubuntu-24.04
# 20: build (~2 min) + laige-render_tests (60.41 s in the evidence run),
# plus runner variance.
timeout-minutes: 20
# Job-scoped token: the archive step needs actions:write (see
# linux-tsan).
permissions:
contents: read
actions: write
if: github.event.inputs.slow-render == 'true'
steps:
- uses: actions/checkout@v4
- name: Install GLFW X11 headers (laige-render)
# Same rationale as the main job (see linux-tsan).
run: |
sudo apt-get update -qq
sudo apt-get install -y -qq \
libx11-dev libxcursor-dev libxrandr-dev \
libxinerama-dev libxi-dev libxext-dev \
libegl1 libgl1 libegl-mesa0 libglx-mesa0 libgl1-mesa-dri
- name: Configure (TSan)
run: cmake -S . -B build-tsan -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER=clang++ -DLAIGE_TSAN=ON
- name: Build (TSan)
run: cmake --build build-tsan -j
- name: "Test (slow: laige-render_tests, TSan)"
run: |
set -o pipefail
ctest --test-dir build-tsan --output-on-failure \
-R '^laige-render_tests$' 2>&1 | tee tsan-ctest-output.txt
- name: Archive sanitizer reports
# Runs green or red: on a red run the reports live in this
# artifact (one artifact per suite, per run).
if: always()
uses: actions/upload-artifact@v4
with:
name: linux-tsan-slow-render
path: |
tsan-ctest-output.txt
build-tsan/Testing/Temporary/LastTest.log
linux-tsan-particle:
name: "Linux x64 TSan (clang++) slow: particle_render"
runs-on: ubuntu-24.04
# 20: build (~2 min) + particle_render (39.56 s in the evidence run),
# plus runner variance.
timeout-minutes: 20
# Job-scoped token: the archive step needs actions:write (see
# linux-tsan).
permissions:
contents: read
actions: write
if: github.event.inputs.slow-particle == 'true'
steps:
- uses: actions/checkout@v4
- name: Install GLFW X11 headers (laige-render)
# Same rationale as the main job (see linux-tsan).
run: |
sudo apt-get update -qq
sudo apt-get install -y -qq \
libx11-dev libxcursor-dev libxrandr-dev \
libxinerama-dev libxi-dev libxext-dev \
libegl1 libgl1 libegl-mesa0 libglx-mesa0 libgl1-mesa-dri
- name: Configure (TSan)
run: cmake -S . -B build-tsan -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER=clang++ -DLAIGE_TSAN=ON
- name: Build (TSan)
run: cmake --build build-tsan -j
- name: "Test (slow: particle_render, TSan)"
run: |
set -o pipefail
ctest --test-dir build-tsan --output-on-failure \
-R '^particle_render$' 2>&1 | tee tsan-ctest-output.txt
- name: Archive sanitizer reports
# Runs green or red: on a red run the reports live in this
# artifact (one artifact per suite, per run).
if: always()
uses: actions/upload-artifact@v4
with:
name: linux-tsan-slow-particle
path: |
tsan-ctest-output.txt
build-tsan/Testing/Temporary/LastTest.log
linux-tsan-zero-alloc:
name: "Linux x64 TSan (clang++) slow: zero_alloc"
runs-on: ubuntu-24.04
# 20: build (~2 min) + zero_alloc (54.75 s in the evidence run),
# plus runner variance.
timeout-minutes: 20
# Job-scoped token: the archive step needs actions:write (see
# linux-tsan).
permissions:
contents: read
actions: write