-
Notifications
You must be signed in to change notification settings - Fork 5
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
Acceptance test environment #88
Conversation
…a symlink so we can install dependencies
…e're going to compile the tests and package it instead
…ance test rpm weren't set correctly
…docker from there and pass in the multibox scripts instead of mounting them
…eated by failing builds doesn't break other builds/contrainers
… we're going to have the CI build it in docker
…ctly how we're going to have the CI build it in docker" This reverts commit ccae2aa.
… layer every time
…the openvdc-cli package directly in our docker container
…cceptance test stage of the the jenkinsfile
…e a home directory
Looks impressive. Things to add:
|
1.1. Will add to the readme. (Fedora 23 and Arch) The other items don't really need to be in the readme imo but here's the answers.
|
Perhaps we can re-enable the feature that uses cache images for develop/master unless rebuild flag set. It would save time when building branches and unless anything happened to the CI itself there is no need to build all images from scratch. |
On my TODO list. :p #89 |
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.
Why do we need to run docker commands with sudo?
docker rpm creates dockerroot
group and the UNIX users who want to operate docker command just need to join the group.
I chose to do it like that because of this: moby/moby#9976
A user being in dockerroot seems to be equivalent to that user having root access. Also we are using the --privileged flag in order to use KVM inside of the container. If we're going that far, I thought it was better to be clear that we're running with elevated rights by using sudo. If there is a good reason not to use sudo despite this, I'm ready to learn. :) |
They provides |
Yeah, I know about those. I'll make an issue to add their use later. Thanks for the review. ^_^ |
Finally the acceptance test environment is in a state where we can start writing proper tests. In short:
openvdc-acceptance-test
packageAdditional change to
openvdc-cli
package:/usr/bin
so the openvdc command is in PATH immediately after installing.Current tests written:
More detailed information is in the readme included in this diff.