Skip to content

test(node-core): #1842 pre-warm + workspace-cwd so http/net/https are measurable#1846

Merged
proggeramlug merged 1 commit into
mainfrom
fix/1842-radar-prewarm-cwd
May 26, 2026
Merged

test(node-core): #1842 pre-warm + workspace-cwd so http/net/https are measurable#1846
proggeramlug merged 1 commit into
mainfrom
fix/1842-radar-prewarm-cwd

Conversation

@proggeramlug
Copy link
Copy Markdown
Contributor

Fixes #1842 (follow-up to #1778). Tooling-only (radar runner).

Under --auto-optimize the radar couldn't link the perry-ext-* server crates, so http/net/https tests false-bucketed as compile-fail. Two causes:

  1. cwd — auto-optimize finds the Cargo workspace via process cwd to (re)build the ext crates. The runner compiled from a temp bin/ dir → auto-optimize silently skipped the ext-crate build and link-failed. Now --auto-optimize compiles run from the perry workspace (.o litter is gitignored).
  2. cold-build timeout — the first ext-crate compile cold-builds heavy deps (hyper/tokio/openssl). A one-time kitchen-sink pre-warm builds them up front so per-feature relinks are incremental.

Validated (http, 10 tests): http 0%→62.5%, compile-fail 6→0. The earlier http 5% / net 10% / https 0% were entirely this artifact — real parity there is far higher. Once merged, a full sweep gives a trustworthy network-inclusive parity number.

Under --auto-optimize the radar could not link the perry-ext-* server crates
(http/net/https), so those tests false-bucketed as compile-fail. Two causes,
both fixed here:

1. cwd: auto-optimize locates the Cargo workspace from the process cwd to
   (re)build the ext crates. The runner compiled from a temp `bin/` dir, so
   auto-optimize silently skipped the ext-crate build and link-failed. Now
   --auto-optimize compiles run from the perry workspace (REPO_ROOT); the
   `.o` litter there is gitignored (`*.o`).

2. cold-build timeout: the first compile needing an ext crate cold-builds
   heavy deps (hyper/tokio/openssl/flate2). A one-time kitchen-sink pre-warm
   (http/https/net/zlib/crypto) builds them up front so each per-feature
   relink in the sweep is incremental, not cold.

Validated (http, --max-per-api 10): http 0%→62.5%, compile-fail 6→0. The
prior http 5% / net 10% / https 0% were entirely this artifact. Closes #1842.
@proggeramlug proggeramlug merged commit d3803cb into main May 26, 2026
10 checks passed
@proggeramlug proggeramlug deleted the fix/1842-radar-prewarm-cwd branch May 26, 2026 14:16
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.

#800 radar: pre-warm ext-crate libs so http/net/https server tests aren't cold-build timeouts (follow-up to #1778)

1 participant