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

feat: cli auto login #4817

Merged
merged 13 commits into from
Jun 25, 2024
Merged

feat: cli auto login #4817

merged 13 commits into from
Jun 25, 2024

Conversation

xianml
Copy link
Contributor

@xianml xianml commented Jun 19, 2024

What does this PR address?

support cli auto login
image

Fixes #(issue)

Before submitting:

@xianml xianml requested a review from a team as a code owner June 19, 2024 09:46
@xianml xianml requested review from jianshen92 and removed request for a team June 19, 2024 09:46
@frostming
Copy link
Contributor

frostming commented Jun 19, 2024

Consider using starlette for HTTP server as we already depend on it, it should be much cleaner.

src/bentoml_cli/cloud.py Fixed Show fixed Hide fixed
@xianml
Copy link
Contributor Author

xianml commented Jun 19, 2024

Consider using starlette for HTTP server as we already depend on it, it should be much cleaner.

Just need a one-time process server here. Would it be too heavy to start a starlette app?

Copy link

github-actions bot commented Jun 19, 2024

Code Coverage

Package Statements
bentoml 58.62% (10282 / 17540)
Summary 58.62% (10282 / 17540)

src/bentoml_cli/cloud.py Outdated Show resolved Hide resolved
src/bentoml_cli/cloud.py Outdated Show resolved Hide resolved
src/bentoml_cli/cloud.py Outdated Show resolved Hide resolved
src/bentoml_cli/cloud.py Outdated Show resolved Hide resolved
src/bentoml_cli/auth_server.py Outdated Show resolved Hide resolved
@frostming
Copy link
Contributor

Just need a one-time process server here. Would it be too heavy to start a starlette app?

Makes sense, let's keep it

@xianml xianml force-pushed the feat/login-revamp branch 2 times, most recently from 0e826ef to f8d5cf4 Compare June 19, 2024 11:38
src/bentoml_cli/cloud.py Outdated Show resolved Hide resolved
src/bentoml_cli/cloud.py Outdated Show resolved Hide resolved
src/bentoml_cli/cloud.py Show resolved Hide resolved
src/bentoml_cli/cloud.py Show resolved Hide resolved
@xianml xianml changed the title [WIP] feat: cli auto login feat: cli auto login Jun 25, 2024
@xianml xianml changed the base branch from main to dev/1.3 June 25, 2024 04:03
@xianml xianml requested a review from frostming June 25, 2024 07:42
from starlette.testclient import TestClient
from typing_extensions import Annotated
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

doesn't seem like this change is related?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, but it's just an import reorder.

@frostming frostming merged commit 8f6f540 into dev/1.3 Jun 25, 2024
40 of 41 checks passed
@frostming frostming deleted the feat/login-revamp branch June 25, 2024 09:42
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.

None yet

3 participants