Skip to content
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
8 changes: 7 additions & 1 deletion test/ci_workflow_gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,10 @@ type selfHostedTest struct {
MakeTools, InstallXtraBackup, Docker bool
}

func needsUbuntu20(clusterName string, mysqlVersion mysqlVersion) bool {
return mysqlVersion == mysql80 || strings.HasPrefix(clusterName, "vtgate") || strings.HasPrefix(clusterName, "tabletmanager")
}

// clusterMySQLVersions return list of mysql versions (one or more) that this cluster needs to test against
func clusterMySQLVersions(clusterName string) mysqlVersions {
switch {
Expand Down Expand Up @@ -345,8 +349,10 @@ func generateClusterWorkflows(list []string, tpl string) {
break
}
}
if mysqlVersion == mysql80 {
if needsUbuntu20(cluster, mysqlVersion) {
test.Ubuntu20 = true
}
if mysqlVersion == mysql80 {
test.Platform = string(mysql80)
}
if strings.HasPrefix(cluster, "vreplication") || strings.HasSuffix(cluster, "heavy") {
Expand Down