Skip to content

apple-runner: a cache rebuild must not delete a runner artifact other sessions are reading #4886

Closed

Description

@thymikee

Purpose

Follow-up from #4880 (#4689). Prepare can still delete the shared runner cache-<key> while another session's first open is reading it. After #4880 this happens only after a restored runner is indicted twice, or once when the first attempt spent the whole prepare deadline. On a loaded host those cases can still be slow boots, not corruption.

Required behavior

  • A clean or forced rebuild of a shared runner artifact must not remove files another live session is reading or launching from.
  • Use one owner for this (for example reader leases on the cache entry, or build-new-then-swap), not per-call checks.
  • A regression: two sessions on one cache-<key>; one indicts and rebuilds while the other is mid-launch; the other's launch is unaffected.

Out of scope

Changing the startup deadline or adding modes.

Activity

  1. added
    bug
    on Nov 21, 2026
  2. apex-sentinel-staging commented on Nov 21, 2026

    @apex-sentinel-staging

    Apex Sentinel · Issue review

    Suggested label: bug

    The issue reports existing broken behavior: a clean or forced runner cache rebuild can delete a shared cache- while another session is reading or launching from it. It provides concrete conditions, required behavior, and a regression scenario, so a maintainer could act on it.

    Required sections

    • Steps to reproduce (missing)
    • Expected and actual behavior (missing)
    • Version or environment (missing)
  3. added
    in-progress
    on Nov 21, 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

    bugin-progressready-for-agent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions