Repository navigation
ci(install): audit a local fixture site in every install test - #591
Conversation
|
Status: ready for review. I dispatched |
|
Reviewed the diff of
Test coverage: this is CI-only. If a failure here ever turns out to be a real bug, a unit test for it would belong in |
|
Thanks for the review. There are no critical, high or medium findings, so I'm not pushing for these. Responses:
The dispatched run of this branch's workflow passed on Windows. The other platforms were still running when I last looked. |
|
Secret scan failed on the first commit because the new steps pushed two existing baselined lines in |
The install tests only ran --version, self version and self doctor, so a build where every fetch fails would pass all platforms. Each platform now serves a one-page site from 127.0.0.1 and runs a 1-page audit of it with the installed binary in a scratch HOME, asserting exit 0, a completed run with one crawled page, and that the fixture server saw the request. A failure prints the command output and the server log. Refs #423 Signed-off-by: Nik Cubrilovic <[email protected]>
…atch Refs #423 Signed-off-by: Nik Cubrilovic <[email protected]>
5c1be7a to
39ff9c9
Compare
|
Review of #591 (network smoke check in I checked the assertions against the code.
Overall the approach is sound: it needs no outside network, it checks the server's access log as well as the report, and it has cleanup traps. I found nothing blocking. |
|
Second review round: again nothing critical, high or medium, so no push this round. Responses to the points not already answered above:
The branch has been rebased onto current main (not by me), and the workflow content is identical to what I tested. I removed the generated-by footer from the PR description. |
|
Review of the local-fixture audit step added to I found no blocking problems.
Test coverage: this PR is itself CI coverage. It adds a real-fetch smoke test for the installed binary on all five platforms. |
|
Third review round. The only medium finding is already disproved by evidence, so I'm not pushing.
All 15 checks on the head are green. |
Refs #423
Each install test now runs a 1-page audit of a throwaway site that the runner serves from 127.0.0.1, using the installed binary in a scratch HOME. No outside host is involved, so the check is deterministic. The change is limited to
.github/workflows/test-install.yml(plus the line numbers in.secrets.baseline, which shifted).Acceptance criteria
squirrel skills installinto a scratch HOME and asserts both skills land. Deliberately out of scope here. The released binary hardcodes its skills source and has no override, so this cannot be done deterministically without a product change. That change needs its own security review and is tracked in cli: loopback-only source override so install tests can exercise skills install offline #590. This criterion now points there.audit http://127.0.0.1:18765/ -m 1 --disable-discovery-probes --no-publish --format json --output <file>, then asserts exit 0,status == "completed"andmeta.totalPages == 1. It also asserts the fixture server's access log contains the request, which proves the binary really fetched over the network. Evidence: a manual dispatch oftest-install.ymlon this branch passed the new step on all five platforms, and the extracted Linux step ran locally against the CLI built from this tree. This also confirms the crawler accepts a loopback target.::error::squirrel audit exited non-zero, followed by the squirrel output, the audit JSON and the fixture server log. The failure helper prints all of these for every assertion.Notes
python3for this.