Skip to content

with build :seed: the HTTPS fetch of a release asset fails intermittently ("failed after 5 attempts" in ~33 s) while curl of the same URL succeeds; both compiler generations show it #3083

Closed

Description

@ehartford

In ~/.local/with-staging/reseed (detached at main 9cdbef1, lock at nightly-20261110-local-1-d02ac04992f8), the installed compiler's with build :seed failed twice:

pinned seed release (seed.lock): nightly-20261110-local-1-d02ac04992f8
src/main is not the pinned seed; refetching
downloading seed from: https://github.com/withlang-dev/with/releases/download/nightly-20261110-local-1-d02ac04992f8/with-darwin-aarch64
[driver-compile] seed-asset-https-fetch-helper compiler=with files=
error: seed: could not fetch https://github.com/…/with-darwin-aarch64: HTTPS download failed after 5 attempts: …

Note files= is empty on the driver-compile line. In a fresh worktree (~/.local/with-staging/sweep2, same lock, same installed compiler) the same with build :seed succeeded a minute earlier, and curl -fsSL of the same URL succeeded immediately with the digest the lock records. So the release and the network were fine; the fetch helper this worktree compiled had no source files, which looks like the #2493 class (a cached build graph or runner state in a long-lived worktree handing the driver an empty action). The reseed proceeded by installing the asset by hand (curl + shasum -c), which is the documented fallback (seed-cut-host-traps), but :seed is the one path the runbook names and it should not depend on the worktree's history.

To reproduce: a worktree that has reseeded through several lock bumps (reseed has, since 2026-10) then with build :seed after a bump. WITH_BUILD_CACHE_DIR=none WITH_BUILD_RUNNER_DIR=/nonexistent is the honest fresh check per the 2026-10-20 note.

Activity

  1. ehartford commented on Nov 8, 2026

    @ehartford
    ContributorAuthor

    Also fails in a fresh worktree (~/.local/with-staging/sweep3, created minutes before, same lock, same installed compiler), with the same [driver-compile] seed-asset-https-fetch-helper compiler=with files= line and the same "HTTPS download failed after 5 attempts", while curl of the URL succeeds. So it is not worktree history; the fetch helper the driver compiles has no source files on this installed compiler (built from main 9cdbef1 by the new seed). The earlier success in sweep2 was with the previous installed compiler (built from d02ac04 by the old seed).

  2. changed the title [-]`with build :seed` fails its HTTPS fetch in one worktree (helper driver-compiled with `files=` empty) while the same release downloads with curl and `:seed` succeeds in another worktree[/-] [+]`with build :seed`: the HTTPS fetch of a release asset fails intermittently ("failed after 5 attempts" in ~33 s) while curl of the same URL succeeds; both compiler generations show it[/+] on Nov 8, 2026
  3. ehartford commented on Nov 8, 2026

    @ehartford
    ContributorAuthor

    Correction after a controlled pair on one worktree: the new-seed-built compiler fetched the asset (rc=0) and the old-seed-built compiler then failed with "HTTPS download failed after 5 attempts" in 33 s. So it is not a generation disagreement and files= empty on the driver-compile line is the normal output. It is an intermittent fetch failure: five attempts inside ~33 s against GitHub's release redirect, with curl succeeding at the same minute. Same class as the 2026-10-14 note (studio128's four corpus downloads failing at once, "waited at most 20 s", the probe-without-retry issue): the fetch helper needs a backoff that spans more than half a minute, or a report of what the last attempt saw (status, redirect, TLS) so the next person is not guessing.

  4. added a commit that references this issue on Nov 8, 2026
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions