Skip to content

Bump blasthttp to 0.6.0, pass files= through WebHelper#3093

Merged
liquidsec merged 4 commits into
devfrom
blasthttp-0.6.0
May 18, 2026
Merged

Bump blasthttp to 0.6.0, pass files= through WebHelper#3093
liquidsec merged 4 commits into
devfrom
blasthttp-0.6.0

Conversation

@liquidsec

Copy link
Copy Markdown
Collaborator

Summary

  • Bumps blasthttp to >=0.6.0 (Add httpx-style files= multipart support + ruff (v0.6.0) blasthttp#24).
  • WebHelper.request() drops the silent files= not supported warning and forwards files= to blasthttp. body=bytes flows through as bytes (was forced to str(body)).
  • mock_blasthttp.py stops stripping files= and mirrors WebHelper's body/files handling so test mocks see the same encoded multipart body the wire would.
  • New test_web_request_files_multipart end-to-end test posts a multipart payload via self.helpers.request(files=...) against a real bbot_httpserver and asserts the wire body parts + Content-Type: multipart/form-data; boundary=….

This unblocks bbot/modules/telerik.py:229, which sends an httpx-style files= probe and was silently sending an empty POST under the blasthttp integration.

- WebHelper.request() drops the silent files= warning and forwards
  files= to blasthttp; body=bytes also flows through as bytes
- mock_blasthttp.py stops stripping files= and now mirrors
  WebHelper's body/files handling for the in-process test mock
- new test_web_request_files_multipart end-to-end test posts a
  multipart payload via self.helpers.request(files=...) and
  asserts the wire body and Content-Type boundary
@github-actions

github-actions Bot commented May 14, 2026

Copy link
Copy Markdown
Contributor

📊 Performance Benchmark Report

Comparing dev (baseline) vs blasthttp-0.6.0 (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.16ms 4.16ms -0.1%
Bloom Filter Large Scale Dns Brute Force 17.29ms 17.40ms +0.6%
Large Closest Match Lookup 358.12ms 356.69ms -0.4%
Realistic Closest Match Workload 189.83ms 188.98ms -0.4%
Event Memory Medium Scan 1784 B/event 1784 B/event +0.0%
Event Memory Large Scan 1768 B/event 1768 B/event +0.0%
Event Validation Full Scan Startup Small Batch 409.19ms 406.90ms -0.6%
Event Validation Full Scan Startup Large Batch 567.52ms 583.45ms +2.8%
Make Event Autodetection Small 30.44ms 30.94ms +1.6%
Make Event Autodetection Large 311.96ms 315.16ms +1.0%
Make Event Explicit Types 13.58ms 13.80ms +1.6%
Excavate Single Thread Small 3.929s 3.996s +1.7%
Excavate Single Thread Large 9.694s 9.525s -1.7%
Excavate Parallel Tasks Small 4.108s 4.184s +1.9%
Excavate Parallel Tasks Large 6.572s 6.605s +0.5%
Is Ip Performance 3.19ms 3.16ms -1.0%
Make Ip Type Performance 11.57ms 11.47ms -0.9%
Mixed Ip Operations 4.51ms 4.53ms +0.4%
Memory Use Web Crawl 651.5 MB 653.1 MB +0.2%
Memory Use Subdomain Enum 33.3 MB 33.3 MB +0.0%
Memory Use Deep Chain 7.8 MB 7.8 MB +0.0%
Memory Use Parallel Chains 23.5 MB 21.2 MB -9.8%
Scan Throughput 100 4.058s 4.113s +1.4%
Scan Throughput 1000 31.196s 31.468s +0.9%
Typical Queue Shuffle 63.53µs 63.57µs +0.1%
Priority Queue Shuffle 721.06µs 717.03µs -0.6%

🎯 Performance Summary

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


🐍 Python Version 3.11.15

@codecov

codecov Bot commented May 14, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 93.44262% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 90%. Comparing base (4cfaa9c) to head (d56548d).
⚠️ Report is 9 commits behind head on dev.

Files with missing lines Patch % Lines
bbot/test/mock_blasthttp.py 82% 4 Missing ⚠️
Additional details and impacted files
@@          Coverage Diff          @@
##             dev   #3093   +/-   ##
=====================================
+ Coverage     90%     90%   +1%     
=====================================
  Files        444     444           
  Lines      38338   38383   +45     
=====================================
+ Hits       34277   34320   +43     
- Misses      4061    4063    +2     

☔ 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.

@liquidsec liquidsec requested a review from ausmaster May 14, 2026 23:33
@ausmaster ausmaster assigned ausmaster and liquidsec and unassigned ausmaster May 15, 2026
@liquidsec liquidsec merged commit 783f586 into dev May 18, 2026
20 checks passed
@liquidsec liquidsec mentioned this pull request Jun 9, 2026
@ausmaster ausmaster deleted the blasthttp-0.6.0 branch June 11, 2026 01:27
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