Skip to content

PHPC-2200: Add MongoDB rapid releases to Evergreen matrix #1408

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

Merged
merged 6 commits into from
Apr 11, 2023
Merged
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
54 changes: 33 additions & 21 deletions .evergreen/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ functions:
params:
script: |
${PREPARE_SHELL}
MONGODB_VERSION=${VERSION} TOPOLOGY=${TOPOLOGY} AUTH=${AUTH} SSL=${SSL} STORAGE_ENGINE=${STORAGE_ENGINE} LOAD_BALANCER=${LOAD_BALANCER} REQUIRE_API_VERSION=${REQUIRE_API_VERSION} ORCHESTRATION_FILE=${ORCHESTRATION_FILE} sh ${DRIVERS_TOOLS}/.evergreen/run-orchestration.sh
MONGODB_VERSION=${MONGODB_VERSION} TOPOLOGY=${TOPOLOGY} AUTH=${AUTH} SSL=${SSL} STORAGE_ENGINE=${STORAGE_ENGINE} LOAD_BALANCER=${LOAD_BALANCER} REQUIRE_API_VERSION=${REQUIRE_API_VERSION} ORCHESTRATION_FILE=${ORCHESTRATION_FILE} sh ${DRIVERS_TOOLS}/.evergreen/run-orchestration.sh
# run-orchestration generates expansion file with MONGODB_URI and CRYPT_SHARED_LIB_PATH
- command: expansions.update
params:
Expand Down Expand Up @@ -1035,43 +1035,47 @@ axes:
- id: "latest"
display_name: "MongoDB latest"
variables:
VERSION: "latest"
MONGODB_VERSION: "latest"
- id: "rapid"
display_name: "MongoDB rapid"
variables:
MONGODB_VERSION: "rapid"
- id: "6.0"
display_name: "MongoDB 6.0"
variables:
VERSION: "6.0"
MONGODB_VERSION: "6.0"
- id: "5.0"
display_name: "MongoDB 5.0"
variables:
VERSION: "5.0"
MONGODB_VERSION: "5.0"
- id: "4.4"
display_name: "MongoDB 4.4"
variables:
VERSION: "4.4"
MONGODB_VERSION: "4.4"
- id: "4.2"
display_name: "MongoDB 4.2"
variables:
VERSION: "4.2"
MONGODB_VERSION: "4.2"
- id: "4.0"
display_name: "MongoDB 4.0"
variables:
VERSION: "4.0"
MONGODB_VERSION: "4.0"
- id: "3.6"
display_name: "MongoDB 3.6"
variables:
VERSION: "3.6"
MONGODB_VERSION: "3.6"

- id: mongodb-edge-versions
display_name: MongoDB Version
values:
- id: "latest-stable"
display_name: "MongoDB 5.0"
display_name: "MongoDB 6.0"
variables:
VERSION: "5.0"
MONGODB_VERSION: "6.0"
Copy link
Member Author

Choose a reason for hiding this comment

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

Thoughts on using "rapid" here?

See also: mongodb/mongo-php-library#1056 (comment)

Copy link
Member

Choose a reason for hiding this comment

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

SGTM 👍

Copy link
Member Author

Choose a reason for hiding this comment

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

Quoting @JamesKovacs from Slack:

When M.0.0 goes GA, rapid points to (M-1).3.x for a quarter, which isn't useful since no one can run that quarterly release

With that in mind, I think keeping 6.0 makes sense here and we can just bump to 7.0 when that gets released.

- id: "oldest-supported"
display_name: "MongoDB 3.6"
variables:
VERSION: "3.6"
MONGODB_VERSION: "3.6"

- id: php-versions
display_name: PHP Version
Expand Down Expand Up @@ -1196,7 +1200,7 @@ buildvariants:
display_name: "${os}, ${mongodb-versions}, ${php-edge-versions}"
exclude_spec:
# Debian 9.2 only supports up to MongoDB 5.0
- { "os": "debian92", "mongodb-versions": ["6.0", "latest"], "php-edge-versions": "latest-stable" }
- { "os": "debian92", "mongodb-versions": ["6.0", "rapid", "latest"], "php-edge-versions": "latest-stable" }
- { "os": "debian11", "mongodb-versions": ["3.6", "4.0", "4.2", "4.4", "5.0"], "php-edge-versions": "latest-stable" }
tasks:
- name: "test-standalone"
Expand All @@ -1208,7 +1212,7 @@ buildvariants:

# Test ARM64, Power8, and zSeries architectures with MongoDB 4.4
- matrix_name: "test-alt-archs"
matrix_spec: { "os": ["rhel71-power8", "rhel72-zseries", "ubuntu1804-arm64"], "mongodb-versions": ["4.4"], "php-edge-versions": "oldest-supported" }
matrix_spec: { "os": ["rhel71-power8", "rhel72-zseries", "ubuntu1804-arm64"], "mongodb-versions": "4.4", "php-edge-versions": "oldest-supported" }
display_name: "${os}, ${mongodb-versions}, ${php-edge-versions}"
tasks:
- name: "test-standalone-ssl"
Expand Down Expand Up @@ -1236,30 +1240,38 @@ buildvariants:
tasks:
- name: "test-atlas"

# OCSP is available from MongoDB 4.4+ (Debian 10 has MongoDB 4.4+)
- matrix_name: "test-ocsp"
matrix_spec: { "os": "debian10", "mongodb-versions": ["4.4", "5.0", "6.0"], "php-edge-versions": "latest-stable" }
matrix_spec: { "os": "debian10", "mongodb-versions": "*", "php-edge-versions": "latest-stable" }
display_name: "OCSP tests - ${mongodb-versions}"
exclude_spec:
# OCSP is available from MongoDB 4.4+ (Debian 10 has MongoDB 4.4+)
- { "os": "debian10", "mongodb-versions": ["3.6", "4.0", "4.2"], "php-edge-versions": "latest-stable" }
tasks:
- name: ".ocsp"

# Stable API is available from MongoDB 5.0+
- matrix_name: "test-requireApiVersion"
matrix_spec: { "os": "debian11", "mongodb-versions": ["5.0", "6.0"], "php-edge-versions": "latest-stable" }
matrix_spec: { "os": "debian11", "mongodb-versions": "*", "php-edge-versions": "latest-stable" }
display_name: "Versioned API - ${mongodb-versions}"
exclude_spec:
# Stable API is available from MongoDB 5.0+
- { "os": "debian11", "mongodb-versions": ["3.6", "4.0", "4.2", "4.4"], "php-edge-versions": "latest-stable" }
tasks:
- name: "test-requireApiVersion"

# Load balancer is available from MongoDB 5.0+
- matrix_name: "test-loadBalanced"
matrix_spec: { "os": "debian11", "mongodb-versions": ["5.0", "6.0"], "php-edge-versions": "latest-stable" }
matrix_spec: { "os": "debian11", "mongodb-versions": "*", "php-edge-versions": "latest-stable" }
display_name: "Load balanced - ${mongodb-versions}"
exclude_spec:
# Load balancer is available from MongoDB 5.0+
- { "os": "debian11", "mongodb-versions": ["3.6", "4.0", "4.2", "4.4"], "php-edge-versions": "latest-stable" }
Copy link
Member Author

Choose a reason for hiding this comment

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

The test-csfle-skip_crypt_shared matrix below currently use 6.0 exclusively. Let me know if you think it makes sense to test on 6.0+ using an exclude_spec similar to what we have here.

See also: mongodb/mongo-php-library#1056 (comment)

Copy link
Member

Choose a reason for hiding this comment

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

SGTM 👍

tasks:
- name: "test-loadBalanced"

# CSFLE crypt_shared is available from MongoDB 6.0+, so explicitly test without it to allow use of mongocryptd
- matrix_name: "test-csfle-skip_crypt_shared"
matrix_spec: { "os": "debian11", "mongodb-versions": "6.0", "php-edge-versions": "latest-stable" }
matrix_spec: { "os": "debian11", "mongodb-versions": "*", "php-edge-versions": "latest-stable" }
display_name: "CSFLE skip_crypt_shared - ${mongodb-versions}"
exclude_spec:
# CSFLE crypt_shared is available from MongoDB 6.0+
- { "os": "debian11", "mongodb-versions": ["3.6", "4.0", "4.2", "4.4", "5.0"], "php-edge-versions": "latest-stable" }
tasks:
- name: "test-skip_crypt_shared"