Skip to content

docs(lab): run offline reports with bash and explain the counts - #182

Merged
TN019 merged 6 commits into
mainfrom
docs/offline-reports-bash
Dec 1, 2026
Merged

TN019 merged 6 commits into
mainfrom
docs/offline-reports-bash

Conversation

@TN019

@TN019 TN019 commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Why

lab/offline-reports.sh uses bash features (pipefail), but both lab READMEs said to run it with sh. Its ACCEPT count also confused people who had scanned in the same lab session before.

What changed

  • lab/README.md and Chinese version: run the drill with bash lab/offline-reports.sh.
  • Same paragraph: 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.

How to verify

Start the venue lab, run bash lab/offline-reports.sh and compare its counts with the README text. No code changes.


背景

lab/offline-reports.sh 用到了 bash 的功能(pipefail),两份 lab README 却让人用 sh 运行。它打印的 ACCEPT 数也让在同一个实验会话里扫过票的人看不明白。

改动

  • lab/README.md 及中文版:改为用 bash lab/offline-reports.sh 运行。
  • 同一段补充:脚本打印的 ACCEPT 行来自各闸机整个容器日志,所以此前扫过票的实验会话里,ACCEPT 行会比这次的报告多。

怎么验证

启动场馆实验环境,运行 bash lab/offline-reports.sh,对照 README 核对计数。没有代码改动。

Yuki Tanaka and others added 6 commits November 2, 2026 16:30
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.
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.
@TN019

TN019 commented Dec 1, 2026

Copy link
Copy Markdown
Contributor Author

Yuki Tanaka · reviewer

Would clearing the logs first make the counts match?


先清掉日志,计数就能对上吗?

@TN019

TN019 commented Dec 1, 2026

Copy link
Copy Markdown
Contributor Author

Noah Williams · author

A fresh lab does; the README now explains the difference instead of asking people to restart.


全新启动的实验环境就能对上;README 现在解释了差别,不要求大家重启。

@TN019
TN019 merged commit 409e5f7 into main Dec 1, 2026
5 checks passed
@TN019
TN019 deleted the docs/offline-reports-bash branch December 1, 2026 03:35
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