Repository navigation
docs(adr): note the metadata fault switches are test-only - #181
Merged
Merged
Conversation
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.
Contributor
Author
|
Noah Williams · reviewer Do any tests still set these variables on the release binary? 还有测试在发布版程序上设这两个变量吗? |
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 现在和构建的实际做法一致。 |
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
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.mdand Chinese version:GATEPOST_TEST_META_WRITE_FAILandGATEPOST_TEST_META_RENAME_FAILare read only underGATEPOST_TEST_BUILD, which CMake defines for the test targets, so the releasegatednever reads them.How to verify
Check
gated/ticket_sync.c: bothgetenvcalls sit inside#ifdef GATEPOST_TEST_BUILD, andCMakeLists.txtdefines that macro only forgated-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定义这个宏。没有代码改动。