Repository navigation
Description
Summary
The normal gate no longer hits the live network: the zlib registry case was
unconditionally disabled in 7684668. That restored hermeticity by removing
coverage. The remaining work is to restore offline with-get
resolution/build coverage and add a content-addressed package cache.
Current state (revalidated 2026-07-15)
build/selfhost.w still contains bs_check_get_zlib_versions, but its call is
commented out with a #623/#624 note. A fresh test run therefore does not
download zlib.
The tradeoff is zero gate coverage of the real package-resolution/build path
that case exercised. Existing project fixtures cover lock and metadata
mechanics, but do not replace a local-registry source package build.
Downloaded/built C packages are still installed under each project's
.with/deps/c/name/version tree. There is no shared content-addressed cache,
so separate projects or cleaned test roots cannot reuse identical fetched
content.
The old comment that environment gating is unavailable is stale:
BuildCtx.env_input and ActionCtx.env_input exist and record build inputs
(see #649). Environment gating is optional here; normal gates must remain
offline regardless.
Work
- Add a checked-in minimal package, archive, or file-backed registry fixture
and run it through the same resolution and source-build machinery as
with get. - Re-enable the package case in normal tests using only local inputs.
- Move immutable downloaded source/archive content into a shared
content-addressed cache; project-local installation metadata may continue
under .with/deps. - Test cache hits, hash mismatch/corruption, and clean project restoration.
- Keep live-registry smoke tests explicitly opt-in and outside release gates.
The repository's migrated std.zlib can supply real zlib functionality; a gate
test does not need the CDN merely to obtain meaningful compressed content.
Acceptance criteria
- Normal test gates make no network request.
- A local fixture exercises package resolution, extraction/build, metadata,
and project installation. - Identical content is reused across clean project roots.
- Corrupt or mismatched cache entries fail loudly or are safely replaced.
- Live-network testing is opt-in and cannot affect ordinary gate success.
- Full build, fixpoint, and test gates pass.
Related
- with get shells out to host curl/wget — must be runtime-native fetch #623: replace host-curl fetching with the native runtime/client path
- Build-action environment inputs: diagnostics, default effects, and docs #649: declared build-action environment inputs and diagnostics
Activity
ehartford commentedon Jul 3, 2026
Correction from Eric: zlib is already ported to With and lives in the standard library (
lib/std/zlib.w). That strengthens the WWED: the cli-selfhost test doesn't need the network OR the C package registry to exercisewith get's resolution+build machinery — a local fixture package (file:// registry path or checked-in archive) does it hermetically; and any test wanting real zlib CONTENT can use std.zlib directly. Live-network c.zlib fetching in the gates is testing curl and the CDN, not With.Fix #629: an else-if arm no longer swallows the outer chain's else
test: skip the flaky get-zlib network case (unconditional)
[-]Gate suite hits the live network: cli-selfhost-project-tests downloads zlib every fresh :test run[/-][+]Restore hermetic with-get gate coverage and add a content-addressed cache[/+]ehartford commentedon Oct 25, 2026
Triage 2026-10-25,
with v0.15.3.0(main a261b65): still open. The registry case is still commented out:post-release: gate coverage of the
with getresolution path through a local fixture package, plus the content-addressed cache; the UAT scenarios exercise realwith getflows meanwhile.Wave 2b: CCodegen place-walk unification (#651), hermetic offline wit…