Skip to content

WIP: Debug flapping test_integration#829

Closed
bdraco wants to merge 953 commits into
python-zeroconf:masterfrom
bdraco:test_integration_with_listener_ipv6
Closed

WIP: Debug flapping test_integration#829
bdraco wants to merge 953 commits into
python-zeroconf:masterfrom
bdraco:test_integration_with_listener_ipv6

Conversation

@bdraco

@bdraco bdraco commented Jun 25, 2021

Copy link
Copy Markdown
Member

Goal is to diagnose

fixes #813

@codecov-commenter

codecov-commenter commented Jun 25, 2021

Copy link
Copy Markdown

Codecov Report

Merging #829 (4f6f9d4) into master (8c9d1d8) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #829   +/-   ##
=======================================
  Coverage   98.63%   98.63%           
=======================================
  Files          22       22           
  Lines        2339     2339           
  Branches      398      398           
=======================================
  Hits         2307     2307           
  Misses         21       21           
  Partials       11       11           

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 8c9d1d8...4f6f9d4. Read the comment docs.

@bdraco

bdraco commented Jun 25, 2021

Copy link
Copy Markdown
Member Author

Of course it doesn't break when I want it to 🙄

@bdraco

bdraco commented Jun 25, 2021

Copy link
Copy Markdown
Member Author

Looks like the other one is failing due to the fact the test floods the network interface and the duplicate packet suppression is kicking in. We can patch that out to fix it

@bdraco

bdraco commented Jun 25, 2021

Copy link
Copy Markdown
Member Author

Or use the inject helper instead

@bdraco

bdraco commented Jun 25, 2021

Copy link
Copy Markdown
Member Author

We should limit duplicate packet protection to 1s Break it out into a function and add a test We can then patch it out in the integration test in case that's the issue

@bdraco

bdraco commented Jun 26, 2021

Copy link
Copy Markdown
Member Author

Looks like sometimes it fails because the loop unblocks before we are waiting for the event.

Seems more likely on PyPy.

Likely we need to patch the code instead of inject the time change to make it reliable.

@bdraco

bdraco commented Jun 27, 2021

Copy link
Copy Markdown
Member Author

This was fixed in #849

@bdraco bdraco closed this Jun 27, 2021
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.

ServiceTypesQuery.test_integration_with_listener_ipv6 sometimes fail on mac

2 participants