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

kola: Skip cl.sysext.fallbackdownload for release builds #458

Merged
merged 1 commit into from
Oct 4, 2023
Merged
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
7 changes: 6 additions & 1 deletion kola/tests/update/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,12 @@ func sysextFallbackDownload(c cluster.TestCluster) {
client := &http.Client{
Timeout: time.Second * 60,
}
// For simplicity, only support bincache (which is also used for release builds), the test will be skipped on GitHub PRs
// Check that we are on a dev build. Overwriting the pub key with a bind mount won't work for the initrd.
keySum := string(c.MustSSH(m, `md5sum /usr/share/update_engine/update-payload-key.pub.pem | cut -d " " -f 1`))
if keySum != "7192addf4a7f890c0057d21653eff2ea" {
c.Skip("Test skipped, only dev builds are supported")
}
// For simplicity, only support bincache, the test will be skipped on GitHub PRs and release builds.
// The URL comes from bootengine:dracut/99setup-root/initrd-setup-root-after-ignition where it would be flatcar_test_update-oem-qemu.gz
// but here we instead test for version.txt to still run and fail the test if that file is missing for unknown reasons
reply, err := client.Head(fmt.Sprintf("https://bincache.flatcar-linux.net/images/%s/%s/version.txt", arch, version))
Expand Down