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

Optimize dstack-gateway installation time #2146

Merged
merged 1 commit into from
Dec 26, 2024

Conversation

jvstme
Copy link
Collaborator

@jvstme jvstme commented Dec 26, 2024

Add the dstack[gateway] extra, so that the
gateway doesn't install dstack[server].
dstack[gateway] still has some unnecessary
dependencies from BASE_DEPS, but the current
optimization is enough for now.

Also increase the gateway installation timeout
just in case.

#1595

Add the `dstack[gateway]` extra, so that the
gateway doesn't install `dstack[server]`.
`dstack[gateway]` still has some unnecessary
dependencies from BASE_DEPS, but the current
optimization is enough for now.

Also increase the gateway installation timeout
just in case.
@jvstme jvstme requested a review from r4victor December 26, 2024 11:11
@@ -11,7 +11,7 @@ requires-python = ">=3.10"
dynamic = ["version"]
dependencies = [
# release builds of dstack-gateway depend on a PyPI version of dstack instead
"dstack[server] @ https://github.com/dstackai/dstack/archive/refs/heads/master.zip",
"dstack[gateway] @ https://github.com/dstackai/dstack/archive/refs/heads/master.zip",
Copy link
Collaborator

Choose a reason for hiding this comment

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

Seems like a fragile solution since there are no tests that run with dstack[gateway].

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I will merge for now and think how we can test it.
Although we also don't test CLI or individual backends without [all], so it is not much more fragile than the existing extras.

@jvstme jvstme merged commit 9f9aefa into master Dec 26, 2024
24 checks passed
@jvstme jvstme deleted the issue_1595_optimize_gateway_install branch December 26, 2024 11:57
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.

2 participants