Skip to content

ci(install-test): make the npm jobs test npm's ant, not Apache Ant's - #228

Open
Nic-dorman wants to merge 1 commit into
mainfrom
fix/install-test-npm-checks
Open

Nic-dorman wants to merge 1 commit into
mainfrom
fix/install-test-npm-checks

Conversation

@Nic-dorman

Copy link
Copy Markdown
Member

Two of install-test.yml's npm jobs could never pass. Both failures were bugs in the tests, not in the package. Found while verifying #223.

  • test npm install (Linux) failed after uninstall if any ant was still on PATH. GitHub's ubuntu image ships Apache Ant, which is also called ant, at /usr/bin/ant. The check now asserts that npm's own ant ($(npm prefix -g)/bin/ant) is gone. The macOS and Windows uninstall steps, which didn't check removal before, gain the same check.
  • test npm install --ignore-scripts grepped for "embedded bootstrap peer". The binary logs No bootstrap config file; using N bundled bootstrap seed(s) (ant-core/src/config.rs). Both strings arrived in the same commit (b70d808), so the job had never been able to pass. The run before this fix shows the binary using the bundled seeds; only the grep was wrong.

Every "verify binary" step also ran ant --help, which Apache Ant answers too, so a broken npm install could still pass. Each one now checks first that ant resolves to npm's install.

Linear issue

Closes V2-1525

Risk tier

  • T0 — docs / tooling / CI / pure UX-output. Repo CI only.
  • T1 — client-only, no network-facing behavior change. CI + prod compat smoke.
  • T2 — node/client logic with behavioral surface, no protocol/format/economics change. Dev testnet + ADR.
  • T3 — protocol / storage format / payments / routing. T2 evidence + adversarial testing.

Workflow-only change to a workflow_dispatch job.

Compatibility

  • Wire: none
  • Storage: none
  • API: none

Semver impact

  • breaking
  • feature
  • fix

Test evidence

Dispatched install-test.yml on this branch against npm @withautonomi/ant@0.3.10 (run 38378605487). All 7 jobs passed:

  • test npm install (Linux): success. It used to fail on Apache Ant at /usr/bin/ant.
  • test npm install --ignore-scripts (Linux): success. It used to fail on the grep.
  • test npm install (macOS), test npm install (Windows): success, with the new resolves-to-npm and removal checks.
  • test install.sh (Linux), test install.sh (macOS), test install.ps1 (Windows): success. Unchanged here.

The earlier run (38253772727, for #223) had the two Linux npm jobs failing for the reasons above. Its --ignore-scripts log shows the binary printing No bootstrap config file; using 7 bundled bootstrap seed(s).

New dependency

none

ADR

n/a

Mitigation / rollback

Revert the commit. It only touches .github/workflows/install-test.yml, which runs only when dispatched.

🤖 Generated with Claude Code

Two npm jobs could never pass, for reasons in the tests themselves:

- test npm install (Linux) failed after uninstall if any `ant` was
  still on PATH. GitHub's ubuntu image ships Apache Ant, also called
  `ant`, at /usr/bin/ant. The check now asserts that npm's own ant is
  gone, and the macOS and Windows uninstall steps gain the same check.
- test npm install --ignore-scripts grepped for "embedded bootstrap
  peer", but the binary logs "No bootstrap config file; using N
  bundled bootstrap seed(s)" (ant-core/src/config.rs). Both strings
  arrived in the same commit, so the job had never been able to pass.

Every "verify binary" step also ran `ant --help`, which Apache Ant
answers as well. Each one now checks first that `ant` resolves to
npm's install.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Nic-dorman
Nic-dorman force-pushed the fix/install-test-npm-checks branch from 656bbee to 16749cc Compare October 23, 2026 18:52
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