Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .github/workflows/jax-compatibility.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- .github/workflows/jax-compatibility.yml
- .github/scripts/jax_compatibility.py
- .github/scripts/release_diagnostic.py
- diagnostics/release-37199991757.json
- diagnostics/release-43210505844.json
permissions:
contents: read
jobs:
Expand All @@ -16,7 +16,8 @@ jobs:
strategy:
fail-fast: false
matrix:
jax: ['0.9.2', '0.11.2']
# jax>=0.12 floor (PyAutoNerves#215): both releases the floor admits today.
jax: ['0.12.0', '0.12.0.1']
env:
PYTHONPATH: ''
JAX_PLATFORMS: cpu
Expand All @@ -32,7 +33,7 @@ jobs:
python - <<'PY'
import json, os
from pathlib import Path
data = json.loads(Path('diagnostics/release-37199991757.json').read_text())
data = json.loads(Path('diagnostics/release-43210505844.json').read_text())
data['packages'].update(jax=os.environ['ENDPOINT'], jaxlib=os.environ['ENDPOINT'])
Path('endpoint.json').write_text(json.dumps(data))
PY
Expand Down
142 changes: 142 additions & 0 deletions diagnostics/release-43210505844.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,142 @@
{
"schema_version": 1,
"candidate_jax": "0.12.0",
"source_run": "https://github.com/PyAutoLabs/PyAutoHeart/actions/runs/43210505844",
"source_job": "integrate / run_scripts (3.12, autolens_test, multi_dataset)",
"script": "multi_dataset/jax_likelihood/rectangular_rtu.py",
"workspace_repo": "PyAutoLabs/autolens_workspace_test",
"workspace_sha": "f68bf4f763e6a58ab97753023872a0cea3775e61",
"hands_sha": "ad20872c0a8075c3d2988ac81e9606b2c19a7eec",
"python": "3.12.16",
"library_shas": {
"PyAutoNerves": "b987c8d69bbaebc861f1df7887c7c5344533a9e0",
"PyAutoFit": "570abac2eba0175e39b410f1858832c79baf5413",
"PyAutoArray": "51da424ea8dd815a52c3d8c8745df80520191855",
"PyAutoGalaxy": "cb91fbe6f5255c7a1bf35fa7f94b0272ab459cb6",
"PyAutoLens": "9106a1de70ab07b40667a1b351220c5d23564592"
},
"limitations": [
"Package versions recovered from the successful pip installation log line of the source job (release validation of 2026.11.12.1, TestPyPI 2026.11.12.1.dev87601, jax/jaxlib 0.12.0.1); wheel hashes and runner native stacks were not recorded.",
"The original runner OS image and CPU hardware are not pinned. Record the diagnostic topology; passing repetitions do not clear release validation.",
"This is a passing baseline (the script PASSED in 11.8 s), not an incident: it pins the first jax>=0.12 candidate as the compatibility endpoint (PyAutoNerves#215)."
],
"packages": {
"MarkupSafe": "3.0.4",
"PyYAML": "6.0.3",
"SQLAlchemy": "2.0.57",
"absl-py": "2.5.1",
"alabaster": "1.0.0",
"anesthetic": "2.16.0",
"array_api_compat": "1.16.0",
"astropy": "8.0.2",
"astropy-iers-data": "0.2026.11.9.0.35.9",
"asttokens": "3.0.2",
"astunparse": "1.6.3",
"attrs": "26.1.0",
"autoarray": "2026.11.12.1.dev87601",
"autofit": "2026.11.12.1.dev87601",
"autogalaxy": "2026.11.12.1.dev87601",
"autolens": "2026.11.12.1.dev87601",
"autonerves": "2026.11.12.1.dev87601",
"babel": "2.18.0",
"blackjax": "1.7.1",
"certifi": "2026.10.23",
"charset_normalizer": "3.5.2",
"cloudpickle": "3.1.2",
"contourpy": "1.4.0",
"coolest": "0.1.11",
"corner": "2.2.2",
"cycler": "0.12.1",
"decorator": "5.3.1",
"dill": "0.4.1",
"dm-tree": "0.1.10",
"docutils": "0.22.4",
"dynesty": "2.1.5",
"emcee": "3.1.6",
"executing": "2.3.0",
"finufft": "2.5.1",
"fonttools": "4.68.0",
"gast": "0.7.0",
"getdist": "1.4",
"gprof2dot": "2021.2.21",
"greenlet": "3.5.6",
"h5py": "3.16.0",
"idna": "3.20",
"imageio": "2.38.1",
"imagesize": "2.0.1",
"iniconfig": "2.3.1",
"ipython": "9.12.0",
"ipython-pygments-lexers": "1.1.1",
"jax": "0.12.0.1",
"jax_zero_contour": "2.0.0",
"jaxlib": "0.12.0.1",
"jaxnnls": "1.0.1",
"jedi": "0.20.1",
"jinja2": "3.1.6",
"joblib": "1.6.0",
"jsonpickle": "4.1.4",
"kiwisolver": "1.5.1",
"lazy-loader": "0.6",
"llvmlite": "0.50.0",
"matplotlib": "3.11.2",
"matplotlib-inline": "0.2.2",
"ml_dtypes": "0.6.0",
"mypy-extensions": "1.2.0",
"nautilus-sampler": "1.0.5",
"networkx": "3.1",
"nufftax": "0.6.1",
"numba": "0.68.1",
"numpy": "2.5.4",
"numpydoc": "1.11.0",
"opt_einsum": "3.4.0",
"optax": "0.2.9",
"packaging": "26.3",
"pandas": "3.0.6",
"parso": "0.8.7",
"pexpect": "4.9.0",
"pillow": "13.0.0",
"pluggy": "1.7.0",
"prompt_toolkit": "3.0.53",
"psutil": "6.1.0",
"ptyprocess": "0.7.0",
"pure-eval": "0.2.4",
"pyerfa": "2.0.1.5",
"pygments": "2.21.0",
"pyparsing": "3.3.3",
"pytest": "9.2.0",
"python-dateutil": "4.0.0",
"pyvis": "0.3.2",
"requests": "2.34.2",
"roman-numerals": "4.1.0",
"scikit-image": "0.26.0",
"scikit-learn": "1.8.0",
"scipy": "1.17.1",
"seaborn": "0.13.2",
"setuptools": "84.2.1",
"six": "1.17.0",
"snowballstemmer": "3.1.1",
"sphinx": "9.1.1",
"sphinxcontrib-applehelp": "2.0.0",
"sphinxcontrib-devhelp": "2.0.0",
"sphinxcontrib-htmlhelp": "2.1.0",
"sphinxcontrib-jsmath": "2.0.0",
"sphinxcontrib-qthelp": "2.0.0",
"sphinxcontrib-serializinghtml": "2.0.0",
"stack_data": "0.6.3",
"tfp-nightly": "0.26.0.dev20260713",
"threadpoolctl": "3.8.0",
"tifffile": "2026.11.8",
"timeout-decorator": "0.5.0",
"tqdm": "4.70.1",
"traitlets": "5.16.1",
"typing-extensions": "4.16.0",
"typing-inspect": "0.9.0",
"tzdata": "2026.6",
"urllib3": "2.8.0",
"wcwidth": "0.9.4",
"wheel": "0.48.0",
"wrapt": "2.5.2",
"xxhash": "3.4.1",
"zeus-mcmc": "2.5.4"
}
}
55 changes: 55 additions & 0 deletions tests/test_jax_compatibility_endpoints.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
"""The JAX compatibility workflow tests the range the library stack admits.

Its endpoints moved to jax 0.12 with the release floor (jax/jaxlib >=0.12.0,<0.13);
its replay manifest must be one that can resolve them. The previous manifest's
library pins capped jax below 0.12, so pairing it with a 0.12 endpoint fails at
install for reasons unrelated to jax.
"""

