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

bots: Adjust for Fedora Atomic now being version 28 #9090

Merged
merged 5 commits into from
May 14, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions bots/image-prepare
Original file line number Diff line number Diff line change
Expand Up @@ -199,11 +199,11 @@ def only_install(image, build_results, skips, args, address):

# The Atomic variants can't build their own packages, so we build in
# their non-Atomic siblings. For example, fedora-atomic is built
# in fedora-27
# in fedora-28
def get_build_image(image):
(test_os, unused) = os.path.splitext(os.path.basename(image))
if test_os == "fedora-atomic":
image = "fedora-27"
image = "fedora-28"
elif test_os == "rhel-atomic":
image = "rhel-7"
elif test_os == "continuous-atomic":
Expand Down
2 changes: 1 addition & 1 deletion bots/image-refresh
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ TRIGGERS = {
],
"fedora-27": [
"verify/fedora-27",
"verify/fedora-atomic",
],
"fedora-28": [
"verify/fedora-28",
"verify/fedora-atomic",
],
"fedora-atomic": [
"verify/fedora-atomic"
Expand Down
2 changes: 1 addition & 1 deletion bots/images/fedora-atomic
4 changes: 2 additions & 2 deletions bots/images/scripts/fedora-atomic.bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ url="https://download.fedoraproject.org/pub/alt/atomic/stable/"
BASE=$(dirname $0)

# The Fedora URLs have the version twice in the name. for example:
# https://dl.fedoraproject.org/pub/alt/atomic/stable/Fedora-Atomic-25-20160921.0/CloudImages/x86_64/images/Fedora-Cloud-Base-25-20160921.0.x86_64.qcow2
# https://dl.fedoraproject.org/pub/alt/atomic/stable/Fedora-Atomic-28-20180425.0/AtomicHost/x86_64/images/Fedora-AtomicHost-28-20180425.0.x86_64.qcow2
$BASE/atomic.bootstrap "$1" "$url" \
"Fedora-Atomic-[-0-9\.]+" "CloudImages" "x86_64" "images" "Fedora-Atomic-[-0-9\.]+.x86_64.qcow2"
"Fedora-Atomic-[-0-9\.]+" "AtomicHost" "x86_64" "images" "Fedora-AtomicHost-[-0-9\.]+.x86_64.qcow2"
4 changes: 4 additions & 0 deletions bots/images/scripts/fedora-atomic.install
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,7 @@
set -e

/var/lib/testvm/atomic.install --verbose --skip cockpit-kdump "$@"

# HACK: https://github.com/projectatomic/rpm-ostree/issues/1360
# rpm-ostree upgrade --check otherwise fails
mkdir -p /var/cache/rpm-ostree
2 changes: 1 addition & 1 deletion bots/images/scripts/lib/atomic.install
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class AtomicCockpitInstaller:
subprocess.call(["ostree", "remote", "delete", "local"])

subprocess.check_call(["ostree", "remote", "add", "local",
"file:///{}".format(self.repo_location),
"file://{}".format(self.repo_location),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like a libcurl change FWIW.

"--no-gpg-verify"])

# HACK: https://github.com/candlepin/subscription-manager/issues/1404
Expand Down
4 changes: 2 additions & 2 deletions test/verify/check-docker-storage
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ def can_manage(machine):

# The Atomic variants can't build their own packages, so we build in
# their non-Atomic siblings. For example, fedora-atomic is built
# in fedora-26
# in fedora-28
def get_build_image(test_os):
build_os = test_os
if test_os == "fedora-atomic":
build_os = "fedora-27"
build_os = "fedora-28"
elif test_os == "rhel-atomic":
build_os = "rhel-7"
elif test_os == "continuous-atomic":
Expand Down
27 changes: 21 additions & 6 deletions test/verify/check-ostree
Original file line number Diff line number Diff line change
Expand Up @@ -326,15 +326,30 @@ class OstreeRestartCase(MachineCase):
m.start_cockpit()
b.reload()
b.login_and_go("/updates")

# After reboot upgrade but no rollback target
b.wait_present('table.listing-ct')
b.wait_present('table.listing-ct tbody')
b.wait_present('table.listing-ct tbody:nth-child(3) i.fa-circle')
b.wait_in_text("table.listing-ct tbody:nth-child(3) div.listing-ct-actions button", "Update")
b.wait_present('table.listing-ct tbody:nth-child(4) i.fa-check-circle-o')

if m.image in ["fedora-atomic"]:
# newer rpm-ostree flips back and forth between the two latest releases with rollback
b.wait_present('table.listing-ct tbody:nth-child(3) i.fa-check-circle-o')
b.wait_text('table.listing-ct tbody:nth-child(3) div.listing-ct-head h3', name + " cockpit-base.1")
b.wait_in_text("table.listing-ct tbody:nth-child(3) div.listing-ct-head", "Running")

b.wait_present('table.listing-ct tbody:nth-child(4) i.fa-circle')
b.wait_text('table.listing-ct tbody:nth-child(4) div.listing-ct-head h3', name + " cockpit-base.2")
b.wait_present("table.listing-ct tbody:nth-child(4) div.listing-ct-head button")
b.wait_in_text("table.listing-ct tbody:nth-child(4) div.listing-ct-head button", "Roll Back")
else:
# older rpm-ostree doesn't "roll back" forwards to the current release, it appears as regular update
b.wait_present('table.listing-ct tbody:nth-child(3) i.fa-circle')
b.wait_text('table.listing-ct tbody:nth-child(3) div.listing-ct-head h3', name + " cockpit-base.2")
b.wait_in_text("table.listing-ct tbody:nth-child(3) div.listing-ct-actions button", "Update")

b.wait_present('table.listing-ct tbody:nth-child(4) i.fa-check-circle-o')
b.wait_text('table.listing-ct tbody:nth-child(4) div.listing-ct-head h3', name + " cockpit-base.1")
b.wait_not_present("button:contains('Roll Back')");

b.wait_not_present('table.listing-ct tbody:nth-child(5)')
b.wait_not_present("button:contains('Roll Back')");

self.allow_restart_journal_messages()

Expand Down