fix(tools): a whole Go run started by calling test-go-tools directly leaves no suite-run record, takes no lock and sends no alert

Open
#2,905 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
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
go

Research direction

Read AGENTS.md under “Builds,” the test-tools recipe in justfile, and tools/cmd/test-go-tools/main.go; compare its whole-suite detection and lock handling with tools/cmd/suite-run. Start by adding the requested fake-module test for a test-go-tools call with no package argument. Done means the call either records suite_start and suite_end and alerts through suite-run, or refuses with a line naming the rule, as decided by the owner.

Written by the indexing model from the issue text.

Description

backlog bug

A whole run of the tools' Go suite started by calling test-go-tools directly is not a recorded whole-suite run: no suite-run.jsonl record, no alert to the owner, no machine-wide lock.

Evidence at 7a75425ef

  • AGENTS.md ("Builds"): the whole suites are the owner's alone, and each run of one is recorded in <work root>/test-runs/suite-run.jsonl by tools/cmd/suite-run, with an alert when an agent started it.
  • justfile, recipe test-tools: a whole run is routed through build/go-tools/suite-run -recipe test-tools -- just test-tools ... before it reaches test-go-tools. Only that route writes the suite record.
  • tools/cmd/test-go-tools/main.go: test-go-tools -C tools with no package argument and no Python command runs the whole Go half of the module. It takes the machine-wide lock only if hasPy && wholeSuite(pyCmd), so the Go-only form takes none. Its own record is go_start and go_end in test-runs/tools-tests/runs.jsonl plus a stream file; it writes nothing to suite-run.jsonl and calls no alert.
  • Observed: a mutation-testing driver passed an empty package list to test-go-tools -C tools three times by mistake. Each run printed 2115 tests passed, 15 skipped or a failure count across the whole module. runs.jsonl holds the three go_end records. The last line of suite-run.jsonl was from 15 November, and no alert was sent.

Not shown

  • That another seat or script has started a whole Go run this way before.
  • Whether the lock or the alert should apply to the Go-only form, or whether the Go-only form with no package argument should be refused.

Falsifier

A test-go-tools call with no package argument and no Python command that appends a suite_start and suite_end record to suite-run.jsonl and alerts as suite-run does, or is refused with a line that names the rule, shows this is wrong.

Work (tests first)

  1. A test that runs test-go-tools with no package argument against a fake module and shows a record in suite-run.jsonl (or the refusal).
  2. Route the Go-only whole run through suite-run, or refuse it, whichever the owner decides.
  3. One mutant per changed line.

Related: #2229 (the same tool disagrees with the runner about which argument forms are whole-suite runs).

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.