-
Notifications
You must be signed in to change notification settings - Fork 195
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
WIP: RFC: Rework vmcheck to use STI qcow2 inventory #1362
Closed
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
#!/usr/bin/bash | ||
# Install build dependencies, run unit tests and installed tests. | ||
|
||
set -xeuo pipefail | ||
|
||
dn=$(dirname $0) | ||
. ${dn}/libbuild.sh | ||
OS_ID=$(. /etc/os-release && echo "${ID}") | ||
|
||
case ${OS_ID} in | ||
centos) | ||
cat > /etc/yum.repos.d/cahc.repo <<EOF | ||
[atomic-centos-continuous] | ||
baseurl=https://ci.centos.org/artifacts/sig-atomic/rdgo/centos-continuous/build | ||
gpgcheck=0 | ||
EOF | ||
yum -y install epel-release | ||
yum -y install python36;; | ||
esac | ||
|
||
pkg_upgrade | ||
${dn}/build-check.sh | ||
pkg_install git rsync openssh-clients ansible qemu-kvm standard-test-roles parallel | ||
|
||
# "Hot patch" this to pick up https://pagure.io/standard-test-roles/pull-request/223 | ||
(cd /usr/share/ansible/inventory && curl -L -O https://pagure.io/fork/walters/standard-test-roles/raw/cpu-cores/f/inventory/standard-inventory-qcow2) | ||
|
||
# Ensure we really have KVM loaded | ||
if ! ls -al /dev/kvm; then | ||
dmesg |grep -i kvm | sed -e 's,^,dmesg: ,' | ||
fatal "Failed to find /dev/kvm" | ||
fi | ||
|
||
case ${OS_ID} in | ||
fedora) | ||
curl -Lo fedora-atomic-host.qcow2 https://getfedora.org/atomic_qcow2_latest | ||
export TEST_SUBJECTS="$(pwd)/fedora-atomic-host.qcow2";; | ||
centos) | ||
curl -L https://ci.centos.org/artifacts/sig-atomic/centos-continuous/images-smoketested/cloud/latest/images/centos-atomic-host-7.qcow2.gz | gunzip > centos-atomic-host-7.qcow2 | ||
export TEST_SUBJECTS="$(pwd)/centos-atomic-host-7.qcow2";; | ||
*) fatal "unknown OS_ID=${OS_ID}";; | ||
esac | ||
|
||
make vmcheck |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
What does it even mean for us if
TEST_SUBJECTS
includes multiple qcow2s? Should we check for that and error out if so?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.
Feels like a bit of a "doctor it hurts when I..." situation? I started reading a stackoverflow thing on bash arrays but then my eyes started glazing over...