Skip to content

tree: Fix flakiness during app teardown - #1107

Open
godlygeek wants to merge 1 commit into
bloomberg:mainfrom
godlygeek:fix_textual_flakiness
Open

godlygeek wants to merge 1 commit into
bloomberg:mainfrom
godlygeek:fix_textual_flakiness

Conversation

@godlygeek

Copy link
Copy Markdown
Contributor

When Textual is shutting down an app, it removes a widget's children before cancelling that widget's background tasks, so a widget's task may get scheduled only to find the children that it needs already gone.

When Textual is shutting down an app, it removes a widget's children
before cancelling that widget's background tasks, so a widget's task may
get scheduled only to find the children that it needs already gone.

Signed-off-by: Matt Wozniski <mwozniski@bloomberg.net>
@godlygeek godlygeek self-assigned this Nov 25, 2026
@codecov-commenter

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.37%. Comparing base (4e4dd93) to head (a942af3).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/memray/reporters/tree.py 60.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1107      +/-   ##
==========================================
- Coverage   92.40%   92.37%   -0.03%     
==========================================
  Files         103      103              
  Lines       13453    13474      +21     
  Branches      480      480              
==========================================
+ Hits        12431    12447      +16     
- Misses       1022     1027       +5     
Flag Coverage Δ
cpp 92.37% <60.00%> (-0.03%) ⬇️
python_and_cython 92.37% <60.00%> (-0.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@godlygeek
godlygeek enabled auto-merge (rebase) November 25, 2026 21:56

This branch has not been deployed

No deployments
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