Skip to content

Commit

Permalink
Simply changing GH Actions runner (vitessio#17788)
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com>
  • Loading branch information
timvaillancourt committed Feb 14, 2025
1 parent ccae715 commit 7c980ab
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
9 changes: 6 additions & 3 deletions test/ci_workflow_gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ var (
)

type unitTest struct {
Name, Platform, FileName, Evalengine string
Name, RunsOn, Platform, FileName, Evalengine string
}

type clusterTest struct {
Expand All @@ -178,6 +178,7 @@ type clusterTest struct {
type vitessTesterTest struct {
FileName string
Name string
RunsOn string
Path string
}

Expand Down Expand Up @@ -234,8 +235,9 @@ func canonnizeList(list []string) []string {
func generateVitessTesterWorkflows(mp map[string]string, tpl string) {
for test, testPath := range mp {
tt := &vitessTesterTest{
Name: fmt.Sprintf("Vitess Tester (%v)", test),
Path: testPath,
Name: fmt.Sprintf("Vitess Tester (%v)", test),
RunsOn: defaultRunnerName,
Path: testPath,
}

templateFileName := tpl
Expand Down Expand Up @@ -322,6 +324,7 @@ func generateUnitTestWorkflows() {
for _, evalengine := range []string{"1", "0"} {
test := &unitTest{
Name: fmt.Sprintf("Unit Test (%s%s)", evalengineToString(evalengine), platform),
RunsOn: defaultRunnerName,
Platform: string(platform),
Evalengine: evalengine,
}
Expand Down
2 changes: 1 addition & 1 deletion test/templates/cluster_vitess_tester.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ env:
jobs:
build:
name: Run endtoend tests on {{.Name}}
runs-on: {{if .Cores16}}{{ .Cores16Runner }}{{else}}ubuntu-24.04{{end}}
runs-on: {{.RunsOn}}

steps:
- name: Skip CI
Expand Down
2 changes: 1 addition & 1 deletion test/templates/unit_test.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ env:
jobs:
test:
name: {{.Name}}
runs-on: {{if .Cores16}}{{ .Cores16Runner }}{{else}}ubuntu-24.04{{end}}
runs-on: {{.RunsOn}}

steps:
- name: Skip CI
Expand Down

0 comments on commit 7c980ab

Please sign in to comment.