test-auth-unit: the default Wine GTest prefix is shared, so an account that does not own it cannot run the GTests
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 76/100
Research direction
Read tools/lib/wine_prefix.sh and its helper test, starting with wine_prefix_ensure and the default path selection. Add a test where another account owns the default prefix, then change the helper and document the WINEPREFIX override in the recipe header. Run the helper test and just test-changed as the owning and another account; done means both runs reach the GTests.
Written by the indexing model from the issue text.
Description
Evidence at 56c77f4aa
tools/lib/wine_prefix.sh:59: withWINEPREFIXunset, the default prefix is$NEVR_RUNTIME_WORK_ROOT/wine-prefix/gtest. One directory under the shared work root serves every account that runsjust test-auth-unitorjust test-changed.- The directory is owned by another account. Running
just test-changedas a different account, withWINEPREFIXunset, fails the two GTeststest_equip_initandtest_equip_init_rules. The output readswine: '<work root>/wine-prefix/gtest' is not owned by you, thentest-auth-unit: FAIL — build/mingw-release/bin/test_equip_init.exe exited 1. - The helper's own check (
wine_prefix_ensure,tools/lib/wine_prefix.sh:45) passes this path through: it does not check ownership, so the refusal comes from Wine, after the recipe has started the test. - Running the same recipe with
WINEPREFIXset to a directory the running account owns passes all 41 tests ofjust test-changed. The helper's header (tools/lib/wine_prefix.sh:10) says a caller-set prefix wins. - Related: #2813 is a different refusal of another account's files (a Go test's
safe.directory).
Not shown
- Whether every account other than the owner hits this refusal, or only the accounts that run the test recipe.
- Whether Wine's ownership check is the only reason the prefix is refused. Only the refusal text was read, not Wine's source.
Falsifier
A run of just test-changed by an account that does not own <work root>/wine-prefix/gtest, with WINEPREFIX unset, that passes test_equip_init and test_equip_init_rules and prints no is not owned by you line.
Work
- Test first: a case in the helper's test that makes the default prefix directory owned by another account and asserts that
wine_prefix_ensureeither picks a per-account prefix or stops with a line that namesWINEPREFIX. The case fails on the current helper. - Change
tools/lib/wine_prefix.shso the default prefix is per account (for example<work root>/wine-prefix/<account>/gtest), or so the refusal namesWINEPREFIXbefore Wine runs. - Name the
WINEPREFIXoverride in the recipe header, with the rule that the prefix must have az:link to/. - Rerun
just test-changedas the owning account and as another account; both must reach the GTests.
- 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