Skip to content

docs(runs): keep drill and test outputs with their commits - #184

Merged
TN019 merged 10 commits into
mainfrom
docs/recorded-runs
Dec 1, 2026
Merged

TN019 merged 10 commits into
mainfrom
docs/recorded-runs

Conversation

@TN019

@TN019 TN019 commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Why

Several documents describe what a drill or test printed, but the full output stayed in the terminals of whoever ran it. Keep that output in the repository, next to the commit it ran on and the commands that produced it, so anyone can compare a new run with it.

What changed

  • New directory docs/recorded-runs/ with 90 files: one file per drill or single-test run, named <drill>-<date>.md, and test-suite-runs.md with one section per run of the debug test suite.
  • Each file starts with who ran it, the full commit it ran on (two commits where a defect run and a fixed run are kept together), the commands from the repository root, the environment where it matters, and what the output shows.
  • The output is copied as printed. The only lines left out are the leading time= field of log lines, vtysh Last update: lines, HTTP Date: lines, uname lines where the current script prints a different form, build progress lines and Docker Compose progress lines; each file says in English and Chinese which of these it leaves out. Where a few lines are shown instead of the whole run, the file says so.

How to verify

Every commit named in a header is on main:

grep -ho '`[0-9a-f]\{40\}`' docs/recorded-runs/*.md | tr -d '`' | sort -u |
  while read c; do git merge-base --is-ancestor "$c" main || echo "not on main: $c"; done

Pick a file, check out its commit and run its commands. Timings, process ids, ports and container ids differ from run to run; the other lines should match. No code changes.


背景

有些文档写了演练或测试打印了什么,但完整输出只留在跑它的人的终端里。把这些输出放进仓库,连同运行所在的提交和产生它的命令,谁都可以拿新的一次运行来对照。

改动

  • 新目录 docs/recorded-runs/,共 90 个文件:每次演练或单项测试运行一个文件,文件名为 <演练>-<日期>.md;test-suite-runs.md 按每次 debug 全套测试分节。
  • 每个文件开头写明谁跑的、运行所在的完整提交(缺陷运行和修复后运行放在一起时写两个提交)、从仓库根目录执行的命令、必要时的运行环境,以及输出内容。
  • 输出照原样复制。只省去这几类行:日志行首的 time= 字段、vtysh 的 Last update: 行、HTTP 的 Date: 行、现行脚本打印格式已不同的 uname 行、编译进度行和 Docker Compose 的进度行;每个文件用中英文各一句写明省了哪些。只列部分输出行的文件也会写明。

怎么验证

文件头里的每个提交都在 main 上:

grep -ho '`[0-9a-f]\{40\}`' docs/recorded-runs/*.md | tr -d '`' | sort -u |
  while read c; do git merge-base --is-ancestor "$c" main || echo "not on main: $c"; done

任选一个文件,检出它写的提交,照命令运行。耗时、进程号、端口和容器号每次都不同,其余各行应当一致。没有代码改动。

Mateo Rossi and others added 10 commits November 3, 2026 14:30
Two problems found after the 1.0.0 release are recorded as known issues
in the changelog and README, with their workarounds: a gate whose --hub
names a host waits on libcurl's own name lookup for every ticket-list
download when the DNS server does not answer, and host-side scripts
cannot write into the root-owned build/ and lab/runtime/ on Docker
Engine for Linux. The README also says which DNS behaviour the
hub_integration and hub_link_logs tests need.

The quick-start output in both READMEs is replaced with a run from the
current tree, which shows the gate's rejection diagnostic and the link
checks the April run did not.
The README and the simulator protocol named the gatepost-sim repository without linking it. Link it from both languages of each document; the protocol page also says that gatepost-sim implements the simulator side.
ADR 0012 said GATEPOST_TEST_META_WRITE_FAIL and GATEPOST_TEST_META_RENAME_FAIL were also present in the release binary. Both are read only under GATEPOST_TEST_BUILD, which CMake defines for the test targets, so the release gated never reads them. Correct both languages.
lab/offline-reports.sh is a bash script with pipefail, but both lab READMEs told readers to run it with sh. Say bash, and explain that the ACCEPT lines it prints come from each gate's whole container log, so a lab session with earlier scans shows more ACCEPT lines than reports from this run.
The Chinese README had a "扫描器监督与 systemd" heading above the paragraph on leaving the build container and using the simulator; the English README keeps that paragraph in Quick start without a heading, and scanner supervision is described under How the parts fit in both. Remove the heading so both languages have the same sections.
…rill outputs

Keep the output of the debug test suite runs, one section per run, and of the memory, scan order, storage, ticket sync and trust, protocol, UDP, offline upload, TLS, status, alert and uplink drills and tests, each with the commit it ran on and the commands that produced it.
…tputs

Keep the output of the admission race, lock order and hub load checks, the hub MAC and hub TLS tests, certificate expiry and renewal, the data-centre client certificate, gate list version and reply count drills, each with the commit it ran on.
Keep the output of the mapped reload, lookup locality, protocol, ticket budget, signed gate, fetch progress, north entrance, expired certificate and signal handler runs, each with the commit it ran on.
Keep the output of the venue and hub route, two-gate scan, DNS address change, provider routing, north entrance route, device certificate and TLS enforcement drills, each with the commit it ran on.
Keep the output of the data-centre sync host and season publish drills, each with the commit it ran on.
@TN019

TN019 commented Dec 1, 2026

Copy link
Copy Markdown
Contributor Author

Ingrid Larsen · reviewer

I spot-checked lock-order-helgrind, offline-offset-test and certificate-renewal: each commit in the headers is on main, and the omission sentences match the lines that are missing from the output. Why does the renewal file name someone outside the team?


我抽查了 lock-order-helgrind、offline-offset-test 和 certificate-renewal:文件头里的提交都在 main 上,省略说明和输出里实际少掉的行对得上。续签那份为什么写的是团队以外的人?

@TN019

TN019 commented Dec 1, 2026

Copy link
Copy Markdown
Contributor Author

Ben Carter · author

Fatima ran the renewal on site, following the runbook I wrote, and sent me the output, so the file names her as the one who ran it.


续签是 Fatima 在现场照我写的手册做的,输出是她发给我的,所以文件写明是她跑的。

@TN019

TN019 commented Dec 1, 2026

Copy link
Copy Markdown
Contributor Author

Ben Carter · author

The lock order file names two commits: the Helgrind line numbers of the defect run only match the commit before the fix, so the fixed run gets its own commit in the header.


锁顺序那份写了两个提交:缺陷那次 Helgrind 报的行号只和修复前那笔对得上,所以修复后的那次在文件头里单独写自己的提交。

@TN019

TN019 commented Dec 1, 2026

Copy link
Copy Markdown
Contributor Author

Noah Williams · author

Timings and container ids will not match a new run. Each header lists the kinds of lines that were left out, so the rest can be compared line by line.


耗时和容器号不会和新的运行一样。每个文件头都列出省去了哪几类行,其余的可以逐行对照。

@TN019
TN019 merged commit 909b0f4 into main Dec 1, 2026
5 checks passed
@TN019
TN019 deleted the docs/recorded-runs branch December 1, 2026 03:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant