tools/internal/questwiring: justfileRecipe cannot find a recipe written name: dependencies
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 79/100
Research direction
Read tools/internal/questwiring/combat_page_check_test.go and search for existing justfileRecipe callers. Check how the helper identifies recipe headers, then add coverage for configure and for rejecting a prefix-only name; update observe_preset_test.go to use the helper. Done when dependency recipes are found, prefix matches are rejected, and the related tests pass.
Written by the indexing model from the issue text.
Description
The Go helper justfileRecipe in tools/internal/questwiring cannot find a recipe whose header is written name: dependencies, so a test that reads such a recipe fails with a false "has no recipe" message.
Evidence at fe99a482a
tools/internal/questwiring/combat_page_check_test.go:291matches a recipe header only when the line isnamefollowed by a space, or exactlyname::
if strings.HasPrefix(line, name+" ") || line == name+":" {- The recipe
build-android-observe: _build-guard _require-ndk go-toolsis in the justfile at the commit that adds it (the #2875 seam). A test that callsjustfileRecipe(t, "build-android-observe")on that commit fails withjustfile has no recipe build-android-observe, although the recipe is there. - The same header form is used by other recipes, for example
configure: _cold-notice _build-guard ...(justfile, theconfigurerecipe), so the defect is not specific to the new recipe. - The new test file works round it with its own lookup,
observeRecipeTextintools/internal/questwiring/observe_preset_test.go, which matchesname:as a prefix.
Not shown
- Whether any existing test calls
justfileRecipeon aname: dependenciesrecipe. None was searched for; a search ofjustfileRecipe(t, "names is the next step. - Whether the helper's author meant the
name:match to take dependencies. Its comment says it reads "the header line and the indented body".
Falsifier
A test that calls justfileRecipe on a recipe written name: dependencies and gets its header and body.
Work
- Make the header match accept
name:followed by a space or the end of the line, andnamefollowed by a space (the parameter form), incombat_page_check_test.go. - Add a case that finds
configure(a dependency form) and a case that refuses a name that is only a prefix of another recipe's name (for examplebuild-androidagainstbuild-android-observe). - Replace
observeRecipeTextinobserve_preset_test.gowithjustfileRecipeonce step 1 lands.
Found while building the observe preset (#2875). The helper fails loudly, so no test passes silently on it.
- 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