Skip to content

Saved-state release verification times out on the next media upload #4293

Closed as not planned

Description

@leaf-agent

The local bundled-release check in publish-site run 40393257697, at commit a0d95e7b5ba131de82947ae106223815e80543bf, timed out uploading media after reading a stopped page's saved state. This failed before deployment, in deploy-site → Verify the bundled release locally in a browser.

The traceback reaches run_verification → verify_saved_state → context.request.post at line 816 of verify_site.py at the failing commit. The verifier sends a 68-byte PNG to /examples/heat-loss/api/media, with the saved layer generation and release headers, to prove that the next mutation wakes the container and preserves saved events and the private document.

playwright._impl._errors.TimeoutError: APIRequestContext.post: Timeout 120000ms exceeded.
Call log:
  - → POST http://127.0.0.1:41803/examples/heat-loss/api/media
    - Content-Type: image/png
    - content-length: 68

The captured container output includes a restore of 290 files, 149 chunks and 8,251,466 bytes in 10,184 ms, followed by HTTP-ready and prewarm-completed records. That does not establish where the upload stopped progressing. The exact underlying mechanism remains unverified; investigate the Worker-to-container mutation and media ingestion path before choosing a repair. This report session read CI diagnostics and the verifier at the run's commit; it did not reproduce locally. A preceding publish run, 40379977368, passed, which alone does not establish a transient infrastructure incident.

Reproduce with uv run leaf-dev verify-site website-worker on current main, following the repository's delivery-check instructions. Preserve the verifier's guarantee that reading durable state leaves the next writer able to resume without losing events or the private document. #4252 records a different diagnostic, a sample revision read failing during teardown, and is not established as the same cause.

Cause of a failure tracked in #4292.

Activity

  1. added
    tend-ci-cause
    on Oct 26, 2026
  2. leaf-agent commented on Oct 26, 2026

    @leaf-agent
    CollaboratorAuthor

    Reproduction is blocked by this Tend runner's Docker access, so I have no validated repair for the upload timeout. docker info --format '{{.ServerVersion}}' fails with “Cannot connect to the Docker daemon at unix:///var/run/docker.sock.” The socket is root:docker with mode 0660; this session runs as tend-sandbox with only its own group. I started the documented site build and local verifier, then stopped both without obtaining a reproduction result. No tracked files changed.

    The latest publish-site result is still the failure cited above; there is no later passing release verification to establish resolution. This remains open rather than treating the earlier passing run as evidence of a transient failure.

    @max-sixty, the next step needs a Tend runner with working Docker access: arrange daemon/socket access in the trusted setup or harness, then rerun uv run leaf-dev site and uv run leaf-dev verify-site website-worker. That is required to investigate the stopped-container mutation path without weakening its saved-state guarantee.

  3. leaf-agent commented on Oct 29, 2026

    @leaf-agent
    CollaboratorAuthor

    The Docker blocker has a supported verification route now: I dispatched verify-website on main and collected a successful result at cc76eb3c9798e3d9d49f4a4508cded09ce833284. The stopped-container media upload returned HTTP 200 in 5,851 ms, and the verifier's subsequent checks confirmed that the saved events and private revision survived the mutation. No code changed.

    This establishes a passing execution, not a repair of the intermittent timeout, so #4293 remains open. No Docker access change is needed from the maintainer to continue investigating: the non-deploying workflow supplies that environment. The remaining engineering step is to locate where a failing upload stops progressing—container forwarding, request-body consumption, or durable publication—before choosing a fix; the original restore/HTTP-ready records do not distinguish those stages.

    Verification evidence

    Verification run completed successfully. Its website-verification-40852075247-1 artifact retains run-pmj8tmn3/wrangler-dev.log, whose line 5648 records POST /examples/heat-loss/api/media 200 OK (5851ms), and startup.json with both saved-state profiles. The verifier at that revision retains the upload and the post-mutation preservation assertions.

  4. leaf-agent commented on Oct 31, 2026

    @leaf-agent
    CollaboratorAuthor

    The latest completed publish run passed the saved-state verifier at a65d679fde4d2124ea1b851a5fea2d8405ee807b, including the post-upload preservation assertions. This still does not establish a repair. Both the failing revision and this passing revision pin Containers SDK 0.3.7 and Wrangler 4.152.0, so an upgrade of those dependencies does not explain the recovery.

    The remaining diagnostic gap is a request that never returns. #4657 now records forwarded HTTP 5xx responses, but its logging starts only after the container fetch answers; it cannot locate this timeout. I re-read the original run's retained log: restoration and prewarming completed, but it contains no upload-entry or publication-stage record that establishes whether Python received the POST. The original run currently lists no artifacts.

    The next investigation belongs here: capture forwarding, Python upload entry/body completion, and durable publication boundaries in a failing verify-website execution, then choose a repair from the last completed boundary. Docker remains unavailable in this sandbox, while the documented non-deploying workflow remains the supported reproduction environment. No code changed, and this issue remains open for that engineering work.

  5. leaf-agent commented on Nov 2, 2026

    @leaf-agent
    CollaboratorAuthor

    Five consecutive stop/read/upload cycles passed in the diagnostic verification run. Each retained the verifier's saved-event and private-revision preservation assertions. This did not reproduce the timeout or establish a repair, so this issue remains open.

    The diagnostic branch, at de36a6b0e2aa5c8e25ddf6d485819aab8deb73de, adds content-free records before and after container forwarding, media-body consumption, activation, response capture, publication preparation, chunk transfer and commit. It also repeats the existing saved-state check five times. These are investigation-only edits; no repair PR was opened and nothing was merged. The workflow retains its Worker/container log in its website-verification artifact.

    The website check completed successfully at that exact commit, confirmed through GraphQL. GitHub's REST quota was then exhausted, preventing artifact retrieval in this session; I have not inspected the individual phase records or timings. The remaining diagnostic requirement is a failing execution with those boundary records: the last completed phase would distinguish forwarding/body ingestion from durable publication. This branch preserves that experiment rather than leaving another uninstrumented rerun as the next step.

  6. max-sixty commented on Nov 5, 2026

    @max-sixty
    Owner

    Closing until it recurs, when Tend's pipeline files it again. One local-verifier timeout on Oct 26 in about 250 publish runs. Later verifications passed, including five consecutive diagnostic cycles. Instrumentation for the next occurrence is kept on a branch.

    Reopen when: The saved-state verifier's stopped-container media upload times out again. Rerun with diagnostic/issue-4293-boundaries.

    This was written by Claude Code on behalf of max-sixty

  7. added
    postponed
    on Nov 5, 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

    postponedtend-ci-cause

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions