Windows TCC VTOOLS_NO_CACHE ownership check leaves .v-toolcache-stage directory after compiler exits
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 20/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Domain
- compilers, testing-qa
Research direction
Start with test_ownership_compilations_honour_vtools_no_cache in cmd/v/tests/tool_no_cache_test.v, around line 144, where the .v-toolcache-stage- leftover is asserted. Reproduce on native Windows with a dedicated VTMP, then trace which subprocess creates the stage and when it is removed. Done means the test passes on Windows TCC and GCC with no stage folder left behind, and the invariant is kept rather than bypassed.
Written by the indexing model from the issue text.
Description
Actually executed master CI failure (not parent workflow status): run 44894651647 / job 136822970810, SHA 5e0c913e6..., Windows TCC tools (default shard 1), completed 2026-11-21 13:17 UTC. Tool tests: 46 passed, 5 skipped, 1 real failure (cmd/v/tests/tool_no_cache_test.v). No job timeout or intentionally failing fixture.
In test_ownership_compilations_honour_vtools_no_cache at line 144, the two original nested @VEXE -ownership -check invocations under a private VTMP and VTOOLS_NO_CACHE=1 reach the cleanup assertion, but os.ls(vtmp).filter(it.starts_with('.v-toolcache-stage-')) is not empty:
Left: ['.v-toolcache-stage-0-984-1795266743060000000-0']
Expected: []
temporary ownership compiler left in:
D:\vbb6a87\tmp\tsession_1594_01M7Z3P9AE5Y1JSW8979WXR6Q8\v_ownership_no_cache_3404\shared\vtmp
First/last confirmed: 2026-11-21 13:12–13:17 UTC, SHA 5e0; this is a distinct cleanup/ownership-tools regression, not the earlier #30677 diagnostic about unwritable cache and not the VSH cached-executable timestamp mismatch. Source cmd/v/tests/tool_no_cache_test.v from failing ref to current master 42389d1 is unchanged (blob from Nov18 85e48d7). The test asserts both positive/negative ownership diagnostics and that no stage folder or shared tool cache remains. Do not bypass that invariant.
Next action: On native Windows TCC and GCC repeat the original test with a dedicated VTMP; trace which subprocess creates the stage, whether the stage contains a built executable or partial artifact, exactly when the temporary staged path is removed, and Win32 deletion errors, file handles or delayed child exits. Distinguish a failed rename, open handle, path conversion and racing cleanup; check other current cmd/v compiler changes and overlapping open PRs before a minimal process-lifetime-safe cleanup fix. Then ./v self, ./v fmt, focused test, and original Windows tools integration on the patched revision. No local V/Windows toolchain or corrected-run validation here; unresolved.
[!NOTE]
You can use the 👍 reaction to increase this issue's priority.
[!NOTE]
You can use the 👍 reaction to increase the issue's priority for developers.Please note that only the 👍 reaction to the issue itself counts as a vote.
Other reactions and those to comments will not be taken into account.
- Dominant language
- V
- Stars
- 38.1k
- Forks
- 2.3k
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 682
Getting set up
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from vlang/v
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
Maintainers usually reply within 1 day
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
swc-project/swc-next-issues#817 ·
-
Magma mode: div:=, mod:= and the other keyword assignments (join:=, meet:=, diff:=, sdiff:=, and:=, or:=, xor:=) are refusedPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
sagemathinc/sagebrush#1683 ·
Maintainers usually reply within 1 day
-
microts: a model local that every branch assigns raises unused_assignments in the generated RustOpenbug
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
pocket-stack/pocketjs#756 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
leanprover/lean4#16681 ·
Maintainers usually reply within 1 day
-
bot-triaged module: aotinductor module: compile-time module: inductor module: performance module: rocm oncall: export oncall: pt2 triaged
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 1 day