Skip to content

chore(build): start 1.1.0-dev - #177

Merged
TN019 merged 13 commits into
mainfrom
chore/start-1.1-dev
Dec 1, 2026
Merged

TN019 merged 13 commits into
mainfrom
chore/start-1.1-dev

Conversation

@TN019

@TN019 TN019 commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Why

After 1.0.0, builds from main must not report themselves as 1.0.0.

What changed

  • project(gatepost VERSION 1.1.0), because project(VERSION) accepts numeric components only.
  • PROJECT_VERSION and gatepost_VERSION are then set to 1.1.0-dev, and configure prints Gatepost 1.1.0-dev. CPACK_PACKAGE_VERSION is read from PROJECT_VERSION later in the file, so packages built from main carry 1.1.0-dev.

How to verify

Requires Docker. From the repository root:

./scripts/dev.sh build-image
docker run --rm -v "$PWD:/src" -w /src gatepost-build:current sh -c \
  'cmake --preset release | grep "Gatepost 1.1.0-dev" &&
   grep CPACK_PACKAGE_VERSION build/release/CPackConfig.cmake'

Expect the configure message and 1.1.0-dev in the generated CPack configuration.


背景

1.0.0 发布之后,从 main 构建出来的程序不应再自称 1.0.0。

改动

  • project(gatepost VERSION 1.1.0),因为 project(VERSION) 只接受数字段。
  • 随后把 PROJECT_VERSION 和 gatepost_VERSION 设为 1.1.0-dev,配置时打印 Gatepost 1.1.0-dev。文件后面的 CPACK_PACKAGE_VERSION 取自 PROJECT_VERSION,所以从 main 打出的包版本是 1.1.0-dev。

怎么验证

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

./scripts/dev.sh build-image
docker run --rm -v "$PWD:/src" -w /src gatepost-build:current sh -c \
  'cmake --preset release | grep "Gatepost 1.1.0-dev" &&
   grep CPACK_PACKAGE_VERSION build/release/CPackConfig.cmake'

应看到配置时的提示,生成的 CPack 配置里版本为 1.1.0-dev。

Ben Carter and others added 13 commits October 30, 2026 15:00
Port 8444 served one connection at a time, so one client that stopped reading held /status and ticket fetches for every gate for seconds. It now hands accepted connections to a bounded queue of 16 served by four workers, closes and counts a connection when the queue is full, and keeps the 2 s step and 10 s connection deadlines. Port 8081 stays one thread for staff. The TLS slow-reader check in the status deadline test described the one-thread behaviour: status waited until the slow reader was cut; it now requires an answer within 1 s.
The hub now mails when the data centre is unreachable or the uplink watcher stops.
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.
@TN019

TN019 commented Dec 1, 2026

Copy link
Copy Markdown
Contributor Author

Ingrid Larsen · reviewer

Why not write 1.1.0-dev in project() directly?


为什么不直接在 project() 里写 1.1.0-dev?

@TN019

TN019 commented Dec 1, 2026

Copy link
Copy Markdown
Contributor Author

Yuki Tanaka · author

project(VERSION) accepts numeric components only, so the call keeps 1.1.0 and the suffix is set right after it, before CPack reads PROJECT_VERSION.


project(VERSION) 只接受数字段,所以这里写 1.1.0,紧接着再加后缀,赶在 CPack 读取 PROJECT_VERSION 之前。

@TN019

TN019 commented Dec 1, 2026

Copy link
Copy Markdown
Contributor Author

Ingrid Larsen · reviewer

Do PROJECT_VERSION_MAJOR, _MINOR and _PATCH change?


PROJECT_VERSION_MAJOR、_MINOR、_PATCH 会变吗?

@TN019

TN019 commented Dec 1, 2026

Copy link
Copy Markdown
Contributor Author

Yuki Tanaka · author

No. They stay 1, 1 and 0 from the project() call; only PROJECT_VERSION and gatepost_VERSION carry the suffix.


不会,它们仍是 project() 给出的 1、1、0;只有 PROJECT_VERSION 和 gatepost_VERSION 带后缀。

@TN019
TN019 merged commit 4cb5cf5 into main Dec 1, 2026
5 checks passed
@TN019
TN019 deleted the chore/start-1.1-dev branch December 1, 2026 03:16
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