The Docker image leaves out bngsim for a reason that no longer holds, so it cannot run 89 of the 97 tutorial configs

Open
#1,032 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
72/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
docker, python
Domain
build-system

Research direction

Read the Dockerfile and .github/workflows/docker.yml to trace the image install steps and CI job name; check pyproject.toml and tests/test_packaging_metadata.py for dependency metadata expectations. Build the image and try a tutorial config that uses bngsim, such as examples/tutorial/36_estimate_noise/estimated_sigma.conf. Done means the image can run those configs and the Docker header and CI job name describe the updated image.

Written by the indexing model from the issue text.

Description

bug

The Dockerfile builds what it calls a legacy BNG2.pl image. Its header explains why it does not install bngsim, PyBNF's default simulation backend:

bngsim is a private, macOS-only wheel with no public Linux build, so it cannot
be installed in a Linux container today (issue #414). [...] When bngsim ships
public Linux wheels, a bngsim-backed image can replace this one.

That condition is met. bngsim 0.17.0 is on PyPI with manylinux_2_28_x86_64 wheels for CPython 3.10 to 3.13, and the CI action installs it on Ubuntu runners for every test leg. The image is built with Python 3.13, which those wheels cover.

Without bngsim, PyBNF refuses any config that sets bngl_backend = bngsim, and 89 of the 97 configs under examples/tutorial/ do. To see the refusal outside Docker, with PYBNF_NO_BNGSIM=1 standing in for the missing package:

cd examples/tutorial/36_estimate_noise
PYBNF_NO_BNGSIM=1 pybnf -c estimated_sigma.conf

Error: bngl_backend = bngsim was requested for model decay, but PYBNF_NO_BNGSIM is set.

In the image, where bngsim is simply absent, the same configs are refused the same way. The image also installs PyBNF with --no-deps, so it ships without a dependency that pyproject.toml declares as required.

Suggested change: install bngsim in the image, as its header proposes, and update the header and the CI job name (docker build (legacy BNG2.pl image) in .github/workflows/docker.yml). The pip install --no-deps step could then let pip resolve PyBNF's own dependencies from the wheel, and the hand-written dependency list in the Dockerfile could go. tests/test_packaging_metadata.py currently checks that list against pyproject.toml.

Dominant language
Python
Stars
25
Forks
25
Avg merge
4h 5m
Merged PRs (30d)
10

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from lanl/PyBNF

All issues in lanl/PyBNF

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.