e2e: add prerelease builds to Consul/Vault compatibility tests (#23287)

Update the Consul/Vault build downloader functions so that we include the
current prerelease build (if any) in our E2E compatibility testing we do on each
PR. This will automatically cycle out when the GA build is released, because
that build is "higher" in the sorted set.
This commit is contained in:
Tim Gross
2024-06-11 08:54:27 -04:00
committed by GitHub
parent 61608e43cb
commit 288a048a2e
3 changed files with 1 additions and 8 deletions

View File

@@ -16,12 +16,10 @@ import (
// versions of Consul CE
func usable(v, minimum *version.Version) bool {
switch {
case v.Prerelease() != "":
case v.LessThan(minimum):
return false
case v.Metadata() != "":
return false
case v.LessThan(minimum):
return false
default:
return true
}

View File

@@ -19,9 +19,6 @@ import (
"github.com/shoenig/test/must"
)
// TODO: it would be good if we can add the latest non-GA'd beta/release
// candidate version as well; that'll give us some lead time on any breaking
// changes
const (
binDir = "consul-bins"
minConsulVersion = "1.16.0"

View File

@@ -17,8 +17,6 @@ import (
// versions of Vault CE
func usable(v, minimum *version.Version) bool {
switch {
case v.Prerelease() != "":
return false
case v.Metadata() != "":
return false
case v.LessThan(minimum):