[PR #2916] [CLOSED] Tailcfg.ping request #2902 #2934

Closed
opened 2025-12-29 04:19:43 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/juanfont/headscale/pull/2916
Author: @roganlynch
Created: 11/25/2025
Status: Closed

Base: mainHead: tailcfg.PingRequest-#2902


📝 Commits (10+)

  • 2e27ae0 feat(cli): add ping command for node health checks
  • 2468f70 test(integration): add ping tests and pin docker api version
  • ba5fe90 refactor(noise): add node validation for ping responses
  • ec854f2 fix(grpc): return correct target IP in PingNode response
  • d1f66b7 feat: add configurable node liveness checking with ping scheduler
  • 266ecc0 Changes from go mod tidy & make gen
  • c3647d7 Add docs to manage headscale from another local user
  • e94c5de docs: Enable automatic theme switching
  • 9700e95 hscontrol/state: make NodeStore batch configuration tunable (#2886)
  • 7635669 cmd/hi: improve test cleanup to reduce CI disk usage (#2881)

📊 Changes

27 files changed (+4245 additions, -99 deletions)

View changed files

📝 .dockerignore (+3 -0)
📝 AGENTS.md (+9 -9)
cmd/headscale/cli/ping.go (+116 -0)
📝 cmd/hi/docker.go (+3 -1)
📝 config-example.yaml (+29 -0)
docs/integration-tests-liveness-checking-proposal.md (+867 -0)
📝 gen/go/headscale/v1/headscale.pb.go (+71 -66)
📝 gen/go/headscale/v1/headscale.pb.gw.go (+81 -0)
📝 gen/go/headscale/v1/headscale_grpc.pb.go (+38 -0)
📝 gen/go/headscale/v1/node.pb.go (+179 -12)
📝 gen/openapiv2/headscale/v1/headscale.swagger.json (+86 -0)
📝 go.sum (+0 -6)
📝 hscontrol/app.go (+15 -0)
📝 hscontrol/capver/capver_test_data.go (+1 -1)
📝 hscontrol/grpcv1.go (+78 -0)
📝 hscontrol/mapper/batcher.go (+1 -0)
📝 hscontrol/mapper/batcher_lockfree.go (+32 -0)
📝 hscontrol/noise.go (+77 -3)
hscontrol/ping.go (+280 -0)
hscontrol/ping_scheduler.go (+281 -0)

...and 7 more files

📄 Description

  • have read the CONTRIBUTING.md file
  • raised a GitHub issue or discussed it on the projects chat beforehand
  • added unit tests
  • added integration tests
  • updated documentation if needed
  • updated CHANGELOG.md

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/juanfont/headscale/pull/2916 **Author:** [@roganlynch](https://github.com/roganlynch) **Created:** 11/25/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `tailcfg.PingRequest-#2902` --- ### 📝 Commits (10+) - [`2e27ae0`](https://github.com/juanfont/headscale/commit/2e27ae04e19d9c09a1ab6eaf439dccb27d5e2f0e) feat(cli): add ping command for node health checks - [`2468f70`](https://github.com/juanfont/headscale/commit/2468f700dc71a28261fef29447cce5cd5112e064) test(integration): add ping tests and pin docker api version - [`ba5fe90`](https://github.com/juanfont/headscale/commit/ba5fe900a022414aaaf0a6368b899517b620596d) refactor(noise): add node validation for ping responses - [`ec854f2`](https://github.com/juanfont/headscale/commit/ec854f22764ce6419e61a30a17bcbd3677de7617) fix(grpc): return correct target IP in PingNode response - [`d1f66b7`](https://github.com/juanfont/headscale/commit/d1f66b75b020ae6eece560a6bb61f47f0c69d4ff) feat: add configurable node liveness checking with ping scheduler - [`266ecc0`](https://github.com/juanfont/headscale/commit/266ecc0a765e0e3d7a6a80e07d546fc0b2548eb7) Changes from go mod tidy & make gen - [`c3647d7`](https://github.com/juanfont/headscale/commit/c3647d750921f89c2f344d048257ec4b4c666297) Add docs to manage headscale from another local user - [`e94c5de`](https://github.com/juanfont/headscale/commit/e94c5deb509afafa098958dcf08641302be74774) docs: Enable automatic theme switching - [`9700e95`](https://github.com/juanfont/headscale/commit/9700e95ac1b9e7e8e667fc6b16df8075f43702cb) hscontrol/state: make NodeStore batch configuration tunable (#2886) - [`7635669`](https://github.com/juanfont/headscale/commit/7635669c582810c2d1ee45f7f97bc0e8b72c4689) cmd/hi: improve test cleanup to reduce CI disk usage (#2881) ### 📊 Changes **27 files changed** (+4245 additions, -99 deletions) <details> <summary>View changed files</summary> 📝 `.dockerignore` (+3 -0) 📝 `AGENTS.md` (+9 -9) ➕ `cmd/headscale/cli/ping.go` (+116 -0) 📝 `cmd/hi/docker.go` (+3 -1) 📝 `config-example.yaml` (+29 -0) ➕ `docs/integration-tests-liveness-checking-proposal.md` (+867 -0) 📝 `gen/go/headscale/v1/headscale.pb.go` (+71 -66) 📝 `gen/go/headscale/v1/headscale.pb.gw.go` (+81 -0) 📝 `gen/go/headscale/v1/headscale_grpc.pb.go` (+38 -0) 📝 `gen/go/headscale/v1/node.pb.go` (+179 -12) 📝 `gen/openapiv2/headscale/v1/headscale.swagger.json` (+86 -0) 📝 `go.sum` (+0 -6) 📝 `hscontrol/app.go` (+15 -0) 📝 `hscontrol/capver/capver_test_data.go` (+1 -1) 📝 `hscontrol/grpcv1.go` (+78 -0) 📝 `hscontrol/mapper/batcher.go` (+1 -0) 📝 `hscontrol/mapper/batcher_lockfree.go` (+32 -0) 📝 `hscontrol/noise.go` (+77 -3) ➕ `hscontrol/ping.go` (+280 -0) ➕ `hscontrol/ping_scheduler.go` (+281 -0) _...and 7 more files_ </details> ### 📄 Description <!-- Headscale is "Open Source, acknowledged contribution", this means that any contribution will have to be discussed with the Maintainers before being submitted. This model has been chosen to reduce the risk of burnout by limiting the maintenance overhead of reviewing and validating third-party code. Headscale is open to code contributions for bug fixes without discussion. If you find mistakes in the documentation, please submit a fix to the documentation. --> <!-- Please tick if the following things apply. You… --> - [x] have read the [CONTRIBUTING.md](./CONTRIBUTING.md) file - [x] raised a GitHub issue or discussed it on the projects chat beforehand - [x] added unit tests - [x] added integration tests - [x] updated documentation if needed - [ ] updated CHANGELOG.md <!-- If applicable, please reference the issue using `Fixes #XXX` and add tests to cover your new code. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 04:19:43 +01:00
adam closed this issue 2025-12-29 04:19:43 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/headscale#2934