hailer 0.7.0-aarch64-linux-gnu → 0.8.0-aarch64-linux-gnu

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b0c5f231f176cab54e0f26a7de39d33c50dfa7891c6162ac73a2e107a39320e4
4
- data.tar.gz: a5e763d2ebfb0e81fa28a1a29b09dc61573aa1dd9eba60b482546e36ed837592
3
+ metadata.gz: 6da5ce5a703b16d8b9c1380fccbd950b73eb2bce4f5cbf02fe9b73f97a5d1583
4
+ data.tar.gz: f7d46d01c252b2c5ccda882b1c5d60113757663d029a7ce6976a476ae234b162
5
5
  SHA512:
6
- metadata.gz: d9b18be2573f698c16259da7627147a96dcc18cab60495b5723934b1753033ae08672ace95be5af0d3bc062887b565c382144dc8b2c5140b6c45f73d333d0192
7
- data.tar.gz: c5ae08edb42cef5031c54e21d76a5b121358f15d2367ee42c13c1dc41c87701ccefb3a773882c2f9e2acf337f8848caab7f1dc2179ea1b358d89f210df0c4763
6
+ metadata.gz: 900e239f4bcdd860177dbebd6528b16fabb00bf6ece53bd9a833b48dd8f23eda091638622dd904ac94b8e78daa0e8c15aac932abd28c1d808be248f4091ec3ed
7
+ data.tar.gz: f1a492c4a9164e6df40c12fa78c83fe20f2df5860ba63f0130584af6764ca02c40bf73901dfad086638d8cc382b1731dbff9c06e8c0136878411feab9ef4612c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,29 @@
1
1
  # Changelog
2
2
 
