Skip to content

Bootstrap test: reach the fake Supervisor by IP, and require a real run - #7

Merged
kaboomAE merged 2 commits into
mainfrom
fix/test-harness-ci
Sep 28, 2026
Merged

kaboomAE merged 2 commits into
mainfrom
fix/test-harness-ci

Conversation

@kaboomAE

Copy link
Copy Markdown
Owner

The "Test add-ons" run on main at 626a1ff failed. The add-on was not at fault; the harness was.

What happened. On GitHub's runners, the fake Supervisor's network alias did not resolve on the --internal network. The add-on logged Could not resolve host: supervisor, read no options, and correctly took its clean-up-only path in every case. So the genuine install was never exercised. The refusal cases also passed their safety checks without ever reaching the archive. Locally (Docker 29.6.2) the alias resolved, which is why that run showed 31/31.

Fix, test only:

  • The add-on container now finds the fake Supervisor through --add-host, once the server answers.
  • Every case must show that the add-on read its options and got a run_token, so a run that did nothing cannot pass again.
  • A failed check prints the add-on's log and the Supervisor calls it made.

Evidence:

  • CI on this branch: run 36369276393. Bootstrap 35/35, Link passing.
  • Locally: 35/35.

The published images were checked separately. amd64-dartec-bootstrap:0.3.0 from ghcr (sha256:0e88b79e…), run against the fake Supervisor, installed HACS 2.0.5, wrote the entry, and stopped and restarted Core.

This only touches tests/, so build.yml does not run and no image is rebuilt or re-pushed.

🤖 Generated with Claude Code

On GitHub's runners the fake Supervisor's network alias did not resolve on
the --internal network. The add-on read no options and took its clean-up
path in every case, so the genuine install could not be checked, and the
attack cases passed their safety checks without the add-on ever reaching
the archive.

The add-on now finds the fake Supervisor through --add-host, after the
server answers. Every case must show the add-on read its options and got a
run_token, so a run that did nothing can no longer pass.
@kaboomAE
kaboomAE merged commit 340f889 into main Sep 28, 2026
2 checks passed
@kaboomAE
kaboomAE deleted the fix/test-harness-ci branch September 28, 2026 02:19
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