-
Notifications
You must be signed in to change notification settings - Fork 290
🌱 Fix hack/ci-e2e.sh script installations #2699
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
base: main
Are you sure you want to change the base?
Conversation
|
Skipping CI for Draft Pull Request. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
In case no-one wants to pick this up I can just make this PR about this one target as well, and add some comments to documentation :) |
dc0a2e2 to
821e988
Compare
hack/e2e-prerequisites.sh
Outdated
| @@ -0,0 +1,55 @@ | |||
| #!/usr/bin/env bash | |||
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.
Added this to script
|
Additional checks for if installations exist could be added. TODO:
|
|
I noticed that in here: https://github.com/metal3-io/baremetal-operator/blob/main/hack/ci-e2e.sh#L57 there is clear attempt at making the script self-sufficient and it should probably install all needed packages. But alas it does not. I'll expand on just this and remove the new target :D + edit the other scripts to fit this |
821e988 to
708d8ae
Compare
|
This has now been confined to the scope of installations, and adding the script target. I'll open the PR but I will most likely not have the time to edit all changes if they are major. I'll make an issue on the "TODO" i added before. EDIT: #2707 has the cleanup issue, and #2708 has the kubectl version bump (which I unfortunately do not have time for)
Additionally based on this finding, changed from a new target for installations to adding the necessary steps to the hack/ci-e2e.sh and making a new ensure_docker.sh for the docker installation. |
b065e26 to
255f03e
Compare
255f03e to
6d4df3b
Compare
6d4df3b to
a3dd101
Compare
| @@ -0,0 +1,32 @@ | |||
| #!/usr/bin/env bash | |||
| # shellcheck disable=SC1091 | |||
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.
Added this to fix the shellcheck issue, this code is from the official installation instructions of installing Docker Engine on Ubuntu.
fe55660 to
271fdee
Compare
| sudo apt-get update | ||
| sudo apt-get install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin | ||
| sudo usermod -aG docker "${USER}" | ||
| newgrp docker |
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.
This does nothing
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.
I'm confused as to which part, since it works for me? The new docker group?
| ## To note: Run this on your VM and not your local machine. These installations | ||
| ## work for linux amd64, at least on Ubuntu 24.04. You may need to log out and | ||
| ## log in to apply all changes if the installations are done for the first time. | ||
| .PHONY: run-e2e-script |
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.
this is not descriptive name for the target... setup-e2e or such would be nicer
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.
I agree the naming is a bit clunky, it's just that the "setup" would imply installations and anything more vague would imply it is used in actual e2e runs elsewhere no? Or maybe not?
18d7a3e to
5a1774b
Compare
Edit Makefile to add run-e2e-script, fix installations, and add documentation. Signed-off-by: Siiri Kemppainen <[email protected]>
5a1774b to
4939f30
Compare
|
Left a couple of comments, and fixed some things. This is as much as I have time today, in case someone has an opinion of the furture of this PR I'm all ears but contributing to this has to end on my part for now :( I'll try to answer if someone has a question though! |
| sudo apt-get update | ||
| sudo apt-get install -y libvirt-dev pkg-config | ||
| sudo apt-get install -y libvirt-daemon-system qemu-kvm virt-manager libvirt-dev | ||
| make build |
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.
This might be repetition with L82, but this does some necessary steps also, just might slow down the script
What this PR does / why we need it:
Some people may find the installation process and running the hack e2e-scripts a bit difficult, so making a target for the script and fixing the installed packages and dependencies should be done to make it easier to run them on a VM, and documentation should be added as well.
There is some previous discussion in here: #2642