Skip to content

test(execution): run the host probe test on its own stubs only - #219

Merged
harenome merged 1 commit into
ThinkFlowLab:mainfrom
harenome:fix/hosts-probe-path
Nov 19, 2026
Merged

harenome merged 1 commit into
ThinkFlowLab:mainfrom
harenome:fix/hosts-probe-path

Conversation

@harenome

Copy link
Copy Markdown
Collaborator

Closes #216

What

test_the_probe_says_when_the_host_s_docker_has_userns_remap ran hosts.PROBE with /usr/bin:/bin after its stub docker on PATH. The probe runs $c ps for each docker and podman it finds, so a podman installed on the machine ran inside the test. A slow one exceeded the probe's 12 s timeout. The test's PATH is now one temporary directory. It holds the stub docker and links to sh, sed, grep and hostname, found with shutil.which. Each subtest also checks that the probe finds no podman, uv or harbor.

Touches

backend (tests only)

  • app/tests/test_hosts.py

Verified

In a rootless Podman container (python:3.12, --init), with /usr/bin/podman set to #!/bin/sh and sleep 20:

  • On main (db6e8f9), the test fails in both subtests with subprocess.TimeoutExpired: ... timed out after 12.0 seconds (24 s).
  • On this branch, the test passes in 6 ms.

In a new container of the same kind:

  • The backend suite, python3 app/tests/parallel.py: 2250 tests, OK.
  • The route suite, python3 app/tests/parallel.py app/ui_tests: 639 tests, OK.

Risk

Low. Only the test changes. On a machine without hostname or one of the other three tools, shutil.which returns None and the test fails at setup with a TypeError instead of running the probe. A revert undoes it.

The test put /usr/bin and /bin on the probe's PATH, so the machine's own podman ran inside it and could exceed the probe's 12 s timeout. Its PATH now holds the stub docker and links to sh, sed, grep and hostname.
@harenome
harenome force-pushed the fix/hosts-probe-path branch from faf19c1 to d150365 Compare November 19, 2026 10:33
@harenome
harenome merged commit f094cba into ThinkFlowLab:main Nov 19, 2026
2 checks passed
@harenome
harenome deleted the fix/hosts-probe-path branch November 19, 2026 10:36
aitianshi added a commit that referenced this pull request Nov 23, 2026
No linked issue: the owner asked for a new release, v0.2.0.

## What

Prepares v0.2.0. The version becomes `0.2.0`, a minor bump for the scale
of change since v0.1.1: model providers defined once (#148), saved
recipes moved to the user data directory (#203), the standard package
reorganised (#290, #316), new benchmarks and Boat VMs.
`docs/releases/v0.2.0.md` gives the highlights, a Contributors section,
the full changelog of the 97 pull requests in `v0.1.1..main` (93 listed,
#142, #219, #234 and #320 as test and CI changes) and the installation
notes, in the shape of v0.1.1's. Install examples, the release guide,
the docs' release-notes link and menu, and the workflows' default tags
name 0.2.0. The release tooling does not change.

## Touches

CI and skills (the release and publish workflows' default tags) · docs
and site

## Verified

- Backend suite: 2799 tests in 171 modules, OK. Route suite: 624 tests
in 64 modules, OK.
- `catalogue_docs.py --write` and `diagrams.py --write` left no change;
`readme_media.py --check` is current.
- `python3 app/packaging/release.py build --tag v0.2.0` built and
verified `nullius_eval-0.2.0-py3-none-any.whl`,
`nullius_eval-0.2.0.tar.gz` and `SHA256SUMS`; `release.py verify --tag
v0.2.0` and `verify.py` on the wheel passed, including the
installed-tool and profile-preservation checks.
- The workflows have not run; they run only by hand on `main`.

## Risk

Version strings and docs only. A wrong default tag in a workflow is an
input the person running it can change, and `release.py` refuses a tag
that does not match `pyproject.toml` or has no notes. Nothing is tagged,
drafted or published by this change. Undo with a revert.
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.

Tests: the host probe test runs the machine's own podman and times out

1 participant