Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into bump-/macos-export-ce…
Browse files Browse the repository at this point in the history
…rtificate-and-key
  • Loading branch information
addaleax committed Oct 29, 2024
2 parents 29524db + e78998f commit dc20ed8
Show file tree
Hide file tree
Showing 107 changed files with 3,045 additions and 1,997 deletions.
978 changes: 643 additions & 335 deletions .evergreen.yml

Large diffs are not rendered by default.

12 changes: 11 additions & 1 deletion .evergreen/evergreen.yml.in
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,9 @@ post:
visibility: signed
content_type: application/x-gzip
optional: true
- command: attach.xunit_results
params:
file: src/.logs/*.xml


# Functions are any command that can be run.
Expand Down Expand Up @@ -264,6 +267,7 @@ functions:
MONGOSH_RUN_ONLY_IN_PACKAGE: ${mongosh_run_only_in_package}
AWS_AUTH_IAM_ACCESS_KEY_ID: ${devtools_ci_aws_key}
AWS_AUTH_IAM_SECRET_ACCESS_KEY: ${devtools_ci_aws_secret}
TASK_NAME: ${task_name}
- command: s3.put
params:
aws_key: ${aws_key}
Expand Down Expand Up @@ -517,7 +521,7 @@ functions:
AWS_AUTH_IAM_ACCESS_KEY_ID: ${devtools_ci_aws_key}
AWS_AUTH_IAM_SECRET_ACCESS_KEY: ${devtools_ci_aws_secret}
DISABLE_OPENSSL_SHARED_CONFIG_FOR_BUNDLED_OPENSSL: ${disable_openssl_shared_config_for_bundled_openssl}
E2E_TASK_NAME: ${task_name}
TASK_NAME: ${task_name}

###
# PACKAGING AND UPLOADING
Expand Down Expand Up @@ -1124,6 +1128,7 @@ tasks:
mongosh_skip_node_version_check: "<% out(skipNodeVersionCheck) %>"
mongosh_test_id: "<% out(id) %>"
mongosh_run_only_in_package: "<% out(packageName) %>"
task_name: ${task_name}
<% } %>

###
Expand All @@ -1141,6 +1146,7 @@ tasks:
- func: test_vscode
vars:
node_js_version: "<% out(NODE_JS_VERSION_20) %>"
task_name: ${task_name}
- name: test_connectivity
tags: ["extra-integration-test"]
depends_on:
Expand All @@ -1154,6 +1160,7 @@ tasks:
- func: test_connectivity
vars:
node_js_version: "<% out(NODE_JS_VERSION_20) %>"
task_name: ${task_name}
- name: test_apistrict
tags: ["extra-integration-test"]
depends_on:
Expand All @@ -1169,6 +1176,7 @@ tasks:
node_js_version: "<% out(NODE_JS_VERSION_20) %>"
mongosh_server_test_version: "latest-alpha-enterprise"
mongosh_test_force_api_strict: "1"
task_name: ${task_name}
- name: compile_artifact
tags: ["compile-artifact"]
depends_on:
Expand Down Expand Up @@ -1273,6 +1281,7 @@ tasks:
node_js_version: "<% out(NODE_JS_VERSION_20) %>"
test_mongosh_executable: dist/mongosh
kerberos_jumphost_dockerfile: "Dockerfile.<% out(dockerFile) %>"
task_name: ${task_name}
<% } } %>

###
Expand Down Expand Up @@ -1406,6 +1415,7 @@ tasks:
vars:
node_js_version: "<% out(NODE_JS_VERSION_20) %>"
dockerfile: <% out(dockerfile) %>
task_name: ${task_name}
<% }; break;
// We don't have docker for platforms other than x64, so for those we just
// extract the archives locally.
Expand Down
8 changes: 6 additions & 2 deletions .evergreen/install-npm-deps.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
set -e
set -x

npm ci --verbose
if [[ "${DISTRO_ID}" =~ ^(rhel|ubuntu1804) ]]; then
# RHEL and Ubuntu 18.04 use Python 3.6 which isn't supported by newer node-gyp versions
npm i node-gyp@9 --verbose --force
fi

npm ci --verbose
echo "MONOGDB_DRIVER_VERSION_OVERRIDE:$MONOGDB_DRIVER_VERSION_OVERRIDE"

# if MONOGDB_DRIVER_VERSION_OVERRIDE is set, then we want to replace the package version
Expand Down Expand Up @@ -30,4 +34,4 @@ npm run mark-ci-required-optional-dependencies
npm run evergreen-release bump

echo "npm packages after installation"
npm ls || true
npm ls || true
3 changes: 2 additions & 1 deletion .evergreen/run-e2e-tests.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#!/usr/bin/env bash
set -e
export NODE_JS_VERSION=${NODE_JS_VERSION}
export TASK_NAME=${TASK_NAME}

if [[ "$DISABLE_OPENSSL_SHARED_CONFIG_FOR_BUNDLED_OPENSSL" == "true" ]] && [[ ! "$E2E_TASK_NAME" =~ openssl(3|11) ]]; then
if [[ "$DISABLE_OPENSSL_SHARED_CONFIG_FOR_BUNDLED_OPENSSL" == "true" ]] && [[ ! "$TASK_NAME" =~ openssl(3|11) ]]; then
# On RHEL9 and based-distros, an additional configuration option
# `rh-allow-sha1-signatures` is present which is not recognizable to the
# OpenSSL version bundled with Node.js and hence the mongosh binary fails to
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/check-pr-title.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: "Check PR Title"
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review, labeled, unlabeled, converted_to_draft, edited]

jobs:
check-pr-title:
name: Check PR Title
runs-on: ubuntu-latest
steps:
- name: Enforce conventional commit style
uses: realm/ci-actions/title-checker@main
with:
regex: '^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test|ops){1}(\([\w\-\.]+\))?(!)?: .*'
error-hint: 'Invalid PR title. Make sure it follows the conventional commit specification (i.e. "<type>(<optional scope>): <description>") or add the no-title-validation label'
ignore-labels: 'no-title-validation'
- name: Enforce JIRA ticket in title
uses: realm/ci-actions/title-checker@main
# Skip the JIRA ticket check for PRs opened by bots
if: ${{ !contains(github.event.pull_request.user.login, '[bot]') }}
with:
regex: '[A-Z]{4,10}-[0-9]{1,5}$'
error-hint: 'Invalid PR title. Make sure it ends with a JIRA ticket - i.e. MONGOSH-1234 or add the no-title-validation label'
ignore-labels: 'no-title-validation'
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,5 @@ mongocryptd.pid
.sbom
.nvm
snapshot.blob
.logs/*
!.logs/empty.xml
3 changes: 3 additions & 0 deletions .logs/empty.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<!-- An empty test suite which is needed as not all tasks produce XUnit results and the current Evergreen setup always expects some file to be uploaded -->
<testsuite name="empty" tests="0" failures="0" errors="0" skipped="0" timestamp="Fri, 18 Oct 2024 09:21:06 GMT" time="8.907">
</testsuite>
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,4 @@ Alena Khineika <[email protected]>
Orgad Shaneh <[email protected]>
Kræn Hansen <[email protected]>
Gagik Amaryan <[email protected]>
Nikola Irinchev <[email protected]>
Loading

0 comments on commit dc20ed8

Please sign in to comment.