Skip to content

Commit

Permalink
CLOUDP-303934: Drop mdb5.0 from atlascli (#3695)
Browse files Browse the repository at this point in the history
  • Loading branch information
gssbzn authored Mar 3, 2025
1 parent 85f6bb7 commit 5ead451
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 14 deletions.
14 changes: 5 additions & 9 deletions tools/genevergreen/generate/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ const (

var (
serverVersions = []string{
"5.0",
"6.0",
"7.0",
"8.0",
Expand All @@ -38,7 +37,6 @@ var (
"8.0": {"debian11"},
"7.0": {"ubuntu2404"},
"6.0": {"ubuntu2404"},
"5.0": {"ubuntu2404"},
}

oses = []string{
Expand Down Expand Up @@ -99,14 +97,12 @@ func RepoTasks(c *shrub.Configuration) {
if repo == "org" {
mongoRepo = "https://repo.mongodb.org"
}

t := &shrub.Task{
Name: fmt.Sprintf("test_repo_atlascli_%v_%v_%v", os, repo, serverVersion),
}

if slices.Contains(unsupportedNewOsByVersion[serverVersion], newOs[os]) {
continue
}
t := &shrub.Task{
Name: fmt.Sprintf("test_repo_atlascli_%s_%s_%s", os, repo, serverVersion),
}

t = t.Stepback(false).
GitTagOnly(true).
Expand All @@ -117,7 +113,7 @@ func RepoTasks(c *shrub.Configuration) {
"package": pkg,
"entrypoint": entrypoint,
"image": os,
"mongo_package": fmt.Sprintf("mongodb-%v", repo),
"mongo_package": "mongodb-" + repo,
"mongo_repo": mongoRepo,
})
c.Tasks = append(c.Tasks, t)
Expand All @@ -138,7 +134,7 @@ func PostPkgTasks(c *shrub.Configuration) {

for _, os := range oses {
t := &shrub.Task{
Name: fmt.Sprintf("pkg_test_atlascli_docker_%v", os),
Name: "pkg_test_atlascli_docker_" + os,
}
t = t.Dependency(shrub.TaskDependency{
Name: "package_goreleaser",
Expand Down
10 changes: 5 additions & 5 deletions tools/genevergreen/generate/generate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ func TestPublishStableTasks(t *testing.T) {
}

assert.True(t, commandFound, "expected to find a push command")
assert.Len(t, c.Variants, 4)
assert.Len(t, c.Tasks, 120)
assert.Len(t, c.Variants, 3)
assert.Len(t, c.Tasks, 90)
}

func TestPostPkgMetaTasks(t *testing.T) {
Expand All @@ -94,7 +94,7 @@ func TestPostPkgMetaTasks(t *testing.T) {
}
}
assert.Len(t, c.Variants, 1)
assert.Len(t, c.Tasks, 28)
assert.Len(t, c.Tasks, 21)
}

func TestRepoTasks(t *testing.T) {
Expand All @@ -114,6 +114,6 @@ func TestRepoTasks(t *testing.T) {
}
}

assert.Len(t, c.Variants, 4)
assert.Len(t, c.Tasks, 56)
assert.Len(t, c.Variants, 3)
assert.Len(t, c.Tasks, 42)
}

0 comments on commit 5ead451

Please sign in to comment.