hailer 0.7.1-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 +4 -4
- data/CHANGELOG.md +20 -0
- data/README.md +41 -0
- data/hailer.example.toml +6 -0
- data/lib/hailer/version.rb +1 -1
- data/vendor/aarch64-linux-gnu/bin/hailer +0 -0
- data/vendor/aarch64-linux-gnu/manifest.json +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6da5ce5a703b16d8b9c1380fccbd950b73eb2bce4f5cbf02fe9b73f97a5d1583
|
|
4
|
+
data.tar.gz: f7d46d01c252b2c5ccda882b1c5d60113757663d029a7ce6976a476ae234b162
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 900e239f4bcdd860177dbebd6528b16fabb00bf6ece53bd9a833b48dd8f23eda091638622dd904ac94b8e78daa0e8c15aac932abd28c1d808be248f4091ec3ed
|
|
7
|
+
data.tar.gz: f1a492c4a9164e6df40c12fa78c83fe20f2df5860ba63f0130584af6764ca02c40bf73901dfad086638d8cc382b1731dbff9c06e8c0136878411feab9ef4612c
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
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
|
+
|
|
3
23
|
## 0.7.1
|
|
4
24
|
|
|
5
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.
|
data/README.md
CHANGED
|
@@ -312,6 +312,13 @@ the current feedback commit/ack within the configured deadline. Idle links
|
|
|
312
312
|
close immediately. Deadline expiry aborts remaining tasks and exits nonzero;
|
|
313
313
|
an interrupted send can have an unknown outcome.
|
|
314
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
|
+
|
|
315
322
|
**Security:** the route currently has no application-level authentication.
|
|
316
323
|
`/internal/` is a name, not an access control. Keep the bind private. The client
|
|
317
324
|
does not follow redirects or use environment HTTP proxies.
|
|
@@ -463,6 +470,40 @@ Postmark sends are single-attempt too: throttling, a refused token and 5xx
|
|
|
463
470
|
return 503, other refusals 502, and lost or unreadable answers the
|
|
464
471
|
unknown-outcome code.
|
|
465
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
|
+
|
|
466
507
|
## Status
|
|
467
508
|
|
|
468
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
|
data/lib/hailer/version.rb
CHANGED
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.
|
|
2
|
+
"version": "0.8.0",
|
|
3
3
|
"platform": "aarch64-linux-gnu",
|
|
4
4
|
"target": "aarch64-unknown-linux-gnu",
|
|
5
|
-
"sha256": "
|
|
5
|
+
"sha256": "eeb94e85a7295371a65084f092e07513f1b51c2d307ec659219d756400027103"
|
|
6
6
|
}
|