Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update tests to support Textual 0.71 #643

Merged
merged 3 commits into from
Jul 2, 2024

Conversation

godlygeek
Copy link
Contributor

@godlygeek godlygeek commented Jul 2, 2024

  • Work around a Textual deadlock in our tests. There's a deadlock on shutdown when the pilot exits before the message pump has quiesced, but it doesn't occur when we wait for the message pump to become idle.
  • Update our tests' Textual snapshots. The latest version of Textual uses a new SVG generation algorithm that results in some slight differences compared to the old algorithm's output, but should be more stable going forward. Additionally, the two trailing spaces removed by the previous commit show up as differences in these snapshots.
  • Avoid extra trailing spaces on node in the tree reporter tree. If trailing spaces are included, they are highlighted with an orange background when the line is selected.

@godlygeek godlygeek self-assigned this Jul 2, 2024
@godlygeek godlygeek changed the title Update to latest textual Update tests to support Textual 0.71 Jul 2, 2024
@codecov-commenter
Copy link

codecov-commenter commented Jul 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.00%. Comparing base (41248ed) to head (b30be4a).
Report is 97 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #643      +/-   ##
==========================================
+ Coverage   92.55%   93.00%   +0.45%     
==========================================
  Files          91       94       +3     
  Lines       11304    11415     +111     
  Branches     1581     2092     +511     
==========================================
+ Hits        10462    10617     +155     
+ Misses        837      798      -39     
+ Partials        5        0       -5     
Flag Coverage Δ
cpp 93.00% <100.00%> (+7.06%) ⬆️
python_and_cython 93.00% <100.00%> (-2.72%) ⬇️

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

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

@godlygeek
Copy link
Contributor Author

Deadlock reported at Textualize/textual#4699

@godlygeek godlygeek enabled auto-merge (rebase) July 2, 2024 21:31
There's a deadlock on shutdown when the pilot exits before the message
pump has quiesced, but it doesn't occur when we wait for the message
pump to become idle.

Signed-off-by: Matt Wozniski <[email protected]>
If trailing spaces are included, they are highlighted with an orange
background when the line is selected.

Signed-off-by: Matt Wozniski <[email protected]>
The latest version of Textual uses a new SVG generation algorithm that
results in some slight differences compared to the old algorithm's
output, but should be more stable going forward.

Additionally, the two trailing spaces removed by the previous commit
show up as differences in these snapshots.

Signed-off-by: Matt Wozniski <[email protected]>
@godlygeek godlygeek merged commit da34fd5 into bloomberg:main Jul 2, 2024
16 of 18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants