Fix omitted event types leaking to console output#2934
Merged
Conversation
This was referenced Feb 28, 2026
Collaborator
Author
|
@TheTechromancer this seems correct but need your sanity check |
Contributor
📊 Performance Benchmark Report
📈 Detailed Results (All Benchmarks)
🎯 Performance Summary✅ No significant performance changes detected (all changes <10%) 🐍 Python Version 3.11.14 |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## 3.0 #2934 +/- ##
=====================================
- Coverage 92% 92% -0%
=====================================
Files 434 434
Lines 35501 35515 +14
=====================================
- Hits 32399 32392 -7
- Misses 3102 3123 +21 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
TheTechromancer
approved these changes
Mar 2, 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.
Summary
omit_event_typesRoot Cause
In
7b271f33b("ruffed"), thealways_emitcheck inBaseOutputModule._event_precheck()was moved from inside the_omitblock (where it was anelif, only applying to already-omitted events) to before it as a standalone short-circuit. This changed the semantics: any event withalways_emit=True(i.e. events withaffiliate/seedtags, or no host) now bypassed the_omitfilter entirely, causing omitted event types to print to console.The
always_emitcheck is unnecessary in the output precheck sinceScanEgressalready handles it by preventingalways_emitevents from being marked_internal.