docs(cli): the round-trip sweep covers 2,203 models, not 2,204 of all of them #2157

Merged
jaylouisw merged 1 commit from docs/1119-1317 into main 2026-11-19 13:41:30 +00:00
Owner

docs/CLI.md (the hostname warning paragraph) says the round-trip guard "replays all 2,204 models that print a running-config".

What the code does. test/config-roundtrip.test.js prints its own coverage: the sweep covered the catalogue (2203 models). It reaches that number after if (!ports.length) continue; -- only specs with a non-parent Ethernet port can be seeded, so the sweep never types at the 153 models that have none. The catalogue is 2,356 specs, 2,203 of them with an Ethernet port.

So the sentence was wrong twice: the count (2,204) and the population ("all models that print a running-config" -- every spec prints one; the sweep covers the ones it can seed a port on).

Change. The sentence now names the 2,203 models with an Ethernet port, which is what the guard replays and the number it prints.

Guards after the edit: syntax-check 453 files OK; docs-show-commands 7/7 (59 forms, 118 commands, 74 refusals); docs-cli-transcript 9/9; help-completeness 8/8 (102 advertised commands, 19 mechanisms, 16 show); doc-catalog-counts 43 checks; config-roundtrip 2203 models swept, 0 failures.

Docs-only: no code changed. The comment at test/hostname-illegal-characters.test.js:112 still says 2198 and is left for a code-stream touch.

`docs/CLI.md` (the `hostname` warning paragraph) says the round-trip guard "replays all 2,204 models that print a running-config". **What the code does.** `test/config-roundtrip.test.js` prints its own coverage: `the sweep covered the catalogue (2203 models)`. It reaches that number after `if (!ports.length) continue;` -- only specs with a non-parent Ethernet port can be seeded, so the sweep never types at the 153 models that have none. The catalogue is 2,356 specs, 2,203 of them with an Ethernet port. So the sentence was wrong twice: the count (2,204) and the population ("all models that print a running-config" -- every spec prints one; the sweep covers the ones it can seed a port on). **Change.** The sentence now names the 2,203 models with an Ethernet port, which is what the guard replays and the number it prints. Guards after the edit: syntax-check 453 files OK; docs-show-commands 7/7 (59 forms, 118 commands, 74 refusals); docs-cli-transcript 9/9; help-completeness 8/8 (102 advertised commands, 19 mechanisms, 16 show); doc-catalog-counts 43 checks; config-roundtrip 2203 models swept, 0 failures. Docs-only: no code changed. The comment at `test/hostname-illegal-characters.test.js:112` still says 2198 and is left for a code-stream touch.
docs(cli): the round-trip sweep covers the 2,203 models with an Ethernet port, not 2,204 of all of them
All checks were successful
CI / Classify the change (pull_request) Successful in 10s
PR rebase / Rebase onto main and arm auto-merge (pull_request) Successful in 9s
CI / Server smoke test (pull_request) Has been skipped
CI / Docker build (pull_request) Has been skipped
CI / Test (Node 20) (pull_request) Successful in 51s
CI / Test (Node 18) (pull_request) Successful in 55s
CI / Test (Node 22) (pull_request) Successful in 48s
CI / Arm auto-merge (pull_request) Successful in 3s
d107b5c64d
forgejo-actions scheduled this pull request to auto merge when all checks succeed 2026-11-19 13:21:12 +00:00
jaylouisw deleted branch docs/1119-1317 2026-11-19 13:41:32 +00:00
Sign in to join this conversation.
No description provided.