Skip to content

Commit fa01d17

Browse files
committed
fix(ci): supply selected Windows Conda native DLL path
Successful statsmodels workers crash in native SVD/Newton with delayed procedure-load error 0xc06d007f, while the activated coordinator passes. Give test-owned Windows Conda workers only the selected base Python Library/bin plus Execute's default PATH so delayed BLAS dependencies can resolve without inheriting the coordinator environment. Verification: controlled selected-runtime, absent-directory, POSIX and ambient-PATH exclusion cases pass; fatal lint and whitespace pass. Exact native versions and all worker assertions remain unchanged. Hosted Windows rerun must confirm the native diagnosis.
1 parent 7c1fc87 commit fa01d17

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎tests/models/test_estimator_experiments.py‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import json
1010
import os
1111
from pathlib import Path
12+
import sys
1213
import tempfile
1314

1415
import numpy as np
@@ -191,6 +192,9 @@ def _executor(tmp_path, repo, control):
191192
environment.update({name: "1" for name in (
192193
"OMP_NUM_THREADS", "OPENBLAS_NUM_THREADS", "MKL_NUM_THREADS", "BLIS_NUM_THREADS",
193194
"NUMEXPR_NUM_THREADS", "VECLIB_MAXIMUM_THREADS")})
195+
native_dlls = Path(sys.base_prefix) / "Library" / "bin"
196+
if os.name == "nt" and native_dlls.is_dir():
197+
environment["PATH"] = os.pathsep.join((str(native_dlls), os.defpath))
194198
return Executor(SubProcessConfig(
195199
spool_directory=spool, env_vars=environment, execution_timeout=90,
196200
automatic_environment_discovery=False, admission_timeout=60,

0 commit comments

Comments
 (0)