Commit 094a17c
committed
CI: use strict channel priority for conda installs
macOS and Linux CI jobs that run `conda install -c conda-forge ...` have
been intermittently failing at env solve time with errors like:
LibMambaUnsatisfiableError: package cmake-3.31.2-h326f17c_0 requires
libzlib >=1.3.1,<2.0a0, but ... zlib 1.2.13.* is not installable.
The miniconda base env brings in older packages (e.g. zlib=1.2.13) from
the anaconda defaults channel, while conda-env-ci.txt's pins resolve
through conda-forge which ships newer transitive deps (libzlib>=1.3.1).
With both channels active and equal priority, conda's solver picks
ambiguously and tips into unsatisfiable. The same pattern surfaced in
the Voxtral metal e2e job during the ffmpeg install in test_model_e2e.sh
and would eventually bite the libstdcxx-ng installs in cuda.yml and the
aarch64 openblas install in install_conda.sh.
Adding `--strict-channel-priority` to every `conda install -c conda-forge`
site forces conda-forge to win for every package it provides, so the
defaults/conda-forge mismatch can no longer perturb the solve. This is
the conda-forge community's canonical recommendation for exactly this
mixed-channel scenario; it does not break the patched call sites because
each of them already targets conda-forge-only packages. The remaining
conda install sites in the repo (.ci/docker/common/utils.sh:20 and
.ci/scripts/setup-windows-msvc.ps1:5) intentionally do not pass
-c conda-forge and are left untouched, as is the sibling mkl install at
install_conda.sh:44.
Authored with Claude Code.1 parent e84a418 commit 094a17c
4 files changed
Lines changed: 9 additions & 5 deletions
File tree
- .ci
- docker/common
- scripts
- .github/workflows
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
13 | 17 | | |
14 | 18 | | |
15 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
258 | 258 | | |
259 | 259 | | |
260 | 260 | | |
261 | | - | |
| 261 | + | |
262 | 262 | | |
263 | 263 | | |
264 | 264 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
128 | | - | |
| 128 | + | |
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
| |||
433 | 433 | | |
434 | 434 | | |
435 | 435 | | |
436 | | - | |
| 436 | + | |
437 | 437 | | |
438 | 438 | | |
439 | 439 | | |
| |||
0 commit comments