import json
import re
import sys
from pathlib import Path

import yaml

ROOT = Path(__file__).resolve().parents[1]
WORKFLOW = ROOT / ".github/workflows/jax-compatibility.yml"
sys.path.insert(0, str(ROOT / ".github/scripts"))

import release_diagnostic as diag # noqa: E402


def _workflow():
return yaml.safe_load(WORKFLOW.read_text())


def _manifest_path():
match = re.search(r"Path\('(diagnostics/[^']+\.json)'\)", WORKFLOW.read_text())
assert match, "workflow must read a manifest under diagnostics/"
return ROOT / match.group(1)


def test_endpoints_are_inside_the_jax_floor():
endpoints = _workflow()["jobs"]["compatibility"]["strategy"]["matrix"]["jax"]
assert endpoints
for version in endpoints:
major, minor = (int(part) for part in version.split(".")[:2])
assert (major, minor) == (0, 12), version


def test_workflow_manifest_loads_and_is_a_jax_0_12_candidate():
manifest = diag.load_manifest(_manifest_path())
assert manifest["packages"]["jax"].startswith("0.12.")
assert manifest["packages"]["jaxlib"].startswith("0.12.")


def test_pull_request_paths_track_the_manifest_the_workflow_reads():
on = _workflow()[True] # YAML 1.1 reads the bare key `on` as True
rel = _manifest_path().relative_to(ROOT).as_posix()
assert rel in on["pull_request"]["paths"]


def test_the_incident_manifest_is_kept_for_its_own_diagnostic():
old = ROOT / "diagnostics/release-37199991757.json"
assert json.loads(old.read_text())["packages"]["jax"] == "0.10.2"
Loading