3
+ ## Unreleased
4
+
5
+ - Background workers restart one at a time under `supervisor-machines` (1 s doubling to 30 s; more than 3 restarts in 60 s still drains and exits). A panicking SQS consumer no longer takes the docking links and in-flight sends down with it.
6
+ - Synchronous sends run on one `deadline-machines` budget taken from Mothership's `MS_BAY_DRAIN_TIMEOUT`: verification and the provider call share it, and with under 2 s left the answer is 503 `budget_spent` with nothing sent, instead of a provider call Mothership has already abandoned.
7
+ - Opt-in fault injection (`[rogue]`, `rogue-machines`): `hailer arm-experiment`/`disarm-experiment`/`list-experiments` against the provider, SQS feedback or the verifier, with a mandatory expiry of at most 24 hours. Migration `06_rogue_experiments`.
8
+ - breaker-machines 0.22, behavior-machines 0.3, behavior-machines-circuit 0.4, chrono-machines 0.10, throttle-machines 0.5, state-machines 0.34: the whole family on one state-machines. Every other dependency at its latest compatible release.
9
+
10
+ ## [0.8.0](https://github.com/seuros/hailer/compare/v0.7.1...v0.8.0) (2026-11-18)
11
+
12
+
13
+ ### Features
14
+
15
+ * supervise workers, budget sync sends, opt-in fault injection ([8aba181](https://github.com/seuros/hailer/commit/8aba18154bf3dd3867024b745b374135129f8eed))
16
+
17
+
18
+ ### Bug Fixes
19
+
20
+ * machines crates at their latest releases; workers back off through chrono-machines ([8eb0ccd](https://github.com/seuros/hailer/commit/8eb0ccdb97682702710135fd9e4170f40a0edc84))
21
+ * machines crates at their rebuilt releases ([8523c27](https://github.com/seuros/hailer/commit/8523c276ac7582103e9bf5558eb0804c6c827431))
22
+
23
+ ## 0.7.1
24
+
25
+ - `AWS_ENDPOINT_URL`, and `AWS_ENDPOINT_URL_SESV2`/`_SQS`/`_STS` before it, replace the AWS hosts again, as they did under the AWS SDK; `AWS_IGNORE_CONFIGURED_ENDPOINT_URLS=true` turns them off. 0.7.0 ignored them, so LocalStack and endpoint fixtures reached real AWS.
26
+
3
27
  ## 0.7.0
4
28
 
5
29
  - Postmark provider (`provider = "postmark"`, `[postmark] message_stream`, `POSTMARK_SERVER_TOKEN`): Rails MIME parsed into Postmark's JSON, sync and queued sends, correlation as Metadata, `hailer postmark-server` token check. SES-only settings are refused with it.
data/README.md CHANGED
@@ -122,6 +122,9 @@ and `~/.aws/config` files (`AWS_PROFILE`, static keys); an EKS web identity
122
122
  container role; the EC2 instance role over IMDSv2. A profile that needs SSO,
123
123
  `credential_process` or role chaining is refused with the key it uses. The
124
124
  region comes from `AWS_REGION`, `AWS_DEFAULT_REGION`, the profile, or IMDS.
125
+ `AWS_ENDPOINT_URL_SESV2`, `_SQS` and `_STS`, else `AWS_ENDPOINT_URL`, point
126
+ those calls elsewhere (LocalStack, a test fixture) unless
127
+ `AWS_IGNORE_CONFIGURED_ENDPOINT_URLS=true`.
125
128
  Its identity needs `ses:SendEmail`, and the SES account/identities must be
126
129
  configured for sending.
127
130
 
@@ -309,6 +312,13 @@ the current feedback commit/ack within the configured deadline. Idle links
309
312
  close immediately. Deadline expiry aborts remaining tasks and exits nonzero;
310
313
  an interrupted send can have an unknown outcome.
311
314
 
315
+ Background workers (dispatcher, SQS feedback, rate discovery, suppression
316
+ reconciliation, rogue watcher) run under an OTP-style supervisor
317
+ (`supervisor-machines`): a worker that panics or exits is restarted on its
318
+ own, after 1 s doubling to 30 s while it keeps dying. More than 3 restarts in
319
+ 60 s, or the docking listener stopping, drains the whole ship and exits
320
+ nonzero for Mothership to relaunch.
321
+
312
322
  **Security:** the route currently has no application-level authentication.
313
323
  `/internal/` is a name, not an access control. Keep the bind private. The client
314
324
  does not follow redirects or use environment HTTP proxies.
@@ -460,6 +470,40 @@ Postmark sends are single-attempt too: throttling, a refused token and 5xx
460
470
  return 503, other refusals 502, and lost or unreadable answers the
461
471
  unknown-outcome code.
462
472
 
473
+ Every synchronous send runs on one budget (`deadline-machines`): Mothership's
474
+ `request_timeout` for the bay, read from `MS_BAY_DRAIN_TIMEOUT` (60 s when
475
+ unset), less one second to write the reply. It starts when the request
476
+ arrives; address verification and the provider call draw from what is left. Verification never
477
+ spends the last 5 s, and a lookup that cannot finish in what is left counts as
478
+ `unknown`. The provider call's timeout is cut to the remaining budget; with
479
+ under 2 s left nothing is sent and the answer is 503 `code: "budget_spent"`
480
+ (`Hailer::UnavailableError`, safe to retry). Queued dispatch keeps the
481
+ provider's own 20 s timeout.
482
+
483
+ ## Fault injection
484
+
485
+ `rogue-machines` lets an operator make a dependency fail, stall or lie on
486
+ purpose, to watch the breaker, the budgets and the Rails side react. Nothing
487
+ happens unless `[rogue]` is configured; replicas with it poll
488
+ `hailer.rogue_experiments` every `poll_interval_seconds` (default 5).
489
+
490
+ ```sh
491
+ hailer arm-experiment --target provider --fault raise --percent 10 --expires-in-seconds 300
492
+ hailer arm-experiment --target verifier --fault delay --delay-ms 4000 --expires-in-seconds 600
493
+ hailer list-experiments
494
+ hailer disarm-experiment --target provider # or no --target to disarm everything
495
+ ```
496
+
497
+ One experiment per target; arming again replaces it. Every experiment expires,
498
+ at most 24 hours after arming, and the expiry is counted down on each host's
499
+ monotonic clock from the time PostgreSQL says is left.
500
+
501
+ | Target | `raise` | `delay` | `garble` |
502
+ | --- | --- | --- | --- |
503
+ | `provider` (SES/Postmark) | unreachable: nothing sent; sync sends answer 503 and count against the breaker, queued dispatch retries | served inside the send timeout; at least as long is an unknown outcome (queued: `held_unknown`) | sent, but the id comes back as `rogue-<id>` |
504
+ | `feedback` (SQS) | receive fails, consumer backs off | receive starts late | bodies replaced and left unacknowledged, so SQS redelivers them |
505
+ | `verifier` (Emailable) | lookup fails open as `unknown` | served inside the lookup budget | refused: a garbled verdict would be cached past the experiment |
506
+
463
507
  ## Status
464
508
 
465
509
  The delivery contract, Hailer-side feedback processing, domain blocklist,
data/hailer.example.toml CHANGED
@@ -58,3 +58,9 @@ topic_arn = "arn:aws:sns:us-east-1:123456789012:mail-feedback"
58
58
  # [domain_intel]
59
59
  # provider = "rdap"
60
60
  # new_domain_threshold_days = 30
61
+
62
+ # Opt in: let operators arm fault-injection experiments against the provider,
63
+ # the feedback queue or the verifier (hailer arm-experiment). Without this
64
+ # block nothing reads hailer.rogue_experiments and every call passes.
65
+ # [rogue]
66
+ # poll_interval_seconds = 5
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Hailer
4
- VERSION = '0.7.0'
4
+ VERSION = '0.8.0'
5
5
  end
Binary file
@@ -1,6 +1,6 @@
1
1
  {
2
- "version": "0.7.0",
2
+ "version": "0.8.0",
3
3
  "platform": "aarch64-linux-gnu",
4
4
  "target": "aarch64-unknown-linux-gnu",
5
- "sha256": "73c0ebbde805684f713a7419623d6238b633b2f5d6b63ed13d12845982344f2d"
5
+ "sha256": "eeb94e85a7295371a65084f092e07513f1b51c2d307ec659219d756400027103"
6
6
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hailer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.8.0
5
5
  platform: aarch64-linux-gnu
6
6
  authors:
7
7
  - Abdelkader Boudih