Skip to content

Commit

Permalink
CLOUDP-257881-map: Skip some of the publishing in some versions (#3059)
Browse files Browse the repository at this point in the history
  • Loading branch information
blva authored Jun 27, 2024
1 parent 1afe98a commit 4addb2d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions tools/genevergreen/generate/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ var (
"7.0",
"8.0",
}

unsupportedOsByVersion = map[string][]string{
"8.0": {"debian11", "rhel70", "amazon2"},
}

oses = []string{
"amazonlinux2",
"centos7",
Expand Down
2 changes: 1 addition & 1 deletion tools/genevergreen/generate/generate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ func TestPublishStableTasks(t *testing.T) {
c := &shrub.Configuration{}
PublishStableTasks(c)
assert.Len(t, c.Variants, 4)
assert.Len(t, c.Tasks, 136)
assert.Len(t, c.Tasks, 126)
}
4 changes: 4 additions & 0 deletions tools/genevergreen/generate/publish.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ package generate

import (
"fmt"
"slices"
"strings"

"github.com/evergreen-ci/shrub"
Expand Down Expand Up @@ -110,6 +111,9 @@ func publishVariant(c *shrub.Configuration, v *shrub.Variant, sv, stableSuffix s
}
for _, r := range repos {
for k, d := range distros {
if slices.Contains(unsupportedOsByVersion[sv], k) {
continue
}
for _, a := range d.architectures {
taskName := fmt.Sprintf("push_atlascli_%s_%s_%s%s%s", k, r, a, strings.ReplaceAll(taskSv, ".", ""), stableSuffix)
t := newPublishTask(taskName, d.extension, r, k, taskServerVersion, notaryKey, a, stable, dependency)
Expand Down

0 comments on commit 4addb2d

Please sign in to comment.