Skip to content

ci: Windows cross jobs on the Dell merge-queue runners fail with soldr "Directory not empty (os error 39)", ejecting every queued PR #5420

Closed

Description

@rdoupe

What happens

Since about 10:55 UTC on 2026-11-21, every `x86_64-pc-windows-msvc` job that lands on a Dell self-hosted runner fails a few seconds into `soldr cargo test --workspace --no-run --locked --target x86_64-pc-windows-msvc` (Windows Link Check) or the matching clippy (Rust Cross Lint):

soldr: trust: verified xwin-cache v2026-06-22 for x86_64-pc-windows-msvc sha256=33c04d80...
soldr: added 2987 xwin-cache case aliases
soldr: extracted xwin-cache to /var/cache/obs-runner/slots/dell-jw22zc3-obs-rust-2/setup-soldr/...
soldr: trust: verified compiler-rt/21.1.5/windows-x64/bundle.tar.zst sha256=f5da2d73...
soldr: IO error: Directory not empty (os error 39)

The same jobs on GitHub-hosted runners pass. When the Dell is idle the merge-queue runner selector picks it ("Dell capacity available ... admission=idle"), so a queued PR is ejected every time. Nothing in the PR's code is involved: the failure happens before any crate compiles.

Run Runner Windows jobs
44896596657 (10:55) dell-jw22zc3-obs-rust-3 failed
44947658993 (20:42) dell-jw22zc3-obs-rust-2, -obs-rust-3 both failed
44950921066 (21:19) dell-jw22zc3-obs-rust-2, -dyn-obs-rust-2 both failed
7 PR/queue runs 12:00-20:30 GitHub-hosted all passed

Before 10:50 the same jobs passed on dell-jw22zc3-obs-rust-1, -dyn-obs-rust-2/-3 and dell-fsx3mn2-2/-4.

Likely cause

soldr unpacks the Windows clang resources (compiler-rt) into a content-addressed directory under the runner's persistent `~/.soldr/sdk/windows-msvc/clang-resources//`, which holds `compiler-rt-input/`, `package/` and a `.complete` marker (that's the layout on a dev machine). The persistent runner home survives between jobs. A job killed or cancelled during that step (09:41 had a cancelled run on dell-fsx3mn2-1) can leave the directory without `.complete`. Every later job then tries to rename a fresh extraction onto the non-empty directory and gets ENOTEMPTY. Hosted runners start with an empty home, so they never see it.

What would fix it

  • Now: clear the partial `clang-resources/` directories (no `.complete`) in the Dell runner homes, or the whole `~/.soldr/sdk/windows-msvc/clang-resources`.
  • Lasting: soldr should treat an existing directory without `.complete` as stale (remove it under the lock and extract again) rather than fail.

The PR that extracts obs_get_video (#5419) is waiting on this; it is green on its PR run.

Activity

  1. added
    bug
    ci
    on Nov 21, 2026
  2. rdoupe commented on Nov 21, 2026

    @rdoupe
    CollaboratorAuthor

    Found the cause and reproduced it locally; my guess in the issue body (compiler-rt) was wrong.

    The failing step is soldr's C/C++ driver writer, not the compiler-rt extraction (compiler-rt prints "trust: verified" only after it has already succeeded). write_drivers in soldr 0.9.54 returns early only when <SOLDR_CACHE_DIR>/bin/cc-driver/v2/<target>/<digest>/.complete exists. Otherwise it renames a fresh staging tree onto that directory, and if the directory is already there and not empty the rename fails with ENOTEMPTY. So a driver directory that has lost its .complete breaks every later Windows cross job on that cache.

    Reproduction with soldr 0.9.54 and a fresh SOLDR_CACHE_DIR: build once (passes), delete the driver dir's .complete and the clang-resources/<id> dir, build again. The output is the same as the Dell runs:

    soldr: trust: verified compiler-rt/21.1.5/windows-x64/bundle.tar.zst sha256=f5da2d73...
    soldr: IO error: Directory not empty (os error 39)
    

    Run 44955283199 (22:10, dell-jw22zc3-obs-rust-1) failed the same way, so all three Dell slots I've seen are affected.

    Nothing in obs-studio needs to change. #5419 is still in the queue and gets ejected each time the selector picks a Dell runner.

  3. zackees commented on Nov 21, 2026

    @zackees
    Member

    Coordinator (2026-11-21 23:05Z): I applied the runner-side fix from rdoupe's diagnosis.

    • dell-jw22zc3: 15 cc-driver/v2/<target>/<digest> directories had no .complete (x86_64-pc-windows-msvc, aarch64-pc-windows-msvc and aarch64-apple-darwin), across obs-rust-1..3 and dyn-obs-rust-1..5. All were written at 00:01Z, before soldr wrote .complete. I moved them, not deleted them, to /var/cache/obs-runner/quarantine-5420/ (same tmpfs). I skipped any directory touched in the last 30 minutes, and none were. A rescan finds no driver directory without .complete.
    • dell-fsx3mn2: none found.

    The lasting fix is forge-ci/soldr#4185. Leaving this open until a Windows cross job passes on a Dell slot; #5419 in the queue should be the next one.

  4. zackees commented on Nov 22, 2026

    @zackees
    Member

    Verified after the runner cleanup: merge-group run 44964965909 (#5419) passed every Windows cross job on the Dell slots that were failing, including Tier 2 Link Check (win-x64) on dell-jw22zc3-dyn-obs-rust-3 and Rust Cross Lint (x86_64-pc-windows-msvc) on dell-jw22zc3-dyn-obs-rust-2. No ejection since. Closing. The lasting fix (soldr replaces a driver directory that has no .complete) is forge-ci/soldr#4185. Once a soldr version with it is pinned, /var/cache/obs-runner/quarantine-5420/ on dell-jw22zc3 can be deleted.

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

    bugci

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions