Skip to content
This repository was archived by the owner on Jul 16, 2024. It is now read-only.

fix: Update async_timeout usage #97

Merged
merged 8 commits into from
Nov 11, 2021
Merged

Conversation

achimnol
Copy link
Member

@achimnol achimnol commented Nov 9, 2021

  • async-timeout now requires using async with instead of with.
  • async-timeout 4.0.0 had a regression related to timeouts inside async generators,
    so upgrade to 4.0.1 which fixed the problem by Fix regression: aio-libs/async-timeout#258.
  • aioredis wraps asyncio.TimeoutError with TimeoutError in some cases,
    so catch them as well.

@achimnol achimnol added this to the 21.03 milestone Nov 9, 2021
@codecov
Copy link

codecov bot commented Nov 11, 2021

Codecov Report

Merging #97 (aa986f3) into main (5381e5b) will increase coverage by 0.75%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #97      +/-   ##
==========================================
+ Coverage   75.09%   75.84%   +0.75%     
==========================================
  Files          23       23              
  Lines        3192     3192              
==========================================
+ Hits         2397     2421      +24     
+ Misses        795      771      -24     
Impacted Files Coverage Δ
src/ai/backend/common/networking.py 82.14% <100.00%> (ø)
src/ai/backend/common/redis.py 76.21% <100.00%> (ø)
src/ai/backend/common/validators.py 70.31% <0.00%> (+6.25%) ⬆️

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 0561c0c...aa986f3. Read the comment docs.

@achimnol achimnol merged commit 029be01 into main Nov 11, 2021
@achimnol achimnol deleted the fix/update-async-timeout-usage branch November 11, 2021 02:13
@achimnol achimnol modified the milestones: 21.03, 21.09 Nov 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant