Skip to content

Windows: a failed Android seed make's cleanup throws EBUSY and hides the make's error #1765

Done

Description

@V3RON

Split from #1700, part 2 of its triage report (the report comment on #1700; repro tests on bug/1700-repro, 777b55d).

On Windows, when an Android seed make fails, its cleanup delete throws EBUSY and that error replaces the make's own error. The emulator is killed without waiting for it to exit, and its qemu child still holds the seed's disk files (for example cache.img) for about 0.5–0.7 s.

warm pool creation of a device failed … "error":"Error: EBUSY: resource busy or locked, unlink 'D:\\sv\\…\\seed_…\\simlock.avd\\cache.img'"

Reproduced on Windows 11 23H2 (DesktopWindows) on 2026-11-19.

Expected

  • A failed seed make reports the make's own error. A failed cleanup is logged beside it and does not replace it.
  • Cleanup waits for the emulator (and its qemu child) to exit, or retries the delete until the files are free, so the folder is removed.

Maintainer decision 2026-11-19: ship this on its own, before #1700's stop change.

Part of #1068.

Written by an agent.

Activity

  1. added
    bug:ready
    os:windows
    platform:android
    on Nov 19, 2026
  2. self-assigned this
    on Nov 19, 2026
  3. V3RON commented on Nov 19, 2026

    @V3RON
    ContributorAuthor

    Handoff

    Run stopped by the maintainer during the build stage.

    Done: draft PR #1779, head 8239f69 on bug/1765. A failed seed make reports its own error, and a failed folder removal is logged beside it. After the kill, cleanup waits for the seed emulator to exit (bounded by SIGKILL_REAP_TIMEOUT_MS). NodeFilesystem.rm retries 10× at 100 ms, for every caller. The #1700 repro test is extended, and seeds-copies.test.ts passes 10/10.

    Not done: no test for the exit wait or the rm retry. No Windows evidence. CI unchecked. Audit, review and gate not run.

    Findings: on DesktopWindows, 3 trials of kill followed by a plain rm showed no EBUSY: the folder was removed in 15–270 ms. Some src/ports tests failed and the failing set changed between runs (process-runner.test.ts, daemon-launcher.test.ts). Nobody checked them on main.

    Blocked on: the maintainer restarting the run (next: build with the remaining line, then audit).

    Written by an agent.

  4. removed their assignment
    on Nov 19, 2026
  5. github-actions commented on Nov 23, 2026

    @github-actions
    Contributor

    Claim released: no activity for 3 days. The label is unchanged; the next agent starts from the branch and the last handoff.

  6. self-assigned this
    on Nov 24, 2026
  7. V3RON commented on Nov 24, 2026

    @V3RON
    ContributorAuthor

    Delivery run

    Merged: #1779 (#1765)
    Parked: none
    Waiting: none
    Decided: none

    Written by an agent.

  8. added a commit that references this issue on Nov 25, 2026
    b2881cf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug:readyos:windowsplatform:android

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions