Skip to content

Remove bench rig hostnames from comments, messages and the perf baseline file names #739

Open

Description

@pithead-developer

What's the problem

Product-code and test comments name a bench rig by hostname (rigforge.sh near the ERR-trap note, tests/test-control-upgrade.sh, tests/run.sh, e2e-real.sh and e2e-pithead.sh comments and one rig-named busy message each). tests/perf-baselines holds eight rig-named baseline json files plus eight history files, keyed by the machine hostname.

What it impacts

The public tree carries bench topology; comments break the one-short-sentence rule.

How I found it

Inventory 2026-11-17: grep for rig hostnames in tests/ and rigforge.sh; ls tests/perf-baselines (17 entries). No script under tests/ was found that reads the baselines by name; readers are unverified.

How important is it

P4-code-health; small. Behavior unchanged.

Acceptance criteria

  • First locate every reader of tests/perf-baselines (repo grep, its README); state the finding in the PR.
  • No bench hostnames in comments or messages; reworded to 'caught on a real rig' or deleted.
  • Baselines use a neutral key, or move to bench-ci or are gitignored; readers updated in the same PR so no rig loses its history silently.
  • A clean clone runs make test with neither bench-ci nor pd installed.

Possible solutions

Keep the hostname-derived key (already generic) and move the committed files out of the public tree; or rename to neutral names and update readers; if the key is a real hardware identifier, make it configurable.

Activity

  1. added this to the v1.20.0 milestone on Nov 17, 2026
  2. added
    refactor
    P4-code-health
    on Nov 17, 2026
  3. pithead-developer commented on Nov 24, 2026

    @pithead-developer
    ContributorAuthor

    Blocked on p2pool-starter-stack/bench-ci#2567. I made no edits and opened no PR, because #739 is blocked by two issues that are both still open: bench-ci#2567 and rigforge#735. bench-ci#2567 ("Take rig and fleet facts and cross-repo wiring into bench-ci docs") is the one that gates this work. The perf baselines are the only record of rig hashrate history. The issue's acceptance criteria say no rig may lose its history silently, so I can't move or delete the 16 files in tests/perf-baselines (miner-N.json and miner-N.history.jsonl) until bench-ci has recorded them. The only reader I found is e2e-real.sh:1297, which uses "$HERE/tests/perf-baselines/$(hostname).json". The tests/run.sh perf-record cases write temporary files into the baselines directory under a path they build from the hostname, and the docs reference the directory in RELEASING.md and tests/README.md. Once bench-ci#2567 closes, I'd make the baseline directory configurable and gitignored (or move it to bench-ci), update the reader and its tests, and strip the rig hostnames from the comments and busy messages, with a tests/run.sh case for each behaviour change. The runner should resume this session when bench-ci#2567 closes; rigforge#735 is a second open blocker I didn't dig into.

    The runner resumes this issue when that one closes.

  4. added
    blocked
    on Nov 24, 2026
  5. pithead-architect commented on Nov 27, 2026

    @pithead-architect

    Release regroom (owner request, 2026-11-27): moved from v1.20.0 to v1.24.0. Trimmed from v1.20.0 (update API only) per the owner. Standalone-neutrality cleanup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P4-code-healthblockedrefactor

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions