-
Notifications
You must be signed in to change notification settings - Fork 54
1514 lines (1465 loc) · 79.1 KB
/
Copy pathci.yml
File metadata and controls
1514 lines (1465 loc) · 79.1 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
# PR / push CI for lightweight quality gates. Runs cargo-deny (license /
# advisory) and cargo-fmt on every touched-Rust change so formatting drift and
# license issues are caught at PR time.
#
# The general unit suite is not gated at PR time, and clippy is gated only in
# the narrow shape described below. Both used to run on the self-hosted Apple
# Silicon runner, first here and then briefly in release.yml, and in both cases
# consumed ~30 min per run, blocking either PRs or releases on a shared
# resource for failures that `make verify` reliably catches on the developer's
# machine in a fraction of the time (#21, #23).
#
# The `clippy` job below is deliberately not a return to that arrangement. It
# runs `cargo clippy -p mlxcel --lib --tests -- -D warnings` at default
# features on the self-hosted GB10 runner with its own persistent target
# directory, so it neither touches the Apple Silicon runner nor pays a cold
# build after its first run. It exists because #916 merged an `err_expect`
# that reddened `make verify` for every contributor on every platform and sat
# on `main` until the nightly backstop caught it a day later (#1283): the
# per-crate lint that catches it is cheap, and only its absence at PR time was
# expensive.
#
# They are not absent from every workflow, though, so do not read the above as
# "nothing anywhere runs them":
#
# - pipeline-parallel-ci.yml runs `cargo clippy -p mlxcel --lib --tests
# -- -D warnings`, and reaches `cargo test` through scripts/ci/run-pp-*.sh
# with `distributed::`-prefixed selectors. It is debug profile on
# ubuntu-latest and path-filtered to src/distributed/pipeline/** and its
# siblings, so it never runs on a model-port PR and never selects a model
# or CLI test module.
# - nightly-verify.yml runs the full `make verify` (fmt + clippy + test) once
# a day on the self-hosted Apple Silicon runner and files an issue when it
# fails. It is a backstop against a red `main`, not a PR gate; see #939 for
# the two deterministic failures that sat on `main` before it existed, and
# for why it is nightly rather than per-PR.
#
# Quality gate still lives locally at PR time. Pre-push checklist:
# make verify # fmt + clippy(workspace, metal,accelerate, -D warnings)
# # + test(workspace, test-fast)
# make verify-clean # same, after `cargo clean` — use when clippy's
# # per-crate cache may be hiding a regression
#
# Note on CUDA gating: running the CUDA test suite stays exclusive to
# release.yml because it requires a Linux self-hosted runner (currently only the
# GB10 node used for release builds). Adding a PR-level CUDA *test* gate would
# double runner cost for limited additional safety on PRs that don't touch
# CUDA-specific code paths. Compiling CUDA is a different question and four
# jobs below do it: `xla-compile` and `xla-link` at the shipped sm_121,
# `cuda-blockfloat` at the same list, and `cuda-sm70-compile` at sm_70, each on a
# narrow path filter. `cuda-blockfloat` is the single exception to the sentence
# above, and a narrow one: it runs the block-float quantization tests and only
# those, because until issue #1934 no build anywhere compiled MLX's hardware
# NVFP4/MXFP4 converter, so those tests had never once exercised the path they
# are named for.
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
concurrency:
# One CI run per branch, because four jobs below land on GB10, the single
# self-hosted Linux runner that also serves the release build: `clippy`,
# `xla-compile`, `xla-link`, and `cuda-sm70-compile`. Without a group, a run
# for a commit nobody is waiting on any more does not merely sit idle, it
# holds a place in line ahead of the runs that matter. Measured over
# 2026-09-10 KST: 113 runs created, 14 open at once, 11 of those stacked on
# four branches, and six cancelled by hand purely to free the runner (#1774).
#
# `main` is deliberately excluded from the cancellation, which is what the
# `cancel-in-progress` expression encodes. A push-to-main run is the one that
# catches what a stale PR base hid, and it is the last gate before a release
# builds from that commit; killing it because the next merge landed 90 seconds
# later discards the only signal nothing else produces. The queueing cost of
# that choice is bounded rather than unbounded, because cancelling a *pending*
# run is inherent to grouping and `cancel-in-progress` governs only the
# *running* one: GitHub keeps the in-flight `main` run plus at most one
# pending run behind it, so back-to-back merges queue two deep and not N deep.
# What that leaves in place, stated plainly rather than discovered later, is
# that an intermediate `main` commit can have its run cancelled while still
# pending; whatever commit is at the head of `main` is always the newest in
# the group and so always gets a run, which is the property that matters
# before a release is cut from it. nightly-verify.yml made the same trade for
# the same reason (its group is unconditional, having no PR half to key on).
#
# `github.event.pull_request.number || github.ref` is the shape already used
# by pipeline-parallel-ci.yml and by the two per-job groups below, and it
# keeps a PR run and a `main` push run in distinct groups. The per-job groups
# in `xla-link` and `cuda-sm70-compile` stay as they are: workflow-level and
# job-level groups compose, and those two are keyed differently on purpose.
group: ci-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
permissions:
contents: read
jobs:
changes:
name: Detect changes
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: read
outputs:
rust: ${{ steps.filter.outputs.rust }}
mlx_pin: ${{ steps.filter.outputs.mlx_pin }}
xla_link: ${{ steps.filter.outputs.xla_link }}
cuda_arch: ${{ steps.filter.outputs.cuda_arch }}
webui_bundle: ${{ steps.filter.outputs.webui_bundle }}
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
- uses: dorny/paths-filter@v4
id: filter
with:
filters: |
rust:
- '**/*.rs'
- '**/Cargo.toml'
- 'Cargo.lock'
- 'deny.toml'
- 'build.rs'
- 'scripts/iree/**'
- '.github/workflows/ci.yml'
mlx_pin:
- 'src/lib/mlx-cpp/CMakeLists.txt'
- 'src/lib/mlxcel-core/build_support/mlx_pin.rs'
- 'src/lib/mlxcel-mlx-pin/**'
- 'scripts/ci/mlx_pinned_commit.sh'
- 'scripts/ci/mlx_pinned_commit_test.sh'
- '.github/workflows/ci.yml'
# Narrower than `rust` above: only the paths that can move the IREE
# link recipe itself, so the release link job below does not run on
# every Rust PR. See the `xla-link` job comment for the rationale.
xla_link:
- 'build.rs'
- 'src/lib/mlxcel-xla/build.rs'
- 'src/lib/mlxcel-xla/csrc/**'
- 'scripts/iree/**'
- 'rust-toolchain.toml'
- '.github/workflows/ci.yml'
# The CUDA half of the same link line: mlxcel-core's build
# script names the CUDA libraries, and the MLX pin decides which
# of them libmlx.a needs. See the `xla-link` job comment.
- 'src/lib/mlxcel-core/build.rs'
- 'src/lib/mlx-cpp/CMakeLists.txt'
# Everything that can compile differently per CUDA architecture: the
# MLX overlays and turbo kernels, the pinned MLX commit, and the
# build scripts that hand CMake the architecture list. Rust sources
# outside these paths cannot break an arch-conditional compile, so
# the sm_70 gate below does not run on every Rust PR. See the
# `cuda-sm70-compile` job comment for why sm_70 specifically.
cuda_arch:
- 'src/lib/mlx-cpp/**'
- 'src/lib/mlxcel-core/build.rs'
- 'src/lib/mlxcel-core/build_support/**'
- 'build.rs'
- '.github/workflows/ci.yml'
webui_bundle:
- 'webui/**'
- 'src/webui/assets/**'
- 'src/server/**'
- 'src/cli/**'
- 'src/bin/mlx_server.rs'
- 'src/main.rs'
- 'tests/fixtures/webui/**'
- 'scripts/webui/**'
- 'scripts/ci/*webui*'
- 'Cargo.toml'
- 'Cargo.lock'
- 'Makefile'
- '.github/workflows/ci.yml'
deny:
name: cargo-deny
needs: changes
if: needs.changes.outputs.rust == 'true'
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
- uses: EmbarkStudios/cargo-deny-action@v2
with:
command: check
fmt:
name: cargo-fmt
needs: changes
if: needs.changes.outputs.rust == 'true'
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
# The tag on this action IS the toolchain version it installs, so it must
# track `rust-toolchain.toml`'s `channel` rather than be bumped on its own.
# Dependabot reads the tag as an ordinary version and will try to raise it;
# `.github/dependabot.yml` ignores this action for that reason.
- uses: dtolnay/rust-toolchain@1.97.1
with:
components: rustfmt
- run: cargo fmt --all -- --check
clippy:
name: cargo-clippy
needs: changes
# On the repository guard, because it is easy to read more into it than it
# does. It keeps this job from queueing forever in a *fork of* this
# repository, which has no GB10 runner of its own. It does not stop a pull
# request opened *from* a fork against lablup/mlxcel: on that event
# `github.repository` is the base repository, so the guard is true and the
# job runs here, executing the PR's `build.rs` and `scripts/iree/**` as the
# runner's own user. What actually gates that case is the repository's
# Actions fork-PR approval policy, currently `first_time_contributors`.
# The same reading applies to `xla-compile` and `xla-link` below.
if: github.repository == 'lablup/mlxcel' && needs.changes.outputs.rust == 'true'
runs-on: GB10
permissions:
contents: read
timeout-minutes: 60
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
- name: Use a persistent target directory
run: |
# Clippy emits different artifacts than a build, so it gets its own
# directory rather than sharing (and repeatedly invalidating) the
# xla-compile or release caches. Cold on first run, warm after.
CARGO_TARGET="$HOME/.cargo-target/mlxcel-clippy-ci"
mkdir -p "$CARGO_TARGET"
echo "CARGO_TARGET_DIR=$CARGO_TARGET" >> $GITHUB_ENV
# Default features (`surgery`, no accelerator). The lint that motivated
# this job (#1283) reproduces on every feature set, so the cheapest one
# that compiles the crate is enough, and it is the same command
# pipeline-parallel-ci.yml already runs on its own path filter.
#
# On the runner choice, measured rather than assumed, so the question does
# not get re-litigated from scratch. This job is here and not on
# `ubuntu-latest` because `src/lib/mlxcel-core/build.rs` builds MLX through
# cmake unconditionally: the accelerator features pick a backend, they do
# not decide whether the C++ builds. A GitHub-hosted runner would pay that
# cold on every run, since the one `ubuntu-latest` job this repository
# already has (`pipeline-parallel-ci.yml`) caches the cargo registry and
# not `target/`, and it takes about 28 minutes. Here the same command is
# 2m44s cold and 27 to 40 seconds warm off the persistent target directory.
#
# The cost of staying on GB10 is that this runner also serves
# `xla-compile` and the release build, so a release in flight queues this
# job behind it and delays a merge. That happened once on 2026-08-22
# (#1301). It is a delay and not a failure: a queued job consumes nothing,
# and the release was not slowed by it. Trading a rare queue wait for
# roughly 20 minutes on every PR would re-create the cost objection that
# removed clippy from PR-time CI in the first place (#21, #23).
- name: Clippy
run: |
cargo clippy \
-p mlxcel \
--lib \
--tests \
-- -D warnings
crate-versions:
name: crate versions
# Deliberately not behind the `changes` filter. It needs no toolchain and
# runs in seconds, and a version-consistency gate that can be skipped is
# exactly the gate that gets skipped on the one PR that breaks it.
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
# Gating, not advisory. From v0.3.3 onward the root `mlxcel` and every
# member crate that ships with it carry the same `[package] version`, and
# a release has to bump several manifests at once. The list used to live
# in prose (CLAUDE.md, the release skill) and went stale the moment a
# member was added: `mlxcel-mlx-pin` tracked the root version from the day
# it was created without either document saying so. The script inverts the
# rule, so a new member fails this job until it is either bumped with the
# root or declared independent with a reason. No toolchain needed.
- name: Check every version-tracking crate carries the root version
run: python3 scripts/ci/check_crate_versions.py
kernel-dtype-keys:
name: kernel dtype keys
# Deliberately not behind the `changes` filter, for the same reason as
# `crate-versions`: it needs no toolchain, runs in seconds, and the defect it
# guards against is silent. MLX's CUDA JIT memoises a compiled kernel under a
# name that does not carry the input dtypes, so a launch whose template args
# are all ints serves the first dtype's compiled module to every later dtype
# at the same geometry, reading buffers through the wrong pointer type.
# Issues #1053 and #1054 are two symptoms of exactly that. macOS never sees
# it, because Metal's key does carry the dtypes, so this job is the only
# place the omission is caught without CUDA hardware.
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
- name: Check every CUDA JIT launch keys its cache on the input dtypes
run: python3 scripts/ci/check_kernel_dtype_keys.py
binary-assets:
name: binary assets
# Deliberately not behind the `changes` filter, for the same reason as
# `crate-versions` and `kernel-dtype-keys`: it needs no toolchain, runs in
# seconds, and the defect it guards against is silent. Binary blobs never
# delta-compress and deleting one later does not shrink the history, so the
# cost of adding one only shows up as clone time long after the commit.
# `webui/tests/screenshots/` reached 24 PNGs and ~1.9 MB without any review
# step noticing, because each commit looked reasonable on its own and
# nothing looked at the aggregate. The check inverts the rule: an
# undeclared binary path fails until someone declares it with a reason.
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
- name: Check every tracked binary file is declared with a size budget
run: python3 scripts/ci/check_binary_assets.py
- name: Check the guard still fails on undeclared and oversize binaries
run: bash scripts/ci/check_binary_assets_test.sh
cuda-arch-lists:
name: CUDA architecture lists
# Deliberately not behind the `changes` filter, like `crate-versions` and
# `binary-assets`: it needs no toolchain, runs in seconds, and both defects
# it guards against are silent.
#
# MLX compiles its hardware NVFP4/MXFP4 converters
# (`cvt.rn.satfinite.e2m1x2.f32` in
# mlx/backend/cuda/quantized/nvfp4_quantize.cuh) only under an
# architecture-specific target, and the lists here are plain, so what
# supplies them is the per-source injection in
# `src/lib/mlx-cpp/CMakeLists.txt`. Remove that and the plain lists quietly
# go back to compiling the converters out of every artifact and every test,
# which is where issue #1934 started, so this asserts it is still there.
#
# The other direction is the obvious fix: putting `121a` in a list. That
# compiles every translation unit architecture-specific for a converter one
# of them reaches, costs 12.7 MB of archive and replaces the machine code of
# every decode kernel on every Blackwell host. Two tokens in a YAML `env`
# block, and no build output names the difference, so it is rejected here by
# name. So is the `f` spelling, which reads as a milder `a` and does not
# compile at all.
#
# The `cuda-blockfloat` job below asserts the same two properties on the
# compiled artifact, which is stronger, but it costs a CUDA build and is
# path-filtered. This one runs on every PR.
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
- name: Every Blackwell architecture list carries a hardware-capable entry
run: python3 scripts/ci/check_cuda_arch_lists.py
- name: Check the guard still fails on plain-only and family-specific lists
run: bash scripts/ci/check_cuda_arch_lists_test.sh
license-headers:
name: license headers
# Deliberately not behind the `changes` filter, like `crate-versions` and
# `kernel-dtype-keys`: it needs no toolchain and runs in seconds.
#
# This gate exists because coverage without enforcement did nothing. Issue
# #1707 found `benches/audio_fft.rs` shipping unlicensed and traced it to
# `benches` missing from the script's `TARGET_ROOTS`. That was only the
# visible instance: the roots list already named `src`, `examples` and
# `tests`, and 95 files under those three roots were unlicensed anyway,
# because nothing ever ran the script. Fixing the list would not have
# caught a single one of them. Running it in CI does.
#
# `--check` writes nothing and reports the files the default insert mode
# would touch, reusing the same `has_existing_header` predicate the writer
# branches on, so the gate can never demand an edit that running
# `python3 scripts/insert_apache_header.py` does not produce. Files that
# already carry someone else's provenance (the vendored MLX patches under
# src/lib/mlx-cpp/patches/ keep Apple's copyright) are skipped by that same
# predicate and must stay that way: this gate must never stamp a Lablup
# header onto upstream-derived code.
#
# The second step is the script's own unit suite, which nothing else runs:
# tests/test_insert_apache_header.py sits outside python/, and
# python.yml's pytest step is scoped to `python/tests` behind a
# `python/**` path filter.
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
- name: Every owned source file carries the license header
run: python3 scripts/insert_apache_header.py --check
- name: Header script unit tests
run: python3 -m unittest discover -s tests -p 'test_insert_apache_header.py' -v
llama-compat-manifest:
name: llama-compat manifest
# Deliberately not behind the `changes` filter, like `crate-versions`: it
# needs no toolchain and runs in seconds. Validates the checked-in
# llama-server b10621 compatibility manifest (compat/llama-server/b10621/,
# issue #1443, epic #1431): pinned counts (249 help entries, 323 long
# spellings, 134 LLAMA_* env vars), one policy state per entry (five
# states since #1499: supported / aliased / not_applicable / deferred /
# by_design), issue links on deferred entries, test ids on non-supported
# entries, the entry key allowlist, the rule that a non-empty
# `divergence` forbids `supported`, the by_design obligations (non-empty
# divergence, notes, a resolving test pointer, and a well-formed
# `rationale` whose policy kind must state its revisit condition, with
# `rationale` null on every other state), and canonical serialization.
# --check-issues-open additionally asserts every issue a deferred entry
# links is still open, so closing a chain issue without flipping its
# manifest entries fails here; by_design entries never feed that check,
# because a permanent, tested divergence has no issue left to keep open. The second step
# is the validator's own negative coverage: it mutates a throwaway copy of
# the manifest and asserts the gate rejects it. The binary-facing half of the
# gate (option spellings, env bindings, defaults against both server
# binaries, hidden arguments included, plus mounted routes and native
# request fields) runs inside the workspace test suite as
# tests/llama_compat_manifest.rs and src/server/llama_compat_tests.rs.
runs-on: ubuntu-latest
permissions:
contents: read
issues: read
env:
GH_TOKEN: ${{ github.token }}
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
- name: Validate the b10621 compatibility manifest
run: python3 scripts/ci/check_llama_compat_manifest.py --check-issues-open
- name: Validator negative coverage
run: bash scripts/ci/check_llama_compat_manifest_test.sh
webui-bundle:
name: WebUI bundle
needs: changes
if: needs.changes.outputs.webui_bundle == 'true'
runs-on: ubuntu-24.04
permissions:
contents: read
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
- uses: actions/setup-node@v5
with:
node-version: '26.5.1'
- name: Install pnpm
run: npm install --global pnpm@11.18.0
- name: Install WebUI dependencies
run: pnpm --dir webui install --frozen-lockfile
- name: Typecheck WebUI
run: pnpm --dir webui run typecheck
- name: Lint WebUI
run: pnpm --dir webui run lint
# Issue #1903: data-theme is always <family>-<scheme>, so a selector keyed
# on a bare mode (or on the host OS scheme) silently stops applying. The
# gate evaluates every theme selector against the ids theme.ts ships.
- name: Check WebUI theme selectors
run: pnpm --dir webui run check:theme-selectors
- name: Test WebUI scaffold
run: pnpm --dir webui run unit
- name: Install browser runtime
run: pnpm --dir webui exec playwright install --with-deps chromium firefox webkit
# Kept after the pixel baselines were dropped. The browser suite no longer
# compares images, but expectSafeLayout, expectCompactToolbarHitTargets and
# expectTextScaleLabelsReachable all assert measured geometry, and the CJK
# drawer variant needs a Korean face to lay out at all. An unpinned runner
# font set moves those measurements, so the pin is now a layout-stability
# dependency rather than a rendering one.
- name: Install WebUI layout fonts
run: |
sudo apt-get install -y --no-install-recommends fonts-dejavu-core=2.37-8 fonts-dejavu-extra=2.37-8 fonts-wqy-zenhei=0.9.45-8
fc-cache -f
- name: Log WebUI browser font environment
run: |
uname -a
cat /etc/os-release
node --version
pnpm --version
pnpm --dir webui exec playwright --version
pnpm --dir webui exec playwright install --dry-run chromium firefox webkit
fc-match sans-serif || true
fc-match system-ui || true
fc-match 'system-ui:weight=bold' || true
fc-match Arial || true
fc-list | wc -l
- name: Run WebUI Chromium layout and accessibility scaffold
env:
MLXCEL_WEBUI_FONT_DIAGNOSTICS: '1'
run: pnpm --dir webui run browser
- name: Ensure headed WebUI browser display helper
run: |
if ! command -v xvfb-run >/dev/null 2>&1; then
sudo apt-get install -y --no-install-recommends xvfb
fi
command -v xvfb-run
- name: Run WebUI browser engine smoke on Chromium, Firefox, and WebKit
run: xvfb-run -a --server-args='-screen 0 1920x1080x24' pnpm --dir webui run browser:all
- name: Upload WebUI browser failure artifacts
if: failure()
uses: actions/upload-artifact@v4
with:
name: webui-browser-failure-artifacts-${{ runner.os }}
path: |
webui/test-results/**/*.png
if-no-files-found: warn
- name: Verify generated WebUI bundle
run: python3 scripts/webui/build_bundle.py --verify
webui-contract:
name: WebUI contract
# Contract-first gate for the bundled WebUI epic. It needs no Rust
# toolchain and intentionally runs as its own drift check: schema changes
# must update generated TypeScript DTOs and representative fixtures in the
# same PR before backend or frontend owners consume the contract.
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
- name: Install pinned contract verifier
run: python3 -m pip install -r scripts/ci/webui_contract_requirements.txt
- name: Validate WebUI schema, DTOs, and fixtures
run: python3 scripts/ci/check_webui_contract.py --self-test
webui-installed-artifact:
name: WebUI installed artifact
needs: changes
if: github.repository == 'lablup/mlxcel' && (needs.changes.outputs.webui_bundle == 'true' || needs.changes.outputs.rust == 'true')
runs-on: GB10
permissions:
contents: read
timeout-minutes: 90
env:
# What releases build for this runner's architecture, pinned rather than
# inferred so the artifact this job verifies carries the same device code
# the published one does whatever GPU the runner turns out to have. Since
# issue #1943 auto-detection produces this same `121` on a GB10, so the pin
# no longer corrects a shape mismatch: it states the list instead of
# inferring it, which is what makes the job reviewable and what keeps it
# right if this ever runs on something other than a GB10.
MLX_CUDA_ARCHITECTURES: "121"
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
- name: Use a persistent target directory
run: |
CARGO_TARGET="$HOME/.cargo-target/mlxcel-webui-installed-ci"
mkdir -p "$CARGO_TARGET"
echo "CARGO_TARGET_DIR=$CARGO_TARGET" >> $GITHUB_ENV
- name: Build installed server and CLI artifacts once
run: cargo build --profile test-fast --features cuda,webui --bin mlxcel-server --bin mlxcel
- name: Preserve WebUI-enabled installed artifacts before feature-off build
run: |
mkdir -p "$RUNNER_TEMP/mlxcel-webui-installed"
cp "$CARGO_TARGET_DIR/test-fast/mlxcel-server" "$RUNNER_TEMP/mlxcel-webui-installed/mlxcel-server-webui"
cp "$CARGO_TARGET_DIR/test-fast/mlxcel" "$RUNNER_TEMP/mlxcel-webui-installed/mlxcel-webui"
- name: Build feature-disabled server and CLI artifacts once
run: cargo build --profile test-fast --no-default-features --features cuda --bin mlxcel-server --bin mlxcel
- name: Preserve feature-disabled installed artifacts
run: |
cp "$CARGO_TARGET_DIR/test-fast/mlxcel-server" "$RUNNER_TEMP/mlxcel-webui-installed/mlxcel-server-feature-off"
cp "$CARGO_TARGET_DIR/test-fast/mlxcel" "$RUNNER_TEMP/mlxcel-webui-installed/mlxcel-feature-off"
- uses: actions/setup-node@v5
with:
node-version: '26.5.1'
- name: Install pnpm for real-router browser harness
run: npm install --global pnpm@11.18.0
- name: Install WebUI dependencies for real-router browser harness
run: pnpm --dir webui install --frozen-lockfile
- name: Install Chromium runtime for real-router browser harness
run: pnpm --dir webui exec playwright install chromium
- name: Probe Chromium runtime for real-router browser harness
timeout-minutes: 1
run: |
set -euo pipefail
timeout 45s pnpm --dir webui exec node -e '
const { chromium } = require("@playwright/test");
(async () => {
let browser;
try {
browser = await chromium.launch();
const page = await browser.newPage({ viewport: { width: 800, height: 600 } });
await page.setContent("<main id=\"probe\">ready</main>");
const box = await page.locator("#probe").boundingBox();
if (!box || box.width <= 0 || box.height <= 0) {
throw new Error("Chromium geometry probe failed");
}
} finally {
if (browser) {
await browser.close();
}
}
})().catch((error) => {
console.error(`Chromium runtime probe failed: ${error.message}`);
process.exit(1);
});
'
- name: Run WebUI real-router browser harness
env:
MLXCEL_WEBUI_ROUTER_ARTIFACTS: webui/test-results/rust-router-ci
run: cargo test --profile test-fast --features cuda,webui --lib server::router_server::router_webui_playwright_harness_tests::real_router_browser_harness -- --ignored --exact --nocapture
- name: Unit-test the installed-artifact verifier helpers
run: |
python3 scripts/webui/measure_startup_tests.py
python3 scripts/webui/verify_installed_artifact_tests.py
python3 scripts/webui/verify_generated_key_helper_tests.py
python3 scripts/webui/verify_reverse_proxy_tests.py
python3 scripts/webui/verify_single_model_tests.py
python3 scripts/webui/verify_activity_performance_tests.py
python3 scripts/webui/summarize_activity_evidence_tests.py
- name: Verify the installed Rust artifact serves the bundled WebUI
env:
WEBUI_INSTALLED_EVIDENCE: ${{ runner.temp }}/webui-installed-evidence.json
WEBUI_NETWORK_SANDBOX: require
WEBUI_REQUIRE_TLS: '1'
WEBUI_BUILD_SOURCE_HEAD: ${{ github.sha }}
WEBUI_FEATURE_OFF_BUILD_SOURCE_HEAD: ${{ github.sha }}
run: |
WEBUI_SERVER_BIN="$RUNNER_TEMP/mlxcel-webui-installed/mlxcel-server-webui" \
WEBUI_CLI_BIN="$RUNNER_TEMP/mlxcel-webui-installed/mlxcel-webui" \
WEBUI_FEATURE_OFF_SERVER_BIN="$RUNNER_TEMP/mlxcel-webui-installed/mlxcel-server-feature-off" \
WEBUI_FEATURE_OFF_CLI_BIN="$RUNNER_TEMP/mlxcel-webui-installed/mlxcel-feature-off" \
python3 scripts/webui/verify_installed_artifact.py
- name: Verify loopback reverse-proxy WebUI edge behavior
env:
WEBUI_REVERSE_PROXY_EVIDENCE: ${{ runner.temp }}/webui-reverse-proxy-evidence.json
run: |
python3 scripts/webui/verify_reverse_proxy.py \
--server-bin "$RUNNER_TEMP/mlxcel-webui-installed/mlxcel-server-webui" \
--cli-bin "$RUNNER_TEMP/mlxcel-webui-installed/mlxcel-webui" \
--build-source-head "${{ github.sha }}" \
--evidence "$WEBUI_REVERSE_PROXY_EVIDENCE"
- name: Check native-hidden Activity display prerequisites
run: |
set -euo pipefail
missing=0
for tool in Xvfb openbox flock nvidia-smi; do
if ! command -v "$tool" >/dev/null 2>&1; then
echo "::error::$tool is required on the GB10 runner for the native-hidden Activity gate"
missing=1
fi
done
if [ "$missing" -ne 0 ]; then
echo "::error::Provision Xvfb, openbox, flock, and nvidia-smi on the GB10 runner; this job does not use sudo or skip the native-hidden gate"
exit 1
fi
# The real-router harness runs headless, but the native-hidden Activity gate below needs a
# headed browser with a real window. Those fail differently: a headed launch with no window
# server reports a zero-sized content area rather than an error, which the gate only
# discovers after starting a server and loading a checkpoint. Probe it here, where the
# message names the cause.
- name: Probe headed Chromium geometry under a virtual display
timeout-minutes: 2
run: |
set -euo pipefail
timeout 90s xvfb-run -a --server-args='-screen 0 1600x1100x24' pnpm --dir webui exec node -e '
const { chromium } = require("@playwright/test");
(async () => {
let browser;
try {
browser = await chromium.launch({ headless: false });
const page = await browser.newPage({ viewport: { width: 700, height: 900 } });
await page.goto("data:text/html,<main>ready</main>");
const geometry = await page.evaluate(() => ({ innerWidth: window.innerWidth, innerHeight: window.innerHeight }));
console.log(`headed geometry: ${JSON.stringify(geometry)}`);
if (!(geometry.innerWidth > 0 && geometry.innerHeight > 0)) {
throw new Error("headed Chromium reported a zero-sized content area; the virtual display or window manager is not usable");
}
} finally {
if (browser) {
await browser.close();
}
}
})().catch((error) => {
console.error(`Headed Chromium probe failed: ${error.message}`);
process.exit(1);
});
'
- name: Cache Activity checkpoint fixture
id: activity-fixture-cache
uses: actions/cache@v6
with:
path: ${{ runner.temp }}/mlxcel-webui-activity-fixtures/qwen3-0.6b-4bit
key: ${{ runner.os }}-webui-activity-qwen3-0.6b-4bit-v1
- name: Download Activity checkpoint fixture
if: steps.activity-fixture-cache.outputs.cache-hit != 'true'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CI_FIXTURE_TAG: ci-fixtures/qwen3-0.6b-4bit-v1
CI_FIXTURE_ASSET: qwen3-0.6b-4bit.tar.gz
run: |
set -euo pipefail
fixture_root="$RUNNER_TEMP/mlxcel-webui-activity-fixtures"
mkdir -p "$fixture_root"
test ! -e "$fixture_root/qwen3-0.6b-4bit"
tmp_dir="$(mktemp -d)"
gh release download "$CI_FIXTURE_TAG" \
--pattern "$CI_FIXTURE_ASSET" \
--dir "$tmp_dir"
tar -xzf "$tmp_dir/$CI_FIXTURE_ASSET" -C "$fixture_root"
rm -rf "$tmp_dir"
test -s "$fixture_root/qwen3-0.6b-4bit/config.json"
# Deferred on 2026-09-16: the native hidden acceptance needs the browser to report a real
# window-visibility change through document.hidden, and the automation browser reports
# document.hidden as false for a window it simultaneously reports as minimized, with both
# visibility-suppressing launch arguments verifiably removed. That is a property of the
# automation browser rather than of this runner or of the product, so the observation
# overhead keeps running headed here while the hidden acceptance is recorded as not run.
# The visibility backoff itself stays covered by webui/src/state/sync.test.ts and the
# visibilitychange case in webui/tests/browser.spec.ts. See docs/webui-integration-matrix.md.
- name: Run Activity performance gate with the hidden acceptance deferred
timeout-minutes: 45
env:
MLXCEL_REQUIRE_MODELS: '1'
run: |
set -euo pipefail
mkdir -p "$HOME/.cache/mlxcel/ci-locks"
(
# This flock serializes cooperating CI steps only; the nvidia-smi check below fails closed if non-cooperating GPU compute work is already present.
flock -w 600 -x 9 || { echo "::error::timed out waiting for cooperative WebUI Activity GPU lock"; exit 1; }
gpu_process_count="$(nvidia-smi --query-compute-apps=pid --format=csv,noheader,nounits | awk '$1 ~ /^[0-9]+$/ {count++} END {print count + 0}')"
if [ "$gpu_process_count" -ne 0 ]; then
echo "::error::GPU compute processes are already present before Activity gate"
exit 1
fi
full_evidence="$RUNNER_TEMP/webui-activity-performance-full.json"
summary_evidence="$RUNNER_TEMP/webui-activity-performance-summary.json"
python3 scripts/webui/verify_activity_performance.py \
--server-bin "$RUNNER_TEMP/mlxcel-webui-installed/mlxcel-server-webui" \
--model "$RUNNER_TEMP/mlxcel-webui-activity-fixtures/qwen3-0.6b-4bit" \
--checkpoint-revision "ci-fixtures/qwen3-0.6b-4bit-v1" \
--source-sha "${{ github.sha }}" \
--features cuda,webui \
--evidence "$full_evidence" \
--work-dir "$RUNNER_TEMP" \
--repo-root "$GITHUB_WORKSPACE" \
--node-bin "$(command -v node)" \
--virtual-display \
--activity-timeout 1800 \
--perf-mode visible-only-headed
python3 scripts/webui/summarize_activity_evidence.py \
--input "$full_evidence" \
--output "$summary_evidence" \
--expect-hidden-native not-run
) 9>"$HOME/.cache/mlxcel/ci-locks/webui-activity-gpu.lock"
- name: Upload installed-artifact WebUI evidence
if: always()
uses: actions/upload-artifact@v4
with:
name: webui-installed-artifact-${{ runner.os }}
path: ${{ runner.temp }}/webui-installed-evidence.json
if-no-files-found: error
- name: Upload reverse-proxy WebUI evidence
if: always()
uses: actions/upload-artifact@v4
with:
name: webui-reverse-proxy-${{ runner.os }}
path: ${{ runner.temp }}/webui-reverse-proxy-evidence.json
if-no-files-found: warn
- name: Upload Activity performance summary evidence
if: always()
uses: actions/upload-artifact@v4
with:
name: webui-activity-performance-${{ runner.os }}
path: ${{ runner.temp }}/webui-activity-performance-summary.json
if-no-files-found: warn
# A fail-closed gate whose diagnosis stays on the runner cannot be acted on from a PR.
# The harness writes its browser log and a full evidence JSON with the failing condition;
# publish both whenever the gate runs, not only when it succeeds.
- name: Upload Activity performance diagnostics
if: always()
uses: actions/upload-artifact@v4
with:
name: webui-activity-performance-diagnostics-${{ runner.os }}
path: |
${{ runner.temp }}/webui-activity-performance-full.json
${{ runner.temp }}/mlxcel-activity-performance-*/activity-performance.log
${{ runner.temp }}/mlxcel-activity-performance-*/*.log
if-no-files-found: warn
mlx-pin:
name: MLX pin extraction
needs: changes
if: needs.changes.outputs.mlx_pin == 'true'
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
# The pinned MLX commit has one home, GIT_TAG in
# src/lib/mlx-cpp/CMakeLists.txt, and two independent parsers read it:
# mlxcel-core's build.rs in Rust (build_support/mlx_pin.rs, unit-tested by
# mlxcel-mlx-pin) and this script in awk, for release.yml's "Validate MLX
# build cache" steps. The shell half accepts strictly less than the Rust
# half: it needs GIT_TAG as the first token of its own line, after the
# GIT_REPOSITORY line, with no closing parenthesis in between. A CMake
# reformat that leaves every local build and `make verify` green can
# therefore break every release build, and release.yml is the only other
# place this script runs, so without this job the breakage would first
# appear when a release is cut. Issue #1047.
#
# `mlxcel-mlx-pin` compiles in under a second (a leaf crate with no
# production role, only `std` plus a `tempfile` dev-dependency), so it
# runs first here rather than only in nightly-verify.yml's `make verify`.
# Its `tests/cross_parser.rs` shells out to mlx_pinned_commit.sh itself
# and asserts that whenever the shell parser accepts an input, the Rust
# parser resolves to the identical commit for that same input: the two
# unit-test files below each cover one parser in isolation and cannot
# catch a same-input value mismatch on their own.
- uses: dtolnay/rust-toolchain@1.97.1
- name: Run the Rust pin parser's unit and cross-parser tests
run: cargo test -p mlxcel-mlx-pin
- name: Extract the pinned MLX commit
run: scripts/ci/mlx_pinned_commit.sh
# The other half of the contract: the shell parser must also *reject*
# everything the Rust parser rejects. A value it accepts and the Rust
# parser refuses is not harmless, because release.yml purges every MLX
# build cache that does not match what this script prints and the build
# then fails on the same file the purge was justified by.
- name: Check the pinned MLX commit parser rejects malformed input
run: scripts/ci/mlx_pinned_commit_test.sh
cross-repo-refs:
name: cross-repo refs
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
fetch-depth: 0
# Advisory: lists bare 3+-digit '#NNN' added on this PR so unqualified
# upstream refs (-> org/repo#NNN) and any leaked private-repo numbers are
# caught in review. Does not fail the build (a genuine lablup/mlxcel #N is
# fine); run locally with STRICT=1 to gate. See CONTRIBUTING.md.
- name: Flag unqualified cross-repository references
# Pass the base ref via env (not interpolated into the shell) so a branch
# name can never reach shell parsing; the script reads BASE_REF as input.
env:
BASE_REF: origin/${{ github.base_ref }}
GITHUB_TOKEN: ${{ github.event.pull_request.head.repo.full_name == github.repository && github.token || '' }}
run: |
bash scripts/ci/check_cross_repo_refs_test.sh
python3 scripts/ci/check_cross_repo_refs.py
# ============================================================================
# OpenXLA feature compile (self-hosted GB10)
# ============================================================================
# Nothing else in CI compiles any XLA feature. `deny`, `fmt` and the other
# jobs here never build the crate, `pipeline-parallel-ci.yml` runs clippy on
# default features, and `nightly-verify.yml` uses `metal,accelerate`. Two
# defects reached `main` through that gap: a non-exhaustive `match` in the
# OpenXLA serve worker after a new `ModelRequest` variant landed, and a dead
# re-export that `-D warnings` would have rejected. Both were found by hand
# while rebasing an unrelated branch.
#
# Why this runs on the self-hosted GB10 runner rather than a hosted one:
# `xla-iree` links a C shim against a prebuilt IREE runtime, which
# `scripts/iree/setup-cuda.sh` provisions by building the runtime from source
# against a pinned revision. That is far too slow to do per PR from scratch,
# but the GB10 runner already holds the build under
# `~/.cache/mlxcel/iree-cuda-<version>` and the script is idempotent, so a
# warm runner reuses it and only a fresh one pays the one-time cost.
# `xla-diagnostics` additionally implies `cuda`, which points at the same
# runner.
#
# Deliberately NOT covered, so the gap is recorded rather than assumed shut:
# - Linking. `cargo check` never invokes the linker, so a regression in the
# IREE link recipe in `build.rs` (see #1274/#1275) is invisible here. The
# `xla-link` job immediately below closes that gap for the CUDA/IREE
# recipe; see its comment for what it covers and what it still does not.
# - `cargo test`. This is a compile gate; running the XLA suites needs a
# GPU that is not contended with development work on the same host.
# - Clippy-only lints. This job runs `cargo check`, and `RUSTFLAGS: "-D
# warnings"` denies rustc lints only, so `dead_code` and `unused_imports`
# are now gated but `collapsible_if`, `needless_match`,
# `too_many_arguments`, `while_let_loop` and the rest of clippy's own
# lints are not gated by anything in CI under these feature sets. The
# `clippy` job above covers default features only. That half of the
# backlog cleared by #1304 can therefore regrow silently; closing it means
# running clippy here, which was left out of #1304 deliberately.
# - The path dependencies' own test targets. There is no `default-members`
# (see the note at the top of `Cargo.toml`), so `cargo check` run here
# resolves to `-p mlxcel` and `--all-targets` expands within that package
# only. `mlxcel-core`, `mlxcel-surgery` and `mlxcel-xla` are compiled as
# plain library dependencies, so their `#[cfg(test)]` modules are never
# built. That leaves `mlxcel-xla`'s unit tests ungated by every job,
# because the `clippy` job above builds default features and the crate is
# default-off there. `cargo clippy -p mlxcel-xla --all-targets` covers
# them, but only by hand.
# - macOS and `IREE_DIST` builds of the same features. Neither has a runner
# with the required distribution.
xla-compile:
name: OpenXLA feature compile
needs: changes
if: github.repository == 'lablup/mlxcel' && needs.changes.outputs.rust == 'true'
runs-on: GB10
permissions:
contents: read
timeout-minutes: 120
env:
# The value shipped for this runner's architecture, so the gate compiles
# what ships rather than whatever the runner's GPU implies. Since issue
# #1943 auto-detection produces this same `121` on a GB10; the pin remains
# because a gate should name the list it compiles instead of inferring it.
# The hardware NVFP4/MXFP4 converters come from the per-source injection in
# `src/lib/mlx-cpp/CMakeLists.txt`, not from this list.
MLX_CUDA_ARCHITECTURES: "121"
# Every rustc lint, not just the `unused_imports` this job started with.
# The narrower value existed because the XLA feature combination carried a
# dead-code backlog that would have made the job red on arrival; #1304
# cleared it. See the note above for what `-D warnings` on `cargo check`
# still does not cover.
#
# Blast radius, deliberately: `RUSTFLAGS` reaches every unit cargo builds
# from a path, so the `mlxcel-core`, `mlxcel-surgery` and `mlxcel-xla`
# library units and the build scripts are gated here too, and a warning in
# any of them reds a job named for OpenXLA. Registry and git dependencies
# cannot, because cargo compiles those with `--cap-lints allow`. The
# toolchain is pinned exactly in `rust-toolchain.toml`, so a new rustc
# release cannot turn this red on its own; bumping that pin is what has to
# re-clear these two feature sets.
RUSTFLAGS: "-D warnings"
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
- name: Use a persistent target directory
run: |
# Separate from the release job's directory so a CI check cannot
# invalidate a release build's cache, or be slowed by it.
CARGO_TARGET="$HOME/.cargo-target/mlxcel-xla-ci"
mkdir -p "$CARGO_TARGET"
echo "CARGO_TARGET_DIR=$CARGO_TARGET" >> $GITHUB_ENV
- name: Provision the IREE runtime
run: |
# Idempotent: reuses `~/.cache/mlxcel/iree-cuda-<version>` when the
# runtime is already built, and builds it once when it is not.
bash scripts/iree/setup-cuda.sh
# The script emits shell `export VAR=value` lines; GITHUB_ENV wants
# bare `VAR=value`, and without stripping the prefix the variables
# would be named "export IREE_CUDA_HOME" and build.rs would abort
# claiming no IREE distribution is configured.
bash scripts/iree/setup-cuda.sh --env | sed 's/^export //' >> "$GITHUB_ENV"
- name: Compile the production XLA feature set
run: cargo check --features cuda,xla-iree --all-targets
- name: Compile the diagnostics XLA feature set
run: cargo check --no-default-features --features xla-diagnostics --all-targets
# ============================================================================
# OpenXLA feature link (self-hosted GB10)
# ============================================================================
# `xla-compile` above never invokes the linker, so it cannot catch a
# regression in the IREE link recipe in `build.rs`. That is not hypothetical:
# #1274 was exactly a link failure, and `cargo check --features
# cuda,xla-iree --all-targets` passed cleanly on the same tree that could not
# link a single integration test. It reached `main` and was found by hand
# while validating an unrelated PR. The fix, #1275, appends a second `-lc`
# after the IREE archives in `build.rs`, because rustc emits its own `-lc`
# before anything `cargo:rustc-link-arg` can append. This job is a direct
# reproducer of that failure class.
#
# What it links, and why: `cargo test --release --features cuda,xla-iree