feat(tools): the PCVR debug-run reader takes the log's own window lines when there are no step marks

Open
#2,908 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
48/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
go
Domain
tooling

Research direction

The issue says the Go reader lives in the test seat's scratch, not this repository, and mentions ADR 0044 as context for where it might belong. Start by locating the reader and its existing step-marks mode, then inspect the fixture and tests for log windows and shot lines. Done means the reader reports log-derived windows with per-window shot counts when marks are absent, still refuses logs with neither input, and preserves the existing mode.

Written by the indexing model from the issue text.

Description

backlog enhancement

The reader for a PCVR debug run's log builds its windows only from step marks, so a run with no marks (the tester ran the page's commands by hand) is refused and its log is read with one-off scripts.

Evidence at 80e8ec993

  • A weapon run of a PC client with a headset produced a main log of 7,541 rows and no step-mark file. The reader's own entry point refused it: REFUSED: empty log (7541 rows) or no step marks (0).
  • The same log holds the game's own window lines, one set every 10 seconds: mc window, script slot window, script activity and pose reader window (20 windows), and six shot fired lines with their times. Three throwaway jq programs turned them into a per-window table (all-slot call rate, hand-reader calls, the busiest scripts and their slots, shots per window) and found, in the six windows that hold a shot, a raised slot call rate and two scripts that enter the busiest list only there.
  • The reader (a Go tool kept in the test seat's scratch, not in this tree) takes <main-log.jsonl> <steps-marks.txt|debug-start.txt> and refuses when it finds no marks.

Not shown

  • That every observer build writes the same window lines (the lines read here are the ones the PC scenario observers of this release write).
  • Whether the tool should live in tools/ as a Go command (ADR 0044) before it grows this mode.

Falsifier

A run of the reader on a log with window lines and no marks that prints the per-window table and says in its first line that the windows are the log's own, with the shots as markers, shows the issue is fixed; a log with neither marks nor window lines is still refused, naming both.

Work (tests first)

  1. A test on a fixture log with window lines and shot lines and no marks: the table has one row per window, a shot count per window, and the first line says "windows from the log's own lines".
  2. A test that a log with neither is refused with a line that names both missing inputs.
  3. Port the three jq programs' columns into the reader; keep the step-marks mode as it is.

Related: #2875 (the in-game harness the runs belong to).

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.