Repository navigation
docs(lab): run offline reports with bash and explain the counts - #182
Merged
Merged
Conversation
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.
Contributor
Author
|
Yuki Tanaka · reviewer Would clearing the logs first make the counts match? 先清掉日志,计数就能对上吗? |
Contributor
Author
|
Noah Williams · author A fresh lab does; the README now explains the difference instead of asking people to restart. 全新启动的实验环境就能对上;README 现在解释了差别,不要求大家重启。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
lab/offline-reports.shuses bash features (pipefail), but both lab READMEs said to run it withsh. Its ACCEPT count also confused people who had scanned in the same lab session before.What changed
lab/README.mdand Chinese version: run the drill withbash lab/offline-reports.sh.How to verify
Start the venue lab, run
bash lab/offline-reports.shand 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运行。怎么验证
启动场馆实验环境,运行
bash lab/offline-reports.sh,对照 README 核对计数。没有代码改动。