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) support version-parameter in VespaCloud().deploy #978

Merged
merged 10 commits into from
Dec 4, 2024

Conversation

thomasht86
Copy link
Collaborator

@thomasht86 thomasht86 commented Nov 21, 2024

I confirm that this contribution is made under the terms of the license found in the root directory of this repository's source tree and that I have the authority necessary to make this contribution on behalf of its copyright owner.

Why?

Make it possible to specify a version-parameter when deploying to dev/perf.

How?

Make the deploy()-method take a version-parameter, that specifies desired Vespa version.
Relevant code for how this is done with Vespa CLI: https://github.com/vespa-engine/vespa/blob/3f540e73fda47cbbf63dba9a9e980c3a839438ec/client/go/internal/vespa/deploy.go#L485

  • Also did some minor refactoring to avoid repetitive code.
  • Added max_wait-param to follow_deployment() (default to 1800s).

Tests

It is difficult to maintain a test for this, as the available Vespa versions change continously.
I have run a manual integration test for this deployment, specifying version="8.441.21", and verified that it is applied.

@thomasht86 thomasht86 requested a review from glebashnik December 3, 2024 13:54
@thomasht86 thomasht86 merged commit 9ac5745 into master Dec 4, 2024
49 checks passed
@thomasht86 thomasht86 deleted the thomasht86/wip-version-arg-to-deploy branch December 4, 2024 10:56
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