Skip to content

Commit b2a15e3

Browse files
committed
[Diag] Print numpy + bundled OpenBLAS hash at pytest session start
Adds source/conftest.py so pytest dumps the resolved numpy version and the bundled OpenBLAS .so filename at session start. Used by the negative/positive arm validation PRs to capture which numpy bundle each CI test container ends up with after isaaclab.sh --install completes. The conftest.py imports numpy at module load. This is what pytest does naturally via isaaclab module imports anyway -- making the import explicit here only adds visibility, not crash conditions.
1 parent 6690229 commit b2a15e3

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

source/conftest.py

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Copyright (c) 2022-2026, The Isaac Lab Project Developers (https://github.com/isaac-sim/IsaacLab/blob/main/CONTRIBUTORS.md).
2+
# All rights reserved.
3+
#
4+
# SPDX-License-Identifier: BSD-3-Clause
5+
6+
"""Dep-manifest diagnostic: prints numpy version + bundled OpenBLAS hash at pytest session start.
7+
8+
Loaded by pytest when collecting tests under ``source/``. Importing numpy here registers
9+
its vendored OpenBLAS ``pthread_atfork`` handler in pytest's process, which is the same
10+
process that later calls ``fork()`` via ``SimulationApp()``. The output identifies which
11+
numpy + OpenBLAS bundle actually landed in each CI test container.
12+
"""
13+
14+
import os
15+
16+
import numpy
17+
18+
print(f"\n[dep-manifest] numpy {numpy.__version__}", flush=True)
19+
_libs_dir = os.path.join(os.path.dirname(numpy.__file__), os.pardir, "numpy.libs")
20+
if os.path.isdir(_libs_dir):
21+
for _f in sorted(os.listdir(_libs_dir)):
22+
if "openblas" in _f.lower():
23+
print(f"[dep-manifest] bundled openblas: {_f}", flush=True)

0 commit comments

Comments
 (0)