Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TOOLS-3604 Update platforms to rhel8.8 (x86_64 and arm64) and rhel9.3 (x86_64 and arm64) #696

Merged
merged 5 commits into from
Jul 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2078,10 +2078,10 @@ buildvariants:
- name: "push"
run_on: rhel80-small

- name: rhel80
display_name: "# RHEL 8.0"
- name: rhel88
display_name: "# RHEL 8.8"
run_on:
- rhel80-test
- rhel8.8-large
expansions:
<<:
[
Expand Down Expand Up @@ -2116,10 +2116,10 @@ buildvariants:
- name: "push"
run_on: rhel80-small

- name: rhel90
display_name: RHEL 9.0
- name: rhel93
display_name: RHEL 9.3
run_on:
- rhel90-small
- rhel93-small
tasks:
- name: "dist"
- name: "sign"
Expand Down Expand Up @@ -2359,10 +2359,10 @@ buildvariants:
- name: "push"
run_on: rhel80-small

- name: rhel82-aarch64
display_name: RHEL 8.2 ARM
- name: rhel88-aarch64
display_name: RHEL 8.8 ARM
run_on:
- rhel82-arm64
- rhel8.8-arm64-small
stepback: false
tasks:
- name: "dist"
Expand All @@ -2371,10 +2371,10 @@ buildvariants:
- name: "push"
run_on: rhel80-small

- name: rhel90-aarch64
display_name: RHEL 9.0 ARM
- name: rhel93-aarch64
display_name: RHEL 9.3 ARM
run_on:
- rhel90-arm64-small
- rhel93-arm64-small
stepback: false
tasks:
- name: "dist"
Expand Down Expand Up @@ -2456,13 +2456,13 @@ github_pr_aliases:
task: "^.*$"
# Run all integration tests on one variant. We pick RHEL 8.0 because it's
# a relatively recent platform that supports a wide range of servers.
- variant: "rhel80"
- variant: "rhel88"
task: "^(aws-auth|integration|legacy|native-cert-ssl|qa-dump-restore|qa-tests)-.*"
# Run a subset of integration tests against the 3.6 version of MongoDB
# Server on all variants where that is the most recent supported version.
- variant: "^rhel62-no-kerberos$"
task: "integration-3.6"
# Run a subset of integration tests against the latest version of MongoDB
# Server on all variants where that is the most recent supported version.
- variant: "^(rhel80|windows)$"
- variant: "^(rhel88|windows)$"
task: "integration-latest"
16 changes: 16 additions & 0 deletions etc/repo-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,14 @@ repos:
- yum/redhat/8/mongodb-org
- yum/redhat/8Server/mongodb-org

- name: rhel88
type: rpm
edition: org
bucket: repo.mongodb.org
repos:
- yum/redhat/8/mongodb-org
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is all in the same repo for other minor versions- do they overwrite each other?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure, but the server repo does the same thing.

- yum/redhat/8Server/mongodb-org

- name: rhel90
type: rpm
edition: org
Expand All @@ -136,6 +144,14 @@ repos:
- yum/redhat/9/mongodb-org
- yum/redhat/9Server/mongodb-org

- name: rhel93
type: rpm
edition: org
bucket: repo.mongodb.org
repos:
- yum/redhat/9/mongodb-org
- yum/redhat/9Server/mongodb-org

- name: amazon
type: rpm
edition: org
Expand Down
5 changes: 4 additions & 1 deletion release/evergreen/evergreen.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,10 @@ func GetPackageTaskForVersion(variant, version string) (string, error) {

buildID := ""

fmt.Printf("all builds: %s\n", evgVersion.BuildVariantStatus)
fmt.Printf("looking for variant %s within builds:\n", variant)
for _, buildDetail := range evgVersion.BuildVariantStatus {
fmt.Println(buildDetail)
}

for _, buildDetail := range evgVersion.BuildVariantStatus {
if buildDetail.BuildVariant == variant {
Expand Down
35 changes: 19 additions & 16 deletions release/platform/platform.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ type Platform struct {
BinaryExt string
SkipForJSONFeed bool
ServerVariantName string
ServerPlatform string
}

func (p Platform) Variant() string {
Expand Down Expand Up @@ -465,15 +466,6 @@ var platforms = []Platform{
Repos: []Repo{RepoEnterprise},
BuildTags: defaultBuildTags,
},
{
Name: "rhel80",
Arch: ArchX86_64,
OS: OSLinux,
Pkg: PkgRPM,
Repos: []Repo{RepoEnterprise, RepoOrg},
BuildTags: defaultBuildTags,
ServerVariantName: "enterprise-rhel-80-64-bit",
},
{
Name: "rhel81",
Arch: ArchPpc64le,
Expand All @@ -483,31 +475,42 @@ var platforms = []Platform{
BuildTags: defaultBuildTags,
},
{
Name: "rhel82",
Name: "rhel83",
Arch: ArchS390x,
OS: OSLinux,
Pkg: PkgRPM,
Repos: []Repo{RepoEnterprise},
BuildTags: defaultBuildTags,
},
Comment on lines 477 to +484
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You said you removed RHEL 8.3 but it's still listed here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I should correct my comment. I removed RHEL8.0, 8.2, and 9.0 variants, but not RHEL 8.3 because it's ArchS390x.

{
Name: "rhel88",
Arch: ArchAarch64,
OS: OSLinux,
Pkg: PkgRPM,
Repos: []Repo{RepoEnterprise, RepoOrg},
Repos: []Repo{RepoOrg, RepoEnterprise},
BuildTags: defaultBuildTags,
},
{
Name: "rhel83",
Arch: ArchS390x,
Name: "rhel88",
Arch: ArchX86_64,
OS: OSLinux,
Pkg: PkgRPM,
Repos: []Repo{RepoEnterprise},
Repos: []Repo{RepoOrg, RepoEnterprise},
BuildTags: defaultBuildTags,
// Using server rhel 80 builds because "enterprise-rhel-80-64-bit" is not available for all server versions.
ServerVariantName: "enterprise-rhel-80-64-bit",
ServerPlatform: "rhel80",
},
{
Name: "rhel90",
Name: "rhel93",
Arch: ArchAarch64,
OS: OSLinux,
Pkg: PkgRPM,
Repos: []Repo{RepoOrg, RepoEnterprise},
BuildTags: defaultBuildTags,
},
{
Name: "rhel90",
Name: "rhel93",
Arch: ArchX86_64,
OS: OSLinux,
Pkg: PkgRPM,
Expand Down
7 changes: 6 additions & 1 deletion release/release.go
Original file line number Diff line number Diff line change
Expand Up @@ -1357,7 +1357,12 @@ func downloadMongodAndShell(v string) {
err = json.NewDecoder(res.Body).Decode(&feed)
check(err, "decode JSON feed")

url, githash, serverVersion, err := feed.FindURLHashAndVersion(v, pf.Name, string(pf.Arch), "enterprise")
target := pf.Name
if pf.ServerPlatform != "" {
target = pf.ServerPlatform
}

url, githash, serverVersion, err := feed.FindURLHashAndVersion(v, target, string(pf.Arch), "enterprise")
if err == download.ServerURLMissingError {
// If a server version is not found from JSON feed, handle this by downloading the artifacts from evergreen.
fmt.Printf("warning: download a version not found in JSON feed\n")
Expand Down