Repository navigation
chore(specs): OVH SMS delivery receipts and check worker settings - #541
Merged
Merged
Conversation
- 06: OVH delivery-receipt callback is registered before config is final, so every receipt 404s - 07: SP_SERVER_CHECK_WORKER_NB / JOB_WORKER_NB are ignored, and docs say default 3 (code 25) - renumber the webhook secret spec to 05 (01 was taken twice today) - spec 04 points to 07 for the worker setting Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #541 +/- ##
==========================================
- Coverage 82.83% 82.79% -0.04%
==========================================
Files 1181 1181
Lines 121708 121708
==========================================
- Hits 100813 100767 -46
- Misses 20888 20934 +46
Partials 7 7 🚀 New features to boost your workflow:
|
PR #540 implements specs 01 (webhook secret), 02 and 04 and moves them to done/. Renaming 01 to 05 and editing todo 04 here would bring them back as todos once both PRs merge. Co-Authored-By: Claude Opus 5.5 <[email protected]>
4 tasks done
fclairamb
enabled auto-merge (squash)
October 13, 2026 05:26
fclairamb
added a commit
that referenced
this pull request
Oct 13, 2026
…egotiation (#547) ## Summary - Forcing HTTP/2 in cleartext (h2c prior knowledge) against an HTTP/1.1-only server fails in one of two ways, depending on timing: the client reads the HTTP/1.1 answer (`frame header looked like an HTTP/1.1 header`) or finds the connection already closed (`http2: client conn could not be established`). - Only the first was in `protocolNegotiationMarkers`, so about 2% of such probes reported a generic error instead of "expected HTTP/2, but the server did not negotiate it". - That made `TestHTTPChecker_HTTPVersion2AgainstHTTP1OnlyServer/cleartext` flaky; it failed CI on #541 (a specs-only PR). - The marker is only consulted when HTTP/2 or HTTP/3 is forced, and the original error stays in the message. ## Test plan - [x] Before: 6 failures in 300 runs of the test. After: 0 in 1500. - [x] New table test for `IsProtocolNegotiationError`. - [x] `go test ./internal/checkers/checkerdef/ ./internal/checkers/checkhttp/` - [x] `golangci-lint run ./internal/checkers/...`: 0 issues 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 5.5 <[email protected]>
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.
Two new specs in
specs/todos/.NewServerregisters it (server.go:516-526) before the JWT secret and base URL are loaded from the database, so its token is derived from the default secret, while the handler (server.go:2290) derives it from the real one. Every receipt gets a 404, on every boot. Confirmed with a throwaway test: tokens differ with nothing set and withSP_AUTH_JWT_SECRETset; they match only withSP_SMS_OVH_DLR_TOKEN. Fix: register at the end ofInitializeSystemConfig, one token getter for both sides, no token from the default secret.SP_SERVER_CHECK_WORKER_NBdefaults to 3, the code says 25 (since 2026-07-03). Worse,SP_SERVER_CHECK_WORKER_NBandSP_SERVER_JOB_WORKER_NBhave no effect at all (verified: set to 8 and 4, the server runs 25 and 2), and while set they also hide the dashboard value. Fix the loading, the docs, and add drift tests (docs defaults vs code, every system parameter env var takes effect).done/, so touching theirtodos/copies here would bring them back.Specs only, no code change.
🤖 Generated with Claude Code