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

Internal ticket: OP#1164

@achimnol achimnol added this to the 20.09 milestone Feb 22, 2021
@codecov
Copy link

codecov bot commented Feb 22, 2021

Codecov Report

Merging #400 (61244c0) into main (e9dbdc5) will increase coverage by 0.48%.
The diff coverage is 41.16%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #400      +/-   ##
==========================================
+ Coverage   46.09%   46.57%   +0.48%     
==========================================
  Files          49       51       +2     
  Lines        7684     8283     +599     
==========================================
+ Hits         3542     3858     +316     
- Misses       4142     4425     +283     
Impacted Files Coverage Δ
src/ai/backend/manager/registry.py 17.80% <0.00%> (ø)
src/ai/backend/gateway/auth.py 37.57% <6.06%> (-0.15%) ⬇️
src/ai/backend/manager/models/image.py 57.51% <15.38%> (-1.95%) ⬇️
src/ai/backend/manager/models/agent.py 48.59% <16.66%> (-0.36%) ⬇️
src/ai/backend/manager/models/keypair.py 47.65% <18.42%> (-0.75%) ⬇️
src/ai/backend/manager/models/storage.py 44.52% <23.52%> (+1.27%) ⬆️
src/ai/backend/manager/models/user.py 31.61% <23.80%> (-0.31%) ⬇️
src/ai/backend/gateway/utils.py 50.00% <25.00%> (-0.26%) ⬇️
src/ai/backend/manager/models/kernel.py 45.52% <27.02%> (+0.12%) ⬆️
src/ai/backend/gateway/manager.py 38.23% <27.27%> (+0.23%) ⬆️
... and 21 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 e9dbdc5...61244c0. Read the comment docs.

Base automatically changed from master to main February 24, 2021 04:12
* Fix several regressions due to missing updates for AgentRegistry API changes,
  such as session restarts.
* The installed/installed_agents fields for the list of image metadata
  is now only supported in GraphQL queries, not the manager CLI commands
  (`mgr etcd inspect-image`, `mgr etcd list-images`).
* setup: Add yapf configuration based on the "facebook" style
  which is mostly consistent with my coding style.
  - e.g., it keeps lines split for items/arguments if the ending item
    has the trailing comma.
…der}

* Also fix up some minor bits in models.{agent,gql} and gateway.admin
* fix reference to root context field in gateway.manager
achimnol added a commit to lablup/backend.ai-common that referenced this pull request Mar 15, 2021
* Let's favor "| None" instead of "Optional" for better readability
  - This will be officially introduced in Python 3.10 but currently
    we can use it for annotations with future import.
@achimnol achimnol marked this pull request as ready for review March 18, 2021 08:46
@achimnol achimnol merged commit 4f70536 into main Mar 18, 2021
@achimnol achimnol deleted the feature/refactor-app-context branch March 18, 2021 09:31
achimnol added a commit that referenced this pull request Mar 18, 2021
…iohttp apps (#400)

This PR makes all contextual objects to be statically typed and explicitly defined as attributes
of common context objects in the following context:
1. aiohttp.web.Application context, both "root" and "private" ones for nested API handler app structure
  - The root context replaces prior "public shared interface"
2. GraphQueryContext for all GraphQL resolver and mutation methods
3. CLIContext for all manager CLI functions

I also added yapf configuration for easier reformatting of long method/function argument lists
by enforcing line-breaks per argument when there is a trailing comma in the list.

Other changes:
* Increase the default batch size for the GraphQL dataloader to reduce database overheads
* Fix several regressions due to missing updates for AgentRegistry API changes,
  such as session restarts.
* The installed/installed_agents fields for the list of image metadata
  is now only supported in GraphQL queries, not the manager CLI commands
  (`mgr etcd inspect-image`, `mgr etcd list-images`).

Backported-From: main
Backported-To: 20.09
achimnol added a commit to lablup/backend.ai-common that referenced this pull request Mar 18, 2021
achimnol added a commit to lablup/backend.ai-common that referenced this pull request Mar 18, 2021
Backported-From: main
Backported-To: 20.09
achimnol added a commit that referenced this pull request Mar 19, 2021
achimnol added a commit that referenced this pull request Mar 19, 2021
* Fix a regression in session list graph queries
achimnol added a commit that referenced this pull request Mar 19, 2021
* Fix a regression in session list graph queries

Backported-From: main
Backported-To: 20.09
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.

2 participants