-
Notifications
You must be signed in to change notification settings - Fork 505
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
[Merged by Bors] - feat(fvm): install fluvio versions #3576
[Merged by Bors] - feat(fvm): install fluvio versions #3576
Conversation
3fc2afc
to
a1e1b64
Compare
Does this command work with out parameters? I assume |
Yeah! By default |
As these are also being used for FVM on #3576.
f9b359f
to
c3b317e
Compare
c3b317e
to
b6e0d59
Compare
Also, the download could fail at any time. So in that case, the installation would need to be repeated |
To be sure, like adding a retry? |
Assume that the user should be able to retry the installation. that should be covered under CLI test |
66f29cb
to
9fe6309
Compare
@sehz I think it would be nice to add some logic to delete existing version directory before copying if the directory already exists. What do you think? |
Im addressing tests at the end, when all behavior changes are applied! |
As a general principle, the least changes to the user's file system are better. deleting directory is destructive operation which should be avoided much as possible |
Agree! In that example Im copying the binaries but as its seen FS complains. I will try with atomic copy and see if theres a different behavior. |
2812263
to
24a0cd7
Compare
d0f37ab
to
48c9bda
Compare
48c9bda
to
902fef3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Nice CLI testing
Thanks for the support! |
@@ -1130,7 +1130,8 @@ jobs: | |||
- name: Run FVM smoke tests | |||
if: matrix.test == 'fvm' | |||
timeout-minutes: 20 | |||
run: make FVM_BIN=~/bin/fvm cli-fvm-smoke | |||
run: | | |||
make FVM_BIN=~/bin/fvm HUB_REGISTRY_URL="https://hub-dev.infinyon.cloud" cli-fvm-smoke |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
move HUB_REGISTRY_URL to env
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Applying in next PR!
bors r+ |
Introduces `fvm install`, similar to `nvm install`, downloads artifacts for the specific Fluvio Version and stores them in `~/.fvm/versions` for future use. Along with downloading the artifacts, other routines are involved in this process: 1. Check binary Sha256 Sums 2. Provide executable permissions on Unix systems 3. Creating a `manifest.json` which helps determine the binaries versions At this point no Fluvio Version is set as active/default, only the download of binaries is addressed as of this PR. --- ## Demo https://github.com/infinyon/fluvio/assets/34756077/93b2115f-09ae-476f-b2ba-fbb1f9db2461
Build failed: |
bors retry |
Introduces `fvm install`, similar to `nvm install`, downloads artifacts for the specific Fluvio Version and stores them in `~/.fvm/versions` for future use. Along with downloading the artifacts, other routines are involved in this process: 1. Check binary Sha256 Sums 2. Provide executable permissions on Unix systems 3. Creating a `manifest.json` which helps determine the binaries versions At this point no Fluvio Version is set as active/default, only the download of binaries is addressed as of this PR. --- ## Demo https://github.com/infinyon/fluvio/assets/34756077/93b2115f-09ae-476f-b2ba-fbb1f9db2461
Build failed: |
bors r+ |
Introduces `fvm install`, similar to `nvm install`, downloads artifacts for the specific Fluvio Version and stores them in `~/.fvm/versions` for future use. Along with downloading the artifacts, other routines are involved in this process: 1. Check binary Sha256 Sums 2. Provide executable permissions on Unix systems 3. Creating a `manifest.json` which helps determine the binaries versions At this point no Fluvio Version is set as active/default, only the download of binaries is addressed as of this PR. --- ## Demo https://github.com/infinyon/fluvio/assets/34756077/93b2115f-09ae-476f-b2ba-fbb1f9db2461
Pull request successfully merged into master. Build succeeded! The publicly hosted instance of bors-ng is deprecated and will go away soon. If you want to self-host your own instance, instructions are here. If you want to switch to GitHub's built-in merge queue, visit their help page. |
Introduces
fvm install
, similar tonvm install
, downloads artifacts for the specificFluvio Version and stores them in
~/.fvm/versions
for future use.Along with downloading the artifacts, other routines are involved in this process:
manifest.json
which helps determine the binaries versionsAt this point no Fluvio Version is set as active/default, only the download of binaries is addressed as of this PR.
Demo
CleanShot.2023-10-04.at.16.16.14.mp4