test_asset_cache: ALinkAtAnIndexedNameIsRemovedAsALinkAndItsTargetKept fails on the release tip (blobsEvicted 0, the link remains)
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
Research direction
Start with src/runtime/tests/test_asset_cache.cpp, especially AssetCache.ALinkAtAnIndexedNameIsRemovedAsALinkAndItsTargetKept, and trace Evict in src/runtime/patch/asset_cache.cpp:561-635 into nevr_owned::RemoveEntry in src/core/owned_remove_win32.cpp. First reproduce with just test-auth-unit test_asset_cache under the described Wine setup, then log the index names, link attributes result, and removal outcome. Compare with a second Wine prefix or native Windows; done means the cause is identified and either the removal is fixed with the mutant proof or the test skips with a named, test-checked reason.
Written by the indexing model from the issue text.
Description
Evidence at 59710727b
The release tip fails one case of the GTest binary test_asset_cache, built by just test-auth-unit test_asset_cache (mingw-release, run under Wine with a Wine prefix that has a z: drive, owned by the seat that ran it).
Ran on a worktree of 59710727b: just test-auth-unit test_asset_cache, exit 1:
[ FAILED ] AssetCache.ALinkAtAnIndexedNameIsRemovedAsALinkAndItsTargetKeptsrc/runtime/tests/test_asset_cache.cpp:453:r.blobsEvictedis 0, expected 1.src/runtime/tests/test_asset_cache.cpp:454:Exists(link)is true, expected false.[ PASSED ] 32 tests.(the other cases of the binary pass)
The same two assertions with the same values fail on aa70ceba4 (branch nevr-runtime-one/2903-per-target-piece, parent 59710727b), in a run of the same target under the same Wine prefix.
The case does not skip: CreateSymbolicLinkW returns success under that prefix, so the case runs past its GTEST_SKIP branch (src/runtime/tests/test_asset_cache.cpp, the case ALinkAtAnIndexedNameIsRemovedAsALinkAndItsTargetKept).
Code the case exercises, read at 59710727b:
src/runtime/patch/asset_cache.cpp:561-635(Evict): each listed name is sized and stamped withGetFileAttributesExW(line 595), then a blob leaf is removed withnevr_owned::RemoveEntry.src/core/owned_remove_win32.cpp:176: the entry is opened withallow_linktrue, so the link check at:107does not refuse this entry.
Not shown
- Why
Evictleaves the link. The run does not show whether the name is read from the index, whetherGetFileAttributesExWon the link returns the target's size, or whatRemoveEntryreturns for the entry. No line of the run prints them. - Whether the environment causes it. The case passes on no run in this evidence, and it has not been run on native Windows or under a second Wine prefix.
- Whether the case passed on any earlier tag. Not measured.
Falsifier
The same case passing on 59710727b under a Wine prefix made by a different user, or on native Windows, would show the failure depends on the environment, not on Evict. A run that prints each RemoveEntry result for the link as anything but kRemoved would point at the code path rather than the environment.
Work
- Under the same prefix kind, print for this case only: the names
Evictreads from the index, theGetFileAttributesExWresult for the link, and theRemoveEntryoutcome. Read each line against the code at the three places above. - Run the same case on a second prefix (another user's or a fresh one) and, if available, on native Windows, at
59710727b. - If the code is wrong, fix it and add the failing case's mutant proof. If the environment is the cause, the case must skip with a named reason decided by its own check (the link creation it already makes), never a silent skip, and the reason is written in the test.
This is a red on the release line that is not the cause of #2903; #2903 is not blocked on this issue's fix.
- Dominant language
- C++
- Stars
- 3
- Forks
- 5
- Avg merge
- 4h 37m
- Merged PRs (30d)
- 524
Getting set up
- No 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 EchoTools/nevr-runtime
-
bug
Difficulty 1/5 1-3 hours Newbie friendliness 82/100
EchoTools/nevr-runtime#2912 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
EchoTools/nevr-runtime#2910 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
EchoTools/nevr-runtime#2909 ·
Maintainers usually reply within 1 day
-
build: the generated defaults header is written 0600, so a seat outside nevr-build cannot read itOpenbacklog
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
EchoTools/nevr-runtime#2901 · 1 comment ·
Maintainers usually reply within 1 day
-
backlog
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
EchoTools/nevr-runtime#2897 ·
Maintainers usually reply within 1 day
All issues in EchoTools/nevr-runtime
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
Maintainers usually reply within 1 day
-
category:port-update
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 2 days
-
bug-unconfirmed
Difficulty 1/5 Under an hour Newbie friendliness 75/100
Maintainers usually reply within 1 day
-
libc++
Difficulty 1/5 Under an hour Newbie friendliness 88/100
llvm/llvm-project#246508 ·
Maintainers usually reply within 1 day
-
good first issue help wanted phase:0 priority:P3 type:task
Difficulty 2/5 1-3 hours Newbie friendliness 67/100