Skip to content

Commit 5decd8c

Browse files
authored
Merge branch 'main' into acc/fix-run-local
2 parents b73f286 + d86b288 commit 5decd8c

File tree

3 files changed

+36
-10
lines changed

3 files changed

+36
-10
lines changed

internal/testarchive/archive.go

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,14 @@ func createArchive(archiveDir, binDir, repoRoot string) error {
107107
// the CPU architecture to keep the door open for future optimizations.
108108
downloaders := []downloader{
109109
goDownloader{arch: "amd64", binDir: binDir},
110-
goDownloader{arch: "arm64", binDir: binDir},
111110
uvDownloader{arch: "amd64", binDir: binDir},
112-
uvDownloader{arch: "arm64", binDir: binDir},
113111
jqDownloader{arch: "amd64", binDir: binDir},
114-
jqDownloader{arch: "arm64", binDir: binDir},
112+
113+
// TODO: Serverless clusters do not support arm64 yet.
114+
// Enable ARM64 once serverless clusters support it.
115+
// goDownloader{arch: "arm64", binDir: binDir},
116+
// uvDownloader{arch: "arm64", binDir: binDir},
117+
// jqDownloader{arch: "arm64", binDir: binDir},
115118
}
116119

117120
for _, downloader := range downloaders {

internal/testarchive/archive_test.go

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
//go:build dbr_only
2-
31
package main
42

53
import (
@@ -11,6 +9,12 @@ import (
119
)
1210

1311
func TestArchive(t *testing.T) {
12+
if testing.Short() {
13+
t.Skip("Skipping test in short mode")
14+
}
15+
16+
t.Parallel()
17+
1418
archiveDir := t.TempDir()
1519
binDir := t.TempDir()
1620
repoRoot := "../.."
@@ -24,13 +28,16 @@ func TestArchive(t *testing.T) {
2428

2529
// Go installation is a directory because it includes the
2630
// standard library source code along with the Go binary.
27-
assert.FileExists(t, filepath.Join(assertDir, "bin", "arm64", "go", "bin", "go"))
2831
assert.FileExists(t, filepath.Join(assertDir, "bin", "amd64", "go", "bin", "go"))
29-
assert.FileExists(t, filepath.Join(assertDir, "bin", "arm64", "uv"))
3032
assert.FileExists(t, filepath.Join(assertDir, "bin", "amd64", "uv"))
31-
assert.FileExists(t, filepath.Join(assertDir, "bin", "arm64", "jq"))
3233
assert.FileExists(t, filepath.Join(assertDir, "bin", "amd64", "jq"))
3334

35+
// TODO: Serverless clusters do not support arm64 yet.
36+
// Assert these files exist after we support arm64.
37+
assert.NoFileExists(t, filepath.Join(assertDir, "bin", "arm64", "go", "bin", "go"))
38+
assert.NoFileExists(t, filepath.Join(assertDir, "bin", "arm64", "uv"))
39+
assert.NoFileExists(t, filepath.Join(assertDir, "bin", "arm64", "jq"))
40+
3441
assert.FileExists(t, filepath.Join(assertDir, "cli", "go.mod"))
3542
assert.FileExists(t, filepath.Join(assertDir, "cli", "go.sum"))
3643
}

internal/testarchive/downloader_test.go

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
//go:build dbr_only
2-
31
package main
42

53
import (
@@ -12,6 +10,12 @@ import (
1210
)
1311

1412
func TestUvDownloader(t *testing.T) {
13+
if testing.Short() {
14+
t.Skip("Skipping test in short mode")
15+
}
16+
17+
t.Parallel()
18+
1519
tmpDir := t.TempDir()
1620

1721
for _, arch := range []string{"arm64", "amd64"} {
@@ -27,6 +31,12 @@ func TestUvDownloader(t *testing.T) {
2731
}
2832

2933
func TestJqDownloader(t *testing.T) {
34+
if testing.Short() {
35+
t.Skip("Skipping test in short mode")
36+
}
37+
38+
t.Parallel()
39+
3040
tmpDir := t.TempDir()
3141

3242
for _, arch := range []string{"arm64", "amd64"} {
@@ -42,6 +52,12 @@ func TestJqDownloader(t *testing.T) {
4252
}
4353

4454
func TestGoDownloader(t *testing.T) {
55+
if testing.Short() {
56+
t.Skip("Skipping test in short mode")
57+
}
58+
59+
t.Parallel()
60+
4561
tmpDir := t.TempDir()
4662

4763
for _, arch := range []string{"arm64", "amd64"} {

0 commit comments

Comments
 (0)