Skip to content

test: skip tool meta-tests outside EB_LOCAL_REQUIRE_TOOLS - #410

Merged
HaoZeke merged 3 commits into
developfrom
test/zero-skips-strict-env
Nov 26, 2026
Merged

HaoZeke merged 3 commits into
developfrom
test/zero-skips-strict-env

Conversation

@HaoZeke

@HaoZeke HaoZeke commented Nov 20, 2026

Copy link
Copy Markdown
Collaborator

Summary

The ZeroPythonSkips meta-tests in tests/test_zero_skips.py
unconditionally asserted that eb-stack, zsh, and unshare were
installed on PATH, causing unittest discover to fail on developer
hosts lacking any of those three tools.

Check EB_LOCAL_REQUIRE_TOOLS in ZeroPythonSkips.require_tool:

  • Continuous integration (CI) sets EB_LOCAL_REQUIRE_TOOLS=1 in
    .github/workflows/zig.yml, failing immediately when eb-stack
    (0.8.0 or newer), zsh, unshare, or user-namespace bind mounts are
    unavailable.
  • Outside CI (EB_LOCAL_REQUIRE_TOOLS unset, 0, or false), missing
    host tools skip cleanly with an explicit reason.

Verification

  • tests/test_zero_skips.py with EB_LOCAL_REQUIRE_TOOLS=1 and all
    tools present (7 tests, 0 skips).
  • Subprocess runs of the three tool meta-tests against an empty PATH,
    verifying OK (skipped=3) with reasons outside CI and
    FAILED (failures=3) when EB_LOCAL_REQUIRE_TOOLS=1.

The ZeroPythonSkips meta-tests in tests/test_zero_skips.py asserted
unconditionally that eb-stack, zsh, and unshare were installed on PATH,
failing local test runs on hosts without those tools.

Check EB_LOCAL_REQUIRE_TOOLS in ZeroPythonSkips.require_tool. Set
EB_LOCAL_REQUIRE_TOOLS=1 in zig.yml so missing tools or unavailable
user-namespace bind mounts fail in CI, and call skipTest with an
explicit reason when EB_LOCAL_REQUIRE_TOOLS is unset, 0, or false.
@HaoZeke
HaoZeke changed the base branch from test/zero-python-skips to develop November 26, 2026 16:03
@HaoZeke
HaoZeke merged commit 3b2d241 into develop Nov 26, 2026
12 checks passed
@HaoZeke
HaoZeke deleted the test/zero-skips-strict-env branch November 26, 2026 21:42
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.

1 participant