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

Sync in asyncio #42

Merged
merged 3 commits into from
Apr 30, 2023
Merged

Conversation

jacobtomlinson
Copy link
Member

@jacobtomlinson jacobtomlinson commented Apr 30, 2023

In #40 I had a ton of trouble with nest-asyncio so I xfailed the sync in asyncio test, merged without it and opened #41 to track this requirement.

Starting where I was with nest-asyncio but may also explore other solutions.

Closes #41

@codecov
Copy link

codecov bot commented Apr 30, 2023

Codecov Report

Merging #42 (2a1ab56) into main (6cf29b2) will decrease coverage by 0.38%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main      #42      +/-   ##
==========================================
- Coverage   96.73%   96.36%   -0.38%     
==========================================
  Files          21       21              
  Lines        1562     1568       +6     
==========================================
  Hits         1511     1511              
- Misses         51       57       +6     
Impacted Files Coverage Δ
kr8s/tests/test_api.py 100.00% <ø> (+0.99%) ⬆️
kr8s/_asyncio.py 84.48% <100.00%> (-6.43%) ⬇️

... and 3 files with indirect coverage changes

@github-actions github-actions bot added the ci label Apr 30, 2023
@jacobtomlinson jacobtomlinson marked this pull request as ready for review April 30, 2023 19:29
@jacobtomlinson
Copy link
Member Author

It looks like the failures I was seeing in #40 were actually being caused by the Python environment caching persisting between different Python versions. Including the Python version in the cache key seems to have resolved things.

@jacobtomlinson jacobtomlinson merged commit 075fdc5 into kr8s-org:main Apr 30, 2023
@jacobtomlinson jacobtomlinson deleted the sync-in-asyncio branch April 30, 2023 19:49
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.

Use sync API in event loop
1 participant