Skip to content

release: install tests never exercise the network #423

Closed

Description

@nc9

The release workflow's install tests (test-install.yml) only run squirrel --version, self version --json and self doctor. Nothing a released binary does over the network is tested before or after publish: fetching a page, reading the skills manifest, installing skills. A build where every fetch fails would pass all five platforms.

Found while verifying v0.0.99: the release binary was checked for network by hand, in a container.

Acceptance Criteria

  • each install-test platform runs squirrel skills install into a scratch HOME and asserts both skills land (split out: needs a loopback-only source override in the binary, tracked in cli: loopback-only source override so install tests can exercise skills install offline #590)
  • each platform runs a 1-page audit of a local fixture site served from 127.0.0.1 (-m 1 --disable-discovery-probes) and asserts exit 0 with one page crawled (decided: a local fixture instead of squirrelscan.com, so the job cannot flake on an outside host)
  • a network failure in either step fails the job with the command output visible

Activity

  1. added
    enhancement
    P2
    size: S
    on Sep 30, 2026
  2. nc9 commented on Oct 8, 2026

    @nc9
    ContributorAuthor

    Blocked on a decision before I open a PR. No code changed yet.

    The problem. The criteria ask for two network checks on each install-test platform. A deterministic CI version (local fixture server or recorded manifest) works for one of them but not the other:

    • squirrel skills install: the released binary has no way to point at a different source. apps/cli/src/self/skills-manifest.ts hardcodes github.com/squirrelscan/skills.git for the ref lookup and raw.githubusercontent.com/squirrelscan/skills for the manifest and files. There is no env var or flag for a base URL. So a fixture server or recorded manifest cannot be used without adding an override to the shipped binary. That override would decide where skill files are fetched from, which is a supply-chain-sensitive change, so I don't want to add it unasked.
    • 1-page audit: a local fixture site should work with the existing binary. I have not confirmed that the crawler accepts a loopback target.

    Options

    1. Add a narrowly scoped override, for example an env var that is honoured only when it points at a loopback address. Then both checks run against a local fixture server on every platform. This is deterministic, but it is a product change and it needs your sign-off.
    2. Keep the checks against the real hosts, as the issue's example does (github for skills, squirrelscan.com for the audit). This needs no product change, but it makes the job depend on external uptime. That conflicts with the "not flaky" requirement.
    3. Split it. Run the audit against a local fixture now, and track the skills check separately until an override exists.

    Which do you want? I'll start as soon as there is a decision.

  3. nc9 commented on Oct 8, 2026

    @nc9
    ContributorAuthor

    Status: PR #591 is open for the local fixture audit check. It covers the 1-page audit criterion and the "failure shows command output" criterion. The crawler accepts a loopback target, so no product change was needed. The skills-install criterion is split out to #590, and I updated the criteria here to point at it. I dispatched test-install.yml on the PR branch to get a first run on every platform, and I'm waiting on that and on the bot review.

  4. nc9 commented on Oct 9, 2026

    @nc9
    ContributorAuthor

    Status: PR #591 is merged. It adds the local fixture audit check to every install-test platform. Evidence for the criteria:

    • 1-page audit, exit 0, one page crawled: the new "Audit a local fixture site" step. A manual dispatch of test-install.yml on the PR branch passed it on all five platforms (run 37837713680).
    • Failure shows the command output: the step prints the squirrel output, the audit JSON and the fixture server log on any failed assertion. I checked this locally by pointing the audit at a closed port.
    • squirrel skills install criterion: still open, tracked in cli: loopback-only source override so install tests can exercise skills install offline #590.

    The squirrelscan agent skill needs no change. Ticking the criteria is yours.

  5. nc9 commented on Oct 10, 2026

    @nc9
    ContributorAuthor

    Done for this issue's scope. #591 (shipped in v0.0.108) adds "Audit a local fixture site" to all five install-test jobs in test-install.yml (Linux glibc, musl, macOS arm64 and x64, Windows): a 1-page audit of a 127.0.0.1 fixture that asserts exit 0 and one page crawled, and prints the squirrel output, the audit JSON and the fixture server log on failure. The skills-install check was split out and is criterion 4 of #590, which stays open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2enhancementsize: S

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions