Skip to content

Commit

Permalink
Merge pull request #458 from flatcar/kai/skip-fallback
Browse files Browse the repository at this point in the history
kola: Skip cl.sysext.fallbackdownload for release builds
  • Loading branch information
pothos authored Oct 4, 2023
2 parents 929e224 + c3ca845 commit b4c206b
Showing 1 changed file with 6 additions and 1 deletion.
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

0 comments on commit b4c206b

Please sign in to comment.