Repository navigation
Description
Summary
In cryptography's Noxfile, forcing the interpreter changes the behavior of
tests-nocoverage. Nox appends the interpreter to session.name; exact-name
checks then enable Python/Rust coverage and coverage post-processing.
This was observed on cryptography commit
3602bbd16ae731a4ce4dab9d43db334dbedad082 (51.0.0.dev1). The relevant
comparisons are at lines 73, 101 and 119 of noxfile.py.
Environment and installation
- Windows 11 build 26200 in Parallels; native ARM64 CPython 3.12.10.
- Nox 2026.10.20, uv 0.13.8, cffi 2.1.1; isolated build setuptools 84.2.1.
- Rust 1.100.0 (
aarch64-pc-windows-msvc), MSVC 14.44.35207, SDK 10.0.26100.0. - Static ARM64 OpenSSL 3.5.9;
OPENSSL_DIRselected that installation and
OPENSSL_STATIC=1. - uv created the native runner and installed
nox[uv]using the repository's
ci-constraints-requirements.txt. Nox built and installed cryptography from
the unchanged source. pip was not used for environment management.
Reproduction
From that checkout, with the native compiler environment configured, run the
following using a Nox runner created with native ARM64 Python. Paths below are
placeholders for the corresponding local paths:
<nox-runner-python.exe> -m nox -e tests-nocoverage --force-python <native-python.exe> --envdir <fresh-envdir> --error-on-missing-interpreters --download-python never --non-interactive -- -n 2 -ra --color=no --wycheproof-root=wycheproof --x509-limbo-root=x509-limbo --junitxml <result.xml>
The run included the bundled vectors/ package and these external corpora:
- Wycheproof
65ca494727a52944c204441c860b039e6786b99b. - X.509 Limbo
519f4bcf6a31d20e1b7011a0586e233dbbd3e732.
The session name becomes tests-nocoverage-<native-python.exe>. Because that is
not equal to tests-nocoverage, the Noxfile enables coverage. The Python phase
passed all 4,714 tests, with 45 skips and 6 warnings, but Nox then exited 1 during
coverage processing. A sanitized excerpt of the retained output is:
4714 passed, 45 skipped, 6 warnings in 42.03s
nox > rustc --print target-libdir
nox > Program <native-rust-toolchain>\lib\rustlib\aarch64-pc-windows-msvc\bin\llvm-profdata.exe not found.
nox > Session tests-nocoverage-<native-python.exe> failed.
The JUnit result independently records 4,759 total cases, 45 skipped, zero
failures and zero errors. This is a passing Python test phase inside a failed
Nox session.
Expected behavior and verified workaround
--force-python should preserve the requested session mode: tests-nocoverage
should omit coverage instrumentation and post-processing. Installing
llvm-profdata would address the final missing-tool symptom, but would leave
the unexpected coverage mode enabled.
This also appears consistent with PR #14967,
which removed LLVM coverage-tool installation from tests-nocoverage jobs
because that mode should not use those tools.
Running Nox from the verified native Python 3.12 runner without an interpreter
override, in a fresh source tree and environment, preserved the exact session
name. That unchanged-source run completed with 4,714 passed, 45 skipped and 6
warnings, and Nox exited 0. Native extension and retained wheel hashes matched.
Nox documents interpreter overrides and suffixed session names:
interpreter selection,
session naming.
The issue appears to be cryptography's mode selection rather than Nox's naming
behavior or an ARM64 compiler failure.
tests-ssh, tests-randomorder and tests-rust-debug also use exact-name checks
in this function. Their behavior with forced interpreters has not been
independently reproduced here. No source patch is included.
Activity
alex commentedon Nov 17, 2026
Our nox file exists to support our testing, if you want to send a PR that's fine, but wall of text LLM reports about things that impact no one aren't relevant.