Skip to content

Commit dc20ed8

Browse files
committed
Merge remote-tracking branch 'origin/main' into bump-/macos-export-certificate-and-key
2 parents 29524db + e78998f commit dc20ed8

File tree

107 files changed

+3045
-1997
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

107 files changed

+3045
-1997
lines changed

.evergreen.yml

Lines changed: 643 additions & 335 deletions
Large diffs are not rendered by default.

.evergreen/evergreen.yml.in

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,9 @@ post:
130130
visibility: signed
131131
content_type: application/x-gzip
132132
optional: true
133+
- command: attach.xunit_results
134+
params:
135+
file: src/.logs/*.xml
133136

134137

135138
# Functions are any command that can be run.
@@ -264,6 +267,7 @@ functions:
264267
MONGOSH_RUN_ONLY_IN_PACKAGE: ${mongosh_run_only_in_package}
265268
AWS_AUTH_IAM_ACCESS_KEY_ID: ${devtools_ci_aws_key}
266269
AWS_AUTH_IAM_SECRET_ACCESS_KEY: ${devtools_ci_aws_secret}
270+
TASK_NAME: ${task_name}
267271
- command: s3.put
268272
params:
269273
aws_key: ${aws_key}
@@ -517,7 +521,7 @@ functions:
517521
AWS_AUTH_IAM_ACCESS_KEY_ID: ${devtools_ci_aws_key}
518522
AWS_AUTH_IAM_SECRET_ACCESS_KEY: ${devtools_ci_aws_secret}
519523
DISABLE_OPENSSL_SHARED_CONFIG_FOR_BUNDLED_OPENSSL: ${disable_openssl_shared_config_for_bundled_openssl}
520-
E2E_TASK_NAME: ${task_name}
524+
TASK_NAME: ${task_name}
521525

522526
###
523527
# PACKAGING AND UPLOADING
@@ -1124,6 +1128,7 @@ tasks:
11241128
mongosh_skip_node_version_check: "<% out(skipNodeVersionCheck) %>"
11251129
mongosh_test_id: "<% out(id) %>"
11261130
mongosh_run_only_in_package: "<% out(packageName) %>"
1131+
task_name: ${task_name}
11271132
<% } %>
11281133

11291134
###
@@ -1141,6 +1146,7 @@ tasks:
11411146
- func: test_vscode
11421147
vars:
11431148
node_js_version: "<% out(NODE_JS_VERSION_20) %>"
1149+
task_name: ${task_name}
11441150
- name: test_connectivity
11451151
tags: ["extra-integration-test"]
11461152
depends_on:
@@ -1154,6 +1160,7 @@ tasks:
11541160
- func: test_connectivity
11551161
vars:
11561162
node_js_version: "<% out(NODE_JS_VERSION_20) %>"
1163+
task_name: ${task_name}
11571164
- name: test_apistrict
11581165
tags: ["extra-integration-test"]
11591166
depends_on:
@@ -1169,6 +1176,7 @@ tasks:
11691176
node_js_version: "<% out(NODE_JS_VERSION_20) %>"
11701177
mongosh_server_test_version: "latest-alpha-enterprise"
11711178
mongosh_test_force_api_strict: "1"
1179+
task_name: ${task_name}
11721180
- name: compile_artifact
11731181
tags: ["compile-artifact"]
11741182
depends_on:
@@ -1273,6 +1281,7 @@ tasks:
12731281
node_js_version: "<% out(NODE_JS_VERSION_20) %>"
12741282
test_mongosh_executable: dist/mongosh
12751283
kerberos_jumphost_dockerfile: "Dockerfile.<% out(dockerFile) %>"
1284+
task_name: ${task_name}
12761285
<% } } %>
12771286

12781287
###
@@ -1406,6 +1415,7 @@ tasks:
14061415
vars:
14071416
node_js_version: "<% out(NODE_JS_VERSION_20) %>"
14081417
dockerfile: <% out(dockerfile) %>
1418+
task_name: ${task_name}
14091419
<% }; break;
14101420
// We don't have docker for platforms other than x64, so for those we just
14111421
// extract the archives locally.

.evergreen/install-npm-deps.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
set -e
22
set -x
33

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

9+
npm ci --verbose
610
echo "MONOGDB_DRIVER_VERSION_OVERRIDE:$MONOGDB_DRIVER_VERSION_OVERRIDE"
711

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

3236
echo "npm packages after installation"
33-
npm ls || true
37+
npm ls || true

.evergreen/run-e2e-tests.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
#!/usr/bin/env bash
22
set -e
33
export NODE_JS_VERSION=${NODE_JS_VERSION}
4+
export TASK_NAME=${TASK_NAME}
45

5-
if [[ "$DISABLE_OPENSSL_SHARED_CONFIG_FOR_BUNDLED_OPENSSL" == "true" ]] && [[ ! "$E2E_TASK_NAME" =~ openssl(3|11) ]]; then
6+
if [[ "$DISABLE_OPENSSL_SHARED_CONFIG_FOR_BUNDLED_OPENSSL" == "true" ]] && [[ ! "$TASK_NAME" =~ openssl(3|11) ]]; then
67
# On RHEL9 and based-distros, an additional configuration option
78
# `rh-allow-sha1-signatures` is present which is not recognizable to the
89
# OpenSSL version bundled with Node.js and hence the mongosh binary fails to
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: "Check PR Title"
2+
on:
3+
pull_request:
4+
types: [opened, synchronize, reopened, ready_for_review, labeled, unlabeled, converted_to_draft, edited]
5+
6+
jobs:
7+
check-pr-title:
8+
name: Check PR Title
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Enforce conventional commit style
12+
uses: realm/ci-actions/title-checker@main
13+
with:
14+
regex: '^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test|ops){1}(\([\w\-\.]+\))?(!)?: .*'
15+
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'
16+
ignore-labels: 'no-title-validation'
17+
- name: Enforce JIRA ticket in title
18+
uses: realm/ci-actions/title-checker@main
19+
# Skip the JIRA ticket check for PRs opened by bots
20+
if: ${{ !contains(github.event.pull_request.user.login, '[bot]') }}
21+
with:
22+
regex: '[A-Z]{4,10}-[0-9]{1,5}$'
23+
error-hint: 'Invalid PR title. Make sure it ends with a JIRA ticket - i.e. MONGOSH-1234 or add the no-title-validation label'
24+
ignore-labels: 'no-title-validation'

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,5 @@ mongocryptd.pid
2626
.sbom
2727
.nvm
2828
snapshot.blob
29+
.logs/*
30+
!.logs/empty.xml

.logs/empty.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<!-- 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 -->
2+
<testsuite name="empty" tests="0" failures="0" errors="0" skipped="0" timestamp="Fri, 18 Oct 2024 09:21:06 GMT" time="8.907">
3+
</testsuite>

AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,4 @@ Alena Khineika <[email protected]>
4141
Orgad Shaneh <[email protected]>
4242
Kræn Hansen <[email protected]>
4343
Gagik Amaryan <[email protected]>
44+
Nikola Irinchev <[email protected]>

0 commit comments

Comments
 (0)