Skip to content

docs(adr): note the metadata fault switches are test-only - #181

Merged
TN019 merged 11 commits into
mainfrom
docs/adr-metadata-fault-switches
Dec 1, 2026
Merged

TN019 merged 11 commits into
mainfrom
docs/adr-metadata-fault-switches

Conversation

@TN019

@TN019 TN019 commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Why

ADR 0012 says the metadata write and rename fault switches are also present in the release binary. They are not: both are read only in test builds.

What changed

  • docs/adr/0012-resume-ticket-sync-with-conditional-http.md and Chinese version: GATEPOST_TEST_META_WRITE_FAIL and GATEPOST_TEST_META_RENAME_FAIL are read only under GATEPOST_TEST_BUILD, which CMake defines for the test targets, so the release gated never reads them.

How to verify

Check gated/ticket_sync.c: both getenv calls sit inside #ifdef GATEPOST_TEST_BUILD, and CMakeLists.txt defines that macro only for gated-test. No code changes.


背景

ADR 0012 说元数据写入和改名的故障开关在发布版程序里也有。其实没有:两个开关只在测试构建里读取。

改动

  • docs/adr/0012-resume-ticket-sync-with-conditional-http.md 及中文版:GATEPOST_TEST_META_WRITE_FAIL 和 GATEPOST_TEST_META_RENAME_FAIL 只在 GATEPOST_TEST_BUILD 下读取,这个宏由 CMake 只为测试目标定义,所以发布版 gated 从不读取它们。

怎么验证

看 gated/ticket_sync.c:两处 getenv 都在 #ifdef GATEPOST_TEST_BUILD 里;CMakeLists.txt 只给 gated-test 定义这个宏。没有代码改动。

Ingrid Larsen and others added 11 commits November 2, 2026 10:00
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.
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.
@TN019

TN019 commented Dec 1, 2026

Copy link
Copy Markdown
Contributor Author

Noah Williams · reviewer

Do any tests still set these variables on the release binary?


还有测试在发布版程序上设这两个变量吗?

@TN019

TN019 commented Dec 1, 2026

Copy link
Copy Markdown
Contributor Author

Ingrid Larsen · author

No. The tests that use them run gated-test, so the ADR now matches what the build does.


没有。用到它们的测试跑的是 gated-test,所以 ADR 现在和构建的实际做法一致。

@TN019
TN019 merged commit a9b9fc4 into main Dec 1, 2026
5 checks passed
@TN019
TN019 deleted the docs/adr-metadata-fault-switches 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