Skip to content

test(core): disable npm audits in the test preload - #47222

Merged
rekram1-node merged 1 commit into
devfrom
dev-ci-investigate
Sep 4, 2026
Merged

test(core): disable npm audits in the test preload#47222
rekram1-node merged 1 commit into
devfrom
dev-ci-investigate

Conversation

@opencode-agent

@opencode-agent opencode-agent Bot commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Summary

Core's local npm install tests on dev time out because Arborist starts a public npm security audit and waits for its response, even though the fixture packages are local. Both Linux and Windows CI fail at the 5s deadline in:

  • Npm.add > reifies when package cache directory exists without the package installed
  • Npm.install > respects omit from project .npmrc

Set NPM_CONFIG_AUDIT=false in the existing Core test preload and add a regression assertion. Both direct bun test and the package test command load the setting. No additional filesystem writes, fixture helpers, retries, longer timeouts, or production behavior changes.

Verification

From packages/core, using Bun 1.3.14 as used by this branch's CI:

  • Before: bun test test/npm.test.ts — 2 passed, 2 timed out at 5s. Diagnostic logging showed both tests starting an audit bulk request before hanging.
  • New preload regression test failed before the environment setting was added.
  • After: bun test test/npm.test.ts test/preload.test.ts --rerun-each 5 — 25 passed, 0 failed in 1.36s.
  • bun run test test/npm.test.ts test/preload.test.ts — 5 passed, 0 failed in 1.15s.
  • Final scoped run under strace — 5 passed, with no IPv4/IPv6 connection attempts.
  • GOMEMLIMIT=2GiB GOMAXPROCS=2 bun typecheck, Prettier, and git diff --check — passed.

Physical Windows validation remains blocked by an SSH connection timeout; no local Windows pass is claimed.

Requested by: @rekram1-node (Aiden via Slack)

@rekram1-node
rekram1-node merged commit 03cb632 into dev Sep 4, 2026
10 checks passed
@rekram1-node
rekram1-node deleted the dev-ci-investigate branch September 4, 2026 05:34
filipeforattini added a commit to reddb-io/redcode that referenced this pull request Sep 5, 2026
Ported from anomalyco/opencode 03cb632.

Port note: our preload had been rewritten for hermetic homes (#121), so the one line went
in by hand beside the other network switches; the new test came across as written.

Upstream: 03cb632
filipeforattini added a commit to reddb-io/redcode that referenced this pull request Sep 5, 2026
Ported from anomalyco/opencode 03cb632.

Port note: our preload had been rewritten for hermetic homes (#121), so the one line went
in by hand beside the other network switches; the new test came across as written.

Upstream: 03cb632
1056674754 added a commit to 1056674754/opencode that referenced this pull request Sep 7, 2026
Upstream v1.18.27 (4b7e19e, merged at 26dff3f) -> v1.18.29 (1674747),
29 commits / 116 files. Merge base is b046973 (default header timeout to
five minutes). Staged delta vs pre-merge fork HEAD is identical to the
upstream tag-to-tag diff, confirming a clean adoption.

Functional changes:
- fix(opencode): compare Codex GPT versions by major and minor (anomalyco#47385) and
  allow integer GPT versions in the Codex model filter (anomalyco#47384) — codex.ts;
  disjoint from fork snapshot architecture, auto-merged.
- feat(copilot): send X-Interaction-Id header with session id (anomalyco#47215) —
  github-copilot/copilot.ts, 1 line.
- chore: bump gitlab-ai-provider to 6.13.0 (anomalyco#46914).
- test(core): disable npm audits in the test preload (anomalyco#47222).
- console: limits graph, i18n for ar/br/da/de/es/fr/it/ja + others;
  app: dialog-connect-provider and open-in-app-v2 fixes; go.mdx crawl rules
  gain the x-opencode-session header bullet (took upstream whole).

Conflicts resolved: 29 package.json version bumps (rebranded 1.18.29-sscity;
HEAD had moved to the local v1.18.27 merge meanwhile), bun.lock (took
upstream, rebranded workspace entries via bun install), go.mdx (took
upstream — trivial <br/> placement in the crawl-rules list). Fork deltas
verified intact vs v1.18.29: provider ProviderSnapshot architecture,
deferred snapshot init, GLM/ZhiPu normalization in transform.ts (+77 lines
fork-only), config getFresh/commitFresh. Tests: provider, transform, config,
v2, azure plugin, session retry/llm — 1036 pass / 0 fail across 14 files;
typecheck clean.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant