Skip to content

Conversation

@NicoHinderling
Copy link
Contributor

@NicoHinderling NicoHinderling commented Nov 5, 2025

We encountered a situation where parsing a binary actually hung and the whole parent process then hung as a result. We didn't have a timeout for the parent process so it just hung indefinitely. With this change our parent process will timeout after 12 minutes and the kafka message will be completed

@NicoHinderling NicoHinderling force-pushed the add-timeout-to-macho-parsing branch from 3022441 to b7bf3c3 Compare November 5, 2025 23:08
@NicoHinderling NicoHinderling force-pushed the add-timeout-to-macho-parsing branch from b7bf3c3 to e0e703e Compare November 5, 2025 23:08
@codecov
Copy link

codecov bot commented Nov 5, 2025

Codecov Report

❌ Patch coverage is 9.09091% with 10 lines in your changes missing coverage. Please review.
✅ Project coverage is 80.21%. Comparing base (ebde423) to head (e0e703e).
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
src/launchpad/kafka.py 9.09% 10 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #460      +/-   ##
==========================================
- Coverage   80.26%   80.21%   -0.06%     
==========================================
  Files         159      159              
  Lines       13482    13492      +10     
  Branches     1428     1429       +1     
==========================================
+ Hits        10822    10823       +1     
- Misses       2122     2131       +9     
  Partials      538      538              

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

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

"""
start_time = time.time()

if hasattr(signal, "SIGALRM"):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is hasattr needed?

raise
finally:
# Cancel the timeout alarm as it's an expected exit
if hasattr(signal, "SIGALRM"):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same.

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.

3 participants