Repository navigation
Conversation
epompeii
force-pushed
the
u/ep/digest/job
branch
from
December 2, 2026 23:07
9592e17 to
0970522
Compare
|
| Project | Bencher |
| Branch | u/ep/digest/job |
| Testbed | intel-v1 |
⚠️ WARNING: No Threshold found!Without a Threshold, no Alerts will ever be generated.
Click here to create a new Threshold
For more information, see the Threshold documentation.
To only post results if a Threshold exists, set the--ci-only-thresholdsflag.
Click to view all benchmark results
| Benchmark | Latency | microseconds (µs) |
|---|---|---|
| Adapter::Json | 📈 view plot | 5.22 µs |
| Adapter::Magic (JSON) | 📈 view plot | 5.08 µs |
| Adapter::Magic (Rust) | 📈 view plot | 7.81 µs |
| Adapter::Rust | 📈 view plot | 4.60 µs |
| Adapter::RustBench | 📈 view plot | 4.58 µs |
This branch was successfully deployed
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.
The API server now sends the alert digest. A background task wakes at the top of every UTC hour, selects the users whose digest is due, sends each one their email, and moves each user's mark past what their digest covered. This is the change that makes the digest user-visible: from here on, every user who has not turned it off gets one email a day, at their hour, on any day with a new alert. The alert digest is in the Bencher Plus build. A Bencher Self-Hosted server sends it only when it has
smtpconfigured. No plan or license gates it.What changes
digest_throughto the end of the window it covered. The write takes the later of the two, so it never moves the mark back past a return to the digest or an unlock that happened during the wake. A user with no new alert gets no email, and their mark still moves, so the next wake does not read that window again. A second wake in the same hour, as after a restart, finds the digest sent and sends nothing.smtp, console URL, and token key.smtp-protojoins the workspace, andbencher_schematakes it andjsonwebtokenas dev-dependencies, for the tests' SMTP replies and tokens./docs/explanation/alert-digest/, between Thresholds and Benchmark Harness Adapters. It covers what the digest lists, who gets it, when it sends, how to change it or turn it off, and the Self-Hosted note that it is sent only withsmtpconfigured. The Thresholds page and the Alert entry on the Benchmarking page link to it. The glossary defines the Alert Digest, and says that "Digest" alone still means the OCI content hash. The changelog announces the digest, its settings, its unsubscribe link, and thesmtprequirement.Tests
lib/bencher_schema/src/context/alert_digests.rsruns the task on a database in a file with a mailbox that answers for SMTP, on tokio's paused clock. It covers: an empty day that moves the mark and sends nothing; a sent digest that moves the mark; a 5xx that moves it; a 4xx, an I/O error, and a failed authentication that leave it; a reply that goes on to the next user; a shared failure, including TLS, that stops the wake; a message that cannot be written; a mark that never moves backwards; two wakes in one hour that send once; a task that wakes at the top of each hour; and only SMTP starting the task. For shutdown it covers a send in progress that finishes and moves its mark; a long send cut at the grace; the cut waits for the hour, a read, and the writer lock; a wake stopped before the next user; a sent digest that waits for the writer lock until the grace; and a send and its mark sharing one grace.This PR is the last of four for the alert digest. It sits on #1609, which writes the email and its unsubscribe link, and the stack sits on top of the changepoint layers (stack #1536).