Repository navigation
CI: surface Rust module panic payloads in nightly failure triage - #10911
Merged
Merged
Conversation
`ci-failure-context` highlighted `panicked at`, std's default panic hook format. A loaded RediSearch module replaces that hook in `RustPanicHook_Init`, so its panics read `A panic occurred in the Rust code panic.payload=... panic.location=...` and never matched. Every module-level Rust panic was therefore excluded from the KEY FAILURE LINES banner and left to survive the tail-cap on its own. Add that signature plus `crashed by signal:`, and normalize redis-server log prefixes and hex addresses out of the dedupe key so N repetitions of one crash collapse to a single entry instead of consuming N of the `max-key-lines` slots. Co-Authored-By: Claude Opus 5 <[email protected]>
Codecov Report✅ All modified and coverable lines are covered by tests. ❌ Your project check has failed because the head coverage (82.12%) is below the adjusted base coverage (82.13%). You can increase the head coverage or adjust the Removed Code Behavior. Additional details and impacted files@@ Coverage Diff @@
## master #10911 +/- ##
==========================================
- Coverage 83.19% 82.18% -1.01%
==========================================
Files 608 632 +24
Lines 81025 82174 +1149
Branches 36273 37422 +1149
==========================================
+ Hits 67405 67534 +129
- Misses 13274 14293 +1019
- Partials 346 347 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
`RustPanicHook_Init` chains its `tracing` hook ahead of std's rather than replacing it, so a module panic emits both spellings. What decides which one reaches these patterns is routing, not hook installation: `tracing` goes through `RedisModule_Log` into the redis logfile that gets collected, while std's `panicked at` goes to a stderr pipe RLTest never reads. The redis-prefix dedupe pattern accepted any word where the month belongs, so an unanchored match could land mid-message and merge two distinct `[FAIL]` lines that differed only in such a span. Spell the month out. Anchoring is not an option — the console copy of a redis line carries an ANSI colour escape ahead of the prefix. Co-Authored-By: Claude Opus 5 <[email protected]>
|
daxhuiberts
approved these changes
Aug 14, 2026
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.



Describe the changes in the pull request
failed-logs.txtto 200KB,ci-failure-contextgreps the whole log for "key failure lines" and pins them at the top so they survive truncation. That grep list looks forpanicked at, which a module panic never puts in the collected log —RustPanicHook_Initchains atracinghook ahead of std's, and only thetracingone (A panic occurred in the Rust code panic.payload=… panic.location=…) routes throughRedisModule_Loginto the redis logfile; std's copy goes to a stderr pipe RLTest never reads. So the one line naming the failing Rust file and line was dropped, while ~90 unsymbolized backtrace frames survived the cap. Separately, the dedupe strips ISO and Python-logger timestamps but not redis-server's<pid>:M <date>prefix or hex addresses, so the same crash repeated across N tests consumed N of the 150 available slots.tracinghook's wording andcrashed by signal:to the pattern list, and normalize the redis-server log prefix and hex addresses before deduplicating.c_entrypoint/triemap_ffi/src/iter_types.rs:39.Which additional issues this PR fixes
N/A
Main objects this PR modified
ci-failure-contextaction —highlight-patternsdefault gains the module'stracingpanic wording andcrashed by signal:.<pid>:M <date>prefixes and0x…addresses so repeats of one crash collapse to a single key line.Consumers are
event-nightly.ymlandevent-periodic-master-validation.yml. Note this does not reach theflow-test.yml→task-test.ymllane, which never invokes this action; making a crash visible in the job log itself is separate work.The redis-prefix pattern is deliberately unanchored, because the console copy of a redis line carries an ANSI colour escape ahead of the prefix. It spells the month out so that an unanchored match cannot land mid-message.
Mark if applicable
Release Notes