Skip to content

Move to bngsim 0.18.0 - #69

Merged
wshlavacek merged 3 commits into
lanl:mainfrom
elyfmiller:bump-bngsim-0.18.0
Dec 1, 2026
Merged

wshlavacek merged 3 commits into
lanl:mainfrom
elyfmiller:bump-bngsim-0.18.0

Conversation

@elyfmiller

Copy link
Copy Markdown
Contributor

Bump the pinned build under test from 0.17.2 to 0.18.0, the newest bngsim release, and regenerate the lock with pixi update bngsim under pixi 0.85.0, the version CI installs. Only bngsim's entries change in the lock. The x86_64 wheel is still tagged manylinux_2_28, so it still installs on hosts with glibc 2.28.

Re-vendor the parity comparison core at the matching release tag v0.18.0 (commit 3295c4d31f2e), as tools/vendor_parity_core.py prescribes when the pinned release changes. Of the nine copied files, only bngpath.py differs from v0.17.2: when no BNG2.pl was found, require_bng now adds bngsim's checkout remedy to its abort message. It imports _CHECKOUT_REMEDY from bngsim._bngpath, which 0.17.2 lacks, so the pin and the vendored copy move together, and a re-run on 0.17.2 needs a checkout from before this change.

The sensitivity work of #64 and #67 builds on this bump. Its results are to be published in sens-sbml, and a snapshot measured on 0.17.2 would be out of date on arrival (#60). 0.18.0 also changes two calls that work uses:

Changes

  • pixi.toml / pixi.lock: pin bngsim==0.18.0. The lock diff is bngsim's wheel URLs, hashes and requires_dist; antlr4-python3-runtime moves within the file, at the same version.
  • src/bench/_vendor/: parity_core/bngpath.py re-copied; VENDOR.json's ref, commit and that file's sha256 updated.
  • tools/vendor_parity_core.py: the example ref.
  • tests/test_worker.py, tests/test_publish.py: the fake fingerprints are now 0.18.0 / 3295c4d31f2e.
  • tests/test_staleness.py, tests/test_summary.py: the scenarios tied to the pinned version move from 0.17.x to 0.18.x. Moving the newer-release case from 0.17.10 to 0.18.10 lost its check that releases compare as numbers, not as text, so test_staleness gains a 0.9.0 case that restores it.
  • docs/BUILD_NOTES.md: the aarch64 recipe builds from the v0.18.0 checkout. The notes also say that PyPI has had manylinux_2_28 aarch64 wheels since 0.17.3; the recipe stays until one is tried here.
  • RuleMonkey notes in docs/BUILD_NOTES.md, docs/DESIGN.md and src/bench/capabilities/nf.py: each now names 0.18.0 beside 0.17.2. Both releases embed RuleMonkey v3.13.0-5-gdb7d1df, so rm_driver v3.13.0 stays the same code lineage as nf_exact.
  • published/README.md, published/index.json: regenerated with bench publish --index, whose PyPI lookup (2026-12-01 UTC) records 0.18.0 as the newest release.
    • Every snapshot was already out of date for BioNetGen 2.9.5, and the two nf-xml snapshots also for harness and verdict changes.
    • Each now gives three more reasons: bngsim 0.18.0 is on PyPI, the environment pins it, and the vendored verdict code is v0.18.0.
    • No snapshot is republished here.

Verification

  • linux-64:
    • pixi install --locked installs 0.18.0; bench doctor reports bngsim 0.18.0 / 3295c4d31f2e, READY.
    • Unit tests: 1347 passed, 10 skipped. Integration tests: 16 passed.
    • The network-marked vendor test confirms that the re-vendored files match upstream at the recorded commit.
    • bench publish --index --offline reproduces the committed published/ exactly.
  • macOS arm64:
    • pixi install --locked leaves the lock unchanged.
    • Unit tests: 1346 passed, 11 skipped.
    • The network-marked vendor test passes, and bench publish --index --offline finds the summaries current.
  • Merged with Compare sensitivity timings only with timings of the same quantity (#61) #68: no conflicts. On macOS arm64 the merge passes 1357 unit tests (11 skipped), and bench publish --index --offline changes nothing.

Not checked

  • The aarch64 build from the v0.18.0 checkout, and PyPI's aarch64 wheels.
  • bench doctor on macOS arm64, which is not READY there: BioNetGen was not fetched, and AMICI 1.1.0's compiled extension does not load (a missing boost symbol). This PR leaves the lock's AMICI entries unchanged.

Left as it is

  • published/skipped-releases.json still says 0.17.3 was skipped and "the next measured release is 0.17.4". No 0.17.4 came out; the next release is 0.18.0, which this PR pins. The entry records the decision as made, so it is unchanged; it can name 0.18.0 instead if preferred.

Bump the pinned build under test from 0.17.2 to 0.18.0 and regenerate the
lock with pixi update bngsim (the cp312 manylinux_2_28 x86_64 and macOS
arm64 wheels). Only bngsim's entries change; every other package keeps its
version, and antlr4-python3-runtime only moves within the file.

Re-vendor the parity comparison core at the matching release tag v0.18.0
(commit 3295c4d31f2e). Of the nine copied files only bngpath.py differs:
require_bng now adds bngsim's checkout remedy to its abort message when no
BNG2.pl was found. Update the vendor tool's example and the fake
fingerprints in test_publish and test_worker to the new version, and move
the staleness and summary scenarios from 0.17.x to 0.18.x.

The build notes, DESIGN and the RuleMonkey capability note name 0.18.0
beside 0.17.2: both releases embed RuleMonkey v3.13.0-5-gdb7d1df, so
rm_driver v3.13.0 stays the same code lineage as nf_exact.

The published summaries are regenerated (bench publish --index --offline).
Every snapshot was already out of date (BioNetGen 2.9.5); each now also
gives bngsim 0.18.0 and the v0.18.0 verdict code as reasons.
Regenerate published/README.md and index.json with bench publish --index,
online this time. The PyPI lookup (2026-12-01) finds 0.18.0, so each
out-of-date snapshot now also gives "bngsim 0.18.0 is on PyPI (snapshot:
0.17.2)", as lanl#60 reports. The offline regeneration in the previous commit
kept the recorded lookup of 2026-11-25, which named 0.17.3.
…pare as numbers

PyPI has had manylinux_2_28 aarch64 wheels for bngsim since 0.17.3, so
the build notes no longer say there are none. No wheel has been tried
with this harness, so the aarch64 recipe stays.

Moving the newer release in test_a_newer_bngsim_release_makes_it_out_of_date
from 0.17.10 to 0.18.10 lost its check that releases are compared as
numbers: 0.18.10 sorts after 0.18.0 as text too. A 0.9.0 release, older
as a number and newer as text, checks it again.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants