Skip to content

Commit 0fd67af

Browse files
committed
Fix platform manifest errors for MySQL 5.6/5.7 and Percona 5.7/8.0
- Add DOCKER_DEFAULT_PLATFORM=linux/amd64 for older MySQL/Percona versions - These versions don't have ARM64 builds, causing 'no match for platform' errors - Fixes test failures in test-runner.go matrix tests - Matches the platform handling logic already in Makefile
1 parent be58c2b commit 0fd67af

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

scripts/test-runner.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,15 @@ func runTest(job testJob) testResult {
304304
}
305305
envVars = append(envVars, "DOCKER_IMAGE="+dockerImage)
306306
envVars = append(envVars, "TF_ACC=1", "GOTOOLCHAIN=auto")
307+
308+
// Handle platform-specific issues for older MySQL/Percona versions on ARM64
309+
// MySQL 5.6, 5.7 and Percona 5.7, 8.0 don't have ARM64 builds
310+
// Docker Desktop on Apple Silicon needs explicit platform specification
311+
if (job.dbType == "MySQL" && (job.image == "5.6" || job.image == "5.7")) ||
312+
(job.dbType == "Percona" && (job.image == "5.7" || job.image == "8.0")) {
313+
envVars = append(envVars, "DOCKER_DEFAULT_PLATFORM=linux/amd64")
314+
}
315+
307316
cmd.Env = envVars
308317

309318
// Create log file

0 commit comments

Comments
 (0)