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

Test fixes, avoid segfault at end #877

Merged
merged 3 commits into from
Feb 22, 2021
Merged

Conversation

m3nu
Copy link
Contributor

@m3nu m3nu commented Feb 21, 2021

Fixes #456
Fixes #748

@codecov-io
Copy link

codecov-io commented Feb 21, 2021

Codecov Report

Merging #877 (d1e86ad) into master (563b0a0) will decrease coverage by 2.33%.
The diff coverage is 15.38%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #877      +/-   ##
==========================================
- Coverage   73.36%   71.03%   -2.34%     
==========================================
  Files          55       55              
  Lines        3720     3728       +8     
==========================================
- Hits         2729     2648      -81     
- Misses        991     1080      +89     
Impacted Files Coverage Δ
src/vorta/utils.py 58.79% <0.00%> (-4.99%) ⬇️
src/vorta/application.py 65.66% <33.33%> (-1.42%) ⬇️
src/vorta/keyring/darwin.py 0.00% <0.00%> (-94.74%) ⬇️
src/vorta/autostart.py 63.63% <0.00%> (-33.34%) ⬇️
src/vorta/network_status/darwin.py 40.47% <0.00%> (-26.20%) ⬇️
src/vorta/notifications.py 71.21% <0.00%> (-13.64%) ⬇️
src/vorta/keyring/abc.py 80.00% <0.00%> (-8.58%) ⬇️
src/vorta/network_status/abc.py 82.35% <0.00%> (-5.89%) ⬇️
src/vorta/config.py 94.44% <0.00%> (-5.56%) ⬇️
... and 3 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 563b0a0...d1e86ad. Read the comment docs.

@m3nu m3nu force-pushed the minor/test-failures-3 branch 7 times, most recently from 4693177 to 66785f7 Compare February 21, 2021 07:48
@m3nu m3nu force-pushed the minor/test-failures-3 branch 2 times, most recently from 2d98f19 to 588e463 Compare February 21, 2021 08:29
@m3nu m3nu force-pushed the minor/test-failures-3 branch from 588e463 to d1e86ad Compare February 21, 2021 08:30
@m3nu m3nu merged commit 7949e80 into borgbase:master Feb 22, 2021
@m3nu m3nu deleted the minor/test-failures-3 branch February 22, 2021 01:45
@@ -44,7 +59,8 @@ jobs:
- name: Test with pytest (macOS)
if: runner.os == 'macOS'
run: |
pytest --cov=vorta
pytest
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a need to remove code coverage from macOS?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, pytest+coverage would hang indefinitely after successfully completing tests. Looks like you can't reliably have coverage + subprocesses (which we have). Using the pytest-cov plugin didn't help either.

Examples of "hung" tests:

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.

consistently failing tests on some architectures, flaky on others Segfault when closing from tray
3 participants