Skip to content

docs(repo): record known issues and refresh the quick-start run - #179

Merged
TN019 merged 13 commits into
mainfrom
docs/known-issues
Dec 1, 2026
Merged

TN019 merged 13 commits into
mainfrom
docs/known-issues

Conversation

@TN019

@TN019 TN019 commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Why

Two problems found after 1.0.0 need to be written where operators look, with workarounds: a gate whose --hub names a host stalls on ticket-list downloads when DNS does not answer, and host-side scripts fail on root-owned files on Docker Engine for Linux. The quick-start sample output in the READMEs also no longer matched what the walk-through prints.

What changed

  • CHANGELOG.md and Chinese version, under Unreleased, Known issues: with a host name in --hub, the ticket-list download resolves it through libcurl on the scan loop, so an unresponsive DNS server stalls scans until the system resolver gives up (about 20 seconds with two unresponsive name servers), again with each 20-second download, and stopping the gate waits too; configure --hub with an IP address. Root-owned build/ and lab/runtime/ are fixed with sudo chown -R "$USER" build lab/runtime.
  • READMEs, "How the parts fit": the ticket-list download is the exception to the 300 ms hub request limit. "Build and test": hub_integration and hub_link_logs need name servers that answer or refuse; the host-side scripts affected by root-owned files are listed, and Docker Desktop is not affected.
  • READMEs, quick start: the sample output is replaced with a run of scripts/quick-start.py from this tree. It now shows the south gate's own reason=hub_rejected line and connections from the once-a-second link check, and a new paragraph explains both.

How to verify

Requires Docker. From the repository root:

./scripts/dev.sh build debug
./scripts/dev.sh shell
python3 scripts/quick-start.py build/debug/gated-test build/debug/gate-hub-test

Expect north: ACCEPT, south: REJECT, north, hub stopped: ACCEPT and log lines of the same kinds as the README; timestamps, ports and the number of link-check connection lines differ between runs. Check that the English and Chinese READMEs and changelogs say the same. No code changes.


背景

1.0.0 发布后发现两个问题,需要连同绕行办法写在运维人员会看的地方:--hub 写的是主机名时,DNS 不应答会让闸机下载票单时卡住;在 Linux 版 Docker Engine 上,宿主机脚本会碰到属于 root 的文件。README 里快速开始的示例输出也和演练脚本实际打印的不一样了。

改动

  • CHANGELOG.md 及中文版,在“未发布”下新增“已知问题”:--hub 为主机名时,票单下载在扫码循环里由 libcurl 解析主机名,DNS 不应答就会让扫码一直等到系统解析器放弃(两个名字服务器都不应答时约 20 秒),每 20 秒一次的下载都会重演,停止闸机也要等;办法是给 --hub 配 IP 地址。build/ 和 lab/runtime/ 属于 root 的问题,用 sudo chown -R "$USER" build lab/runtime 解决。
  • README 的“各部分如何协作”:说明票单下载是 hub 请求 300 ms 上限的例外。“构建与测试”:hub_integration 和 hub_link_logs 需要会应答或会拒绝的名字服务器;列出受 root 文件影响的宿主机脚本,并说明 Docker Desktop 不受影响。
  • README 的快速开始:示例输出换成用这份代码运行 scripts/quick-start.py 的结果。新的输出里有南门闸机自己的 reason=hub_rejected 一行,以及每秒一次连接检查产生的连接记录,新增一段解释这两点。

怎么验证

需要 Docker。在仓库根目录运行:

./scripts/dev.sh build debug
./scripts/dev.sh shell
python3 scripts/quick-start.py build/debug/gated-test build/debug/gate-hub-test

应看到 north: ACCEPT、south: REJECT、north, hub stopped: ACCEPT,以及和 README 同类的日志行;时间戳、端口和连接检查产生的行数每次都不同。核对中英文 README 和更新记录内容一致。没有代码改动。

Ingrid Larsen and others added 13 commits October 30, 2026 16:00
This review covers the north entrance ticket list failure, the lab reproductions, recovery work, and remaining limitations.
Clarify when extra tickets are needed to reproduce the sender hold.
This decision preserves path-MTU feedback and makes each gate's installed list visible. It also aligns the hub's served and decision lists and bounds the TLS status listener.

Co-authored-by: Yuki Tanaka <yuki.tanaka@elsworne.example>
Add the north entrance session and update the device TLS outputs and the
offline-report session from the release code, so the committed outputs match
1.0.0.
monitoring-check.sh generates a temporary Grafana password when none is
set, but only after waiting for every gate to install its ticket list.
That wait ran docker compose exec through lab/monitoring.yaml, which
refuses to load without the password, so every attempt failed and the
check reported that a gate had not installed its list. Wait through the
venue compose file instead; the gates are venue services.
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.
@TN019

TN019 commented Dec 1, 2026

Copy link
Copy Markdown
Contributor Author

Yuki Tanaka · reviewer

Why does the hub resolver not cover the ticket-list download?


为什么 hub 的解析进程管不到票单下载?

@TN019

TN019 commented Dec 1, 2026

Copy link
Copy Markdown
Contributor Author

Mateo Rossi · author

The resolver keeps the address for hub requests, but the download hands the host name to libcurl, which resolves it itself on the scan loop. Until that changes, an IP address in --hub avoids the lookup.


解析进程负责 hub 请求所用的地址,但下载时把主机名直接交给 libcurl,由它在扫码循环里自己解析。在改掉之前,给 --hub 配 IP 地址就能绕过这次解析。

@TN019

TN019 commented Dec 1, 2026

Copy link
Copy Markdown
Contributor Author

Noah Williams · reviewer

Is the 20-second figure a timeout we set?


20 秒是我们设置的超时吗?

@TN019

TN019 commented Dec 1, 2026

Copy link
Copy Markdown
Contributor Author

Mateo Rossi · author

No. It is how long the system resolver takes to give up with two unresponsive name servers in the default resolv.conf, so the changelog gives it as approximate. hub_integration and hub_link_logs time out in the same environment.


不是。那是默认 resolv.conf 里两个名字服务器都不应答时,系统解析器放弃前所用的时间,所以更新记录里写的是约数。在同样的环境里,hub_integration 和 hub_link_logs 也会超时。

@TN019
TN019 merged commit e10e1f2 into main Dec 1, 2026
5 checks passed
@TN019
TN019 deleted the docs/known-issues branch December 1, 2026 03:34
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