Skip to content

More helpful error message when failing to load BBOT module - #2798

Merged
TheTechromancer merged 2 commits into
devfrom
more-helpful-error
Nov 26, 2025
Merged

More helpful error message when failing to load BBOT module#2798
TheTechromancer merged 2 commits into
devfrom
more-helpful-error

Conversation

@TheTechromancer

@TheTechromancer TheTechromancer commented Nov 26, 2025

Copy link
Copy Markdown
Contributor

When a pip package is missing, it's usually because the user has artifacts leftover in ~/.bbot from an older version. This improves the error message.

It also adds the BBOT version to the cache key, which should help prevent this error to begin with.

FYSA @pjhartlieb

@TheTechromancer TheTechromancer self-assigned this Nov 26, 2025
@github-actions

Copy link
Copy Markdown
Contributor

📊 Performance Benchmark Report

Comparing dev (baseline) vs more-helpful-error (current)

📈 Detailed Results (All Benchmarks)

📋 Complete results for all benchmarks - includes both significant and insignificant changes

🧪 Test Name 📏 Base 📏 Current 📈 Change 🎯 Status
Bloom Filter Dns Mutation Tracking Performance 4.22ms 4.20ms -0.4%
Bloom Filter Large Scale Dns Brute Force 17.62ms 17.42ms -1.1%
Large Closest Match Lookup 358.62ms 360.99ms +0.7%
Realistic Closest Match Workload 194.85ms 196.08ms +0.6%
Event Validation Full Scan Startup Small Batch 454.96ms 455.85ms +0.2%
Event Validation Full Scan Startup Large Batch 793.24ms 797.56ms +0.5%
Make Event Autodetection Small 32.27ms 30.99ms -3.9%
Make Event Autodetection Large 326.07ms 316.11ms -3.1%
Make Event Explicit Types 14.45ms 13.86ms -4.1%
Excavate Single Thread Small 4.116s 3.985s -3.2%
Excavate Single Thread Large 9.512s 9.430s -0.9%
Excavate Parallel Tasks Small 4.159s 4.223s +1.5%
Excavate Parallel Tasks Large 7.078s 7.057s -0.3%
Is Ip Performance 3.15ms 3.21ms +2.0%
Make Ip Type Performance 11.39ms 11.52ms +1.1%
Mixed Ip Operations 4.56ms 4.49ms -1.4%
Typical Queue Shuffle 61.76µs 61.65µs -0.2%
Priority Queue Shuffle 689.33µs 716.76µs +4.0%

🎯 Performance Summary

No significant performance changes detected (all changes <10%)


🐍 Python Version 3.11.14

@codecov

codecov Bot commented Nov 26, 2025

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 60.00000% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 92%. Comparing base (9e32196) to head (c7bbfe7).
⚠️ Report is 3 commits behind head on dev.

Files with missing lines Patch % Lines
bbot/core/modules.py 50% 2 Missing ⚠️
Additional details and impacted files
@@          Coverage Diff          @@
##             dev   #2798   +/-   ##
=====================================
- Coverage     92%     92%   -0%     
=====================================
  Files        411     411           
  Lines      34009   34013    +4     
=====================================
- Hits       31053   31039   -14     
- Misses      2956    2974   +18     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@TheTechromancer
TheTechromancer merged commit 9fbaec3 into dev Nov 26, 2025
16 of 17 checks passed
@liquidsec liquidsec mentioned this pull request Jun 9, 2026
@liquidsec
liquidsec deleted the more-helpful-error branch June 10, 2026 00:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants