Skip to content

chore(specs): OVH SMS delivery receipts and check worker settings - #541

Merged
fclairamb merged 4 commits into
mainfrom
chore/specs-2026-10-12-sms-workers
Oct 13, 2026
Merged

fclairamb merged 4 commits into
mainfrom
chore/specs-2026-10-12-sms-workers

Conversation

@fclairamb

@fclairamb fclairamb commented Oct 12, 2026 •

Copy link
Copy Markdown
Owner

Two new specs in specs/todos/.

  • 06 ovh-sms-dlr-token-consistency: OVH sends delivery receipts to one account-wide callback URL. NewServer registers 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 with SP_AUTH_JWT_SECRET set; they match only with SP_SMS_OVH_DLR_TOKEN. Fix: register at the end of InitializeSystemConfig, one token getter for both sides, no token from the default secret.
  • 07 check-worker-default-docs: docs say SP_SERVER_CHECK_WORKER_NB defaults to 3, the code says 25 (since 2026-07-03). Worse, SP_SERVER_CHECK_WORKER_NB and SP_SERVER_JOB_WORKER_NB have 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).
  • No longer renames or edits specs 01 and 04: fix: demo-org sign-ins, webhook secrets, check type count, idle memory (batch 2026-10-12) #540 implements them and moves them to done/, so touching their todos/ copies here would bring them back.

Specs only, no code change.

🤖 Generated with Claude Code

- 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

codecov Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.79%. Comparing base (cba413a) to head (51f6237).

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              

see 10 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

fclairamb and others added 2 commits October 12, 2026 17:10
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]>
@fclairamb
fclairamb enabled auto-merge (squash) October 13, 2026 05:26
@fclairamb
fclairamb merged commit c3428d3 into main Oct 13, 2026
26 checks passed
@fclairamb
fclairamb deleted the chore/specs-2026-10-12-sms-workers branch October 13, 2026 05:44
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]>
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