Skip to content

Commit

Permalink
changefeedccl: enable changefeed tests on ARM
Browse files Browse the repository at this point in the history
This change enables all changefeed tests on ARM except for the Kafka
OAuth test.  There are only Kafka 3 ARM binaries available, which are
internally ran via docker, but the OAuth test requires Kafka 2 for the
broker setup.

Release note: None
  • Loading branch information
samiskin committed Aug 8, 2023
1 parent ab13de5 commit a6ac637
Show file tree
Hide file tree
Showing 3 changed files with 196 additions and 188 deletions.
2 changes: 1 addition & 1 deletion pkg/cmd/roachtest/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -741,7 +741,7 @@ func MachineTypeToCPUs(s string) int {
if _, err := fmt.Sscanf(s, "n2-standard-%d", &v); err == nil {
return v
}
if _, err := fmt.Sscanf(s, "n2-standard-%d", &v); err == nil {
if _, err := fmt.Sscanf(s, "t2a-standard-%d", &v); err == nil {
return v
}
if _, err := fmt.Sscanf(s, "n2-highcpu-%d", &v); err == nil {
Expand Down
6 changes: 6 additions & 0 deletions pkg/cmd/roachtest/cluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,12 @@ func TestClusterMachineType(t *testing.T) {
{"n2-standard-32", 32},
{"n2-standard-64", 64},
{"n2-standard-96", 96},
{"t2a-standard-2", 2},
{"t2a-standard-4", 4},
{"t2a-standard-8", 8},
{"t2a-standard-16", 16},
{"t2a-standard-32", 32},
{"t2a-standard-48", 48},
}
for _, tc := range testCases {
t.Run(tc.machineType, func(t *testing.T) {
Expand Down
Loading

0 comments on commit a6ac637

Please sign in to comment.