updatewiring: two tests fail at the release base (engine check text and Quest toolchain step)

Open
#2,884 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
56/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
cpp, go

Research direction

Start by running go -C tools test -count=1 ./internal/updatewiring at the release base and record the exit code. Then bisect the history of tools/internal/updatewiring/update_worker_test.go, engine_check.cpp, and the Quest workflow to find when both assertions stopped matching. Update the stale assertions or the code they describe, and rerun the package; done means it exits 0.

Written by the indexing model from the issue text.

Description

backlog bug

Evidence at d082ef2e3

  • go -C tools test -count=1 ./internal/updatewiring (run through the gate in the release-base worktree) exits 1 with two failing tests: --- FAIL: TestTheCoreIsGivenTheNevrRootAndNothingElse (tools/internal/updatewiring/update_worker_test.go:184: engine_check.cpp: no match for json config = \{\{"platform", env\.platform\}, \{"nevr_root", env\.root\}\};) and --- FAIL: TestATagRunLinksTheCoreIntoTheQuestRuntime (update_worker_test.go:418: the quest job's toolchain step is not the core-library job's with "--target aarch64-linux-android").
  • The same package run through the gate on the release line's branch tip (tree 729b667b) exits 1 with the same two failures.
  • test-changed skips go:internal/updatewiring as a heavy id, so the quick check does not run it.

Not shown

  • Which commit broke the two assertions. The base is the first commit checked; older history was not bisected.
  • Whether the two assertions still describe the engine check and the Quest workflow as they are in the tree now.

Falsifier

The package passes at a commit where the engine check and the Quest workflow match the test's expected text. If the failures persist at a commit whose check and workflow text match, the test is wrong, not the code.

Work

  1. Bisect the two assertions over the history of tools/internal/updatewiring/update_worker_test.go and the two files they read (engine_check.cpp and the Quest workflow), to find where they stopped matching.
  2. Test first: the package fails at the base; record that exit code.
  3. Fix the assertion or the code the assertion describes, whichever the bisect shows is the stale one, and rerun the package. It must exit 0.
Dominant language
C++
Stars
3
Forks
5
Avg merge
4h 37m
Merged PRs (30d)
524

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from EchoTools/nevr-runtime

All issues in EchoTools/nevr-runtime

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.