tools/tests/test_publish_quest_apk.py and test_release_quest_apk.py fail: run-root refuses, with no work root set
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/run_tool_tests.py and the run-root calls in tools/tests/test_publish_quest_apk.py and tools/tests/test_release_quest_apk.py to see which checkout the make command uses and how its environment is set. First run both files with NEVR_RUNTIME_WORK_ROOT pointing to a scratch directory; the issue reports that this makes them pass. Then make the test or run-root call set the work root, and confirm both files pass.
Written by the indexing model from the issue text.
Description
Evidence at d082ef2e3
- A run of the two files in the release-base worktree:
python3 tools/run_tool_tests.py tools/tests/test_publish_quest_apk.py tools/tests/test_release_quest_apk.pygives15 failed, 98 passed(exit 1) in the base log. The base'stest_publish_quest_apk.pyaccounts for 14 of the failures andtest_release_quest_apk.pyfor 1 (its test attools/tests/test_release_quest_apk.py:71). - Each failure's assertion names the same cause. The base log has 11 lines of
work_root.RunRootRefused: run-root make publish-quest-apk: run-root: NEVR_RUNTIME_WORK_ROOT is not set and this is not a git checkout, so there is no default work root: set NEVR_RUNTIME_WORK_R...(read withgrep -aon the log). - The same two files fail the same way on the branch tip (the quick check of tree 6beeef24:
pytest:test_publish_quest_apk (exit 1),pytest:test_release_quest_apk (exit 1)).
Not shown
- Why the test's
makeruns outside a git checkout while the test runs in one. The run-root tool decides the work root from the checkout it is started in; the test's copy or environment is not read here. - Whether these two files ever passed on the release line.
Falsifier
Both files pass with NEVR_RUNTIME_WORK_ROOT set to a scratch directory in the environment of the run. If they still fail with it set, the cause is not the work root.
Work
- Read
tools/run_tool_tests.pyand the test'srun-rootcall. Find which checkout themakeruns in and what it sees for the work root. - Test first: run the two files with
NEVR_RUNTIME_WORK_ROOTset to a scratch directory, and record the result. The falsifier decides whether the rest of the steps apply. - Make the test set its work root (or the run-root call pass one) so the
makeruns in a directory where the default is defined. Both files then pass.
- 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