Repository navigation
Labels
bugSomething isn't working
Description
Priority
low
Components
- app/nullius (backend)
- app/web (routes)
- templates and static files
- docs and the site
- catalogue (benchmarks, agents, capabilities)
- the standard (ports, kits, relay, runs)
- CI, workflows and skills
Evidence
On rootless podman, through its Docker API, the docker tier fails one test:
FAIL: test_each_unit_runs_in_its_own_environment (tests.test_standard_environments.DockerRun.test_each_unit_runs_in_its_own_environment)
self.assertEqual((d["server"], d["public"]), ("yes", "no")) # its server, and nothing else
AssertionError: Tuples differ: ('yes', 'untested') != ('yes', 'no')
The fixture's probe tests the way out to a public address only in a docker container. It decides that from /.dockerenv (app/tests/fixtures/standard/envbench/agent/probe.sh, line 23):
print("public=" + (reach("1.1.1.1:443") if os.path.exists("/.dockerenv") else "untested"))
Podman writes /run/.containerenv, not /.dockerenv. The probe does not try the public address and reports untested.
Reproduction
On main a unit does not run on a rootless engine at all (#69), so this shows once that is fixed.
- On a machine with rootless podman, start its API socket (
systemctl --user start podman.socket) and setDOCKER_HOST=unix://$XDG_RUNTIME_DIR/podman/podman.sock, withcontainers.confsettingnetns = "bridge"and a DNS-enableddefault_network,usernsat its default. - Build the base image:
PYTHONPATH=app python3 -c "from nullius.standard import container; print(container.base_image())". - From
app/:NULLIUS_TEST_DOCKER=1 NULLIUS_HOME=$(mktemp -d) python3 -m unittest tests.test_standard_environments.
Expected
The probe sees that it runs in a container on podman too, tries the public address, and reports public=no.
Acceptance
- The probe counts
/run/.containerenvas a container, as it counts/.dockerenv. -
test_each_unit_runs_in_its_own_environmentpasses on rootless podman and on Docker.
Dependencies and related
- Standard: the docker backend fails on a rootless engine #69 (the docker backend fails on a rootless engine): its docker tier on rootless podman shows this failure.
Activity
harenome commentedon Nov 12, 2026
#75 does not take the first acceptance item as written. Accepting
/run/.containerenvbreaks the local-backend test when the suite itself runs in a container: the probe then sees the outer container's file and reaches 1.1.1.1 (test_with_them_each_goes_where_it_is_sent_and_nowhere_else,AssertionError: 0.0 != 1.0,'public': 'yes'). The probe now tests the public address only in the licensed image (/opt/licensed-tool/marker.txt), the one unit whose score reads it. That works on any engine and wherever the suite runs.