Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Aug 2, 2023. It is now read-only.

Conversation

@achimnol
Copy link
Member

No description provided.

achimnol added 2 commits May 11, 2021 15:06
* fix: Specify TypeDecorator.cache_ok fields to allow more aggressive
  query caching in SQLAlchemy v1.4+
* SQLAlchemy 1.4.15 now requires txns completely retried as a whole
  context manager.
* Wrap all retried DB transactions with nested functions.
* Just grab a new connection for every transaction in the dispatcher
  instead of reusing them, because now we use the "SERIALIZABLE"
  isolation level and mark each transaction read-only or not
  using connection-level execution options.
* Now there are NO unpredictable hangs and missing status changes,
  regardless of the loadrunner concurrency. YAY!!
@achimnol achimnol added this to the 20.09 milestone May 11, 2021
@codecov
Copy link

codecov bot commented May 11, 2021

Codecov Report

Merging #429 (61137e6) into main (05f21a0) will decrease coverage by 0.27%.
The diff coverage is 12.98%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #429      +/-   ##
==========================================
- Coverage   48.83%   48.56%   -0.28%     
==========================================
  Files          52       52              
  Lines        8442     8511      +69     
==========================================
+ Hits         4123     4133      +10     
- Misses       4319     4378      +59     
Impacted Files Coverage Δ
src/ai/backend/manager/models/agent.py 50.00% <0.00%> (-0.36%) ⬇️
src/ai/backend/manager/models/kernel.py 45.63% <0.00%> (-0.11%) ⬇️
src/ai/backend/manager/models/keypair.py 47.84% <0.00%> (-0.21%) ⬇️
src/ai/backend/manager/models/scaling_group.py 66.22% <0.00%> (-0.15%) ⬇️
src/ai/backend/manager/scheduler/dispatcher.py 18.62% <0.90%> (-1.32%) ⬇️
src/ai/backend/manager/scheduler/predicates.py 28.73% <7.14%> (-0.68%) ⬇️
src/ai/backend/manager/registry.py 17.05% <14.95%> (-0.54%) ⬇️
src/ai/backend/manager/models/utils.py 58.33% <75.00%> (+11.58%) ⬆️
src/ai/backend/manager/api/auth.py 50.13% <85.71%> (+0.27%) ⬆️
src/ai/backend/manager/models/base.py 54.91% <100.00%> (+1.69%) ⬆️
... 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 05f21a0...61137e6. Read the comment docs.

@achimnol achimnol merged commit 934f0e7 into main May 11, 2021
@achimnol achimnol deleted the fix/refine-stability-update branch May 11, 2021 14:03
achimnol added a commit that referenced this pull request May 11, 2021
* fix: Update alembic, SQLAlchemy versions
* fix: Specify TypeDecorator.cache_ok fields to allow more aggressive
  query caching in SQLAlchemy v1.4+
* fix: Properly retry transactions
  - SQLAlchemy 1.4.15 now requires txns completely retried as a whole
    context manager.
  - Wrap all retried DB transactions with nested functions.
  - Just grab a new connection for every transaction in the dispatcher
    instead of reusing them, because now we use the "SERIALIZABLE"
    isolation level and mark each transaction read-only or not
    using connection-level execution options.
  - Now there are NO unpredictable hangs and missing status changes,
    regardless of the loadrunner concurrency. YAY!!
* setup: Update mypy version

Backported-From: main
Backported-To: 21.03
achimnol added a commit that referenced this pull request May 11, 2021
* fix: Update alembic, SQLAlchemy versions
* fix: Specify TypeDecorator.cache_ok fields to allow more aggressive
  query caching in SQLAlchemy v1.4+
* fix: Properly retry transactions
  - SQLAlchemy 1.4.15 now requires txns completely retried as a whole
    context manager.
  - Wrap all retried DB transactions with nested functions.
  - Just grab a new connection for every transaction in the dispatcher
    instead of reusing them, because now we use the "SERIALIZABLE"
    isolation level and mark each transaction read-only or not
    using connection-level execution options.
  - Now there are NO unpredictable hangs and missing status changes,
    regardless of the loadrunner concurrency. YAY!!
* setup: Update mypy version

Backported-From: main
Backported-To: 20.09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants