Skip to content

chore: Print Python traceback when POLARS_TIMEOUT_MS is exceeded#27657

Open
orlp wants to merge 3 commits into
pola-rs:mainfrom
orlp:timeout-tb
Open

chore: Print Python traceback when POLARS_TIMEOUT_MS is exceeded#27657
orlp wants to merge 3 commits into
pola-rs:mainfrom
orlp:timeout-tb

Conversation

@orlp
Copy link
Copy Markdown
Member

@orlp orlp commented May 18, 2026

This will allow us to more easily find out what failed when a test times out.

To achieve this we have to eagerly grab a traceback every time enter_polars is called. This is quite a performance impact, but POLARS_TIMEOUT_MS is only a debugging tool.

@orlp orlp marked this pull request as ready for review May 18, 2026 14:57
@github-actions github-actions Bot added internal An internal refactor or improvement python Related to Python Polars rust Related to Rust Polars labels May 18, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented May 20, 2026

Codecov Report

❌ Patch coverage is 22.85714% with 27 lines in your changes missing coverage. Please review.
✅ Project coverage is 81.59%. Comparing base (9d8a77e) to head (75d2716).
⚠️ Report is 5 commits behind head on main.

Files with missing lines Patch % Lines
crates/polars-python/src/timeout.rs 23.07% 20 Missing ⚠️
crates/polars-python/src/utils.rs 22.22% 7 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #27657      +/-   ##
==========================================
+ Coverage   81.48%   81.59%   +0.10%     
==========================================
  Files        1840     1840              
  Lines      256109   256135      +26     
  Branches     3181     3181              
==========================================
+ Hits       208696   208981     +285     
+ Misses      46588    46328     -260     
- Partials      825      826       +1     

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal An internal refactor or improvement python Related to Python Polars rust Related to Rust Polars

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant