Skip to content

Commit 3207884

Browse files
Merge remote-tracking branch 'origin/main' into beta-releases
2 parents b4b5864 + 32d3da5 commit 3207884

File tree

79 files changed

+1724
-4890
lines changed

Some content is hidden

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

79 files changed

+1724
-4890
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#!/bin/bash
2+
3+
set -euo pipefail
4+
5+
DOCKER_HUB_URL="https://index.docker.io/v1/"
6+
7+
STDIN=$(cat)
8+
9+
ACTION="$1"
10+
11+
case "$ACTION" in
12+
get)
13+
SERVER_URL="$STDIN"
14+
15+
if [[ "$SERVER_URL" == "$DOCKER_HUB_URL" ]]; then
16+
if [[ -z "${DOCKERHUB_USERNAME:-}" || -z "${DOCKERHUB_PASSWORD:-}" ]]; then
17+
echo "Error: DOCKERHUB_USERNAME or DOCKERHUB_PASSWORD environment variables are not set." >&2
18+
exit 1
19+
fi
20+
21+
echo "{\"Username\": \"$DOCKERHUB_USERNAME\", \"Secret\": \"$DOCKERHUB_PASSWORD\"}"
22+
else
23+
echo "Error: No credentials available for $SERVER_URL" >&2
24+
exit 1
25+
fi
26+
;;
27+
28+
*)
29+
echo "Unsupported action: $ACTION" >&2
30+
exit 1
31+
;;
32+
esac
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"auths": {
3+
"https://index.docker.io/v1/": {}
4+
},
5+
"credsStore": "from-env"
6+
}

.evergreen/functions.yml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ variables:
7878
GARASIGN_PASSWORD: ${garasign_password}
7979
ARTIFACTORY_USERNAME: ${artifactory_username}
8080
ARTIFACTORY_PASSWORD: ${artifactory_password}
81+
DOCKERHUB_USERNAME: ${dockerhub_username}
82+
DOCKERHUB_PASSWORD: ${dockerhub_password}
8183

8284
# This is here with the variables because anchors aren't supported across includes
8385
post:
@@ -982,16 +984,7 @@ functions:
982984
983985
echo
984986
985-
# Runs for all the commits on main, including nightly builds:
986-
if [[ "$EVERGREEN_IS_PATCH" != "true" ]] && [[ "${project}" == "10gen-compass-main" ]]; then
987-
export JIRA_BASE_URL="https://jira.mongodb.org"
988-
export JIRA_PROJECT="COMPASS"
989-
export JIRA_VULNERABILITY_BUILD_INFO="- [Evergreen task|$EVERGREEN_TASK_URL]"
990-
991-
npm run create-vulnerability-tickets
992-
else
993-
cat .sbom/vulnerability-report.md
994-
fi
987+
cat .sbom/vulnerability-report.md
995988
996989
echo
997990

.evergreen/preinstall.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ echo "IS_WINDOWS: $IS_WINDOWS"
1818
echo "IS_RHEL: $IS_RHEL"
1919
echo "IS_UBUNTU: $IS_UBUNTU"
2020

21+
echo "DOCKER_CONFIG: $DOCKER_CONFIG"
22+
2123
SCRIPTDIR="$(cd $(dirname "$0"); pwd)"
2224

2325
if [ -n "$IS_WINDOWS" ]; then

.evergreen/print-compass-env.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ function printCompassEnv() {
7474
pathsToPrepend.unshift('/opt/mongodbtoolchain/v4/bin');
7575
}
7676

77+
pathsToPrepend.unshift(`${originalPWD}/.evergreen/docker-config/bin`);
78+
7779
PATH = maybePrependPaths(PATH, pathsToPrepend);
7880
printVar('PATH', PATH);
7981

@@ -113,6 +115,8 @@ function printCompassEnv() {
113115

114116
// https://jira.mongodb.org/browse/NODE-6320
115117
printVar('GYP_DEFINES', `kerberos_use_rtld=${process.platform === 'linux'}`);
118+
119+
printVar('DOCKER_CONFIG', `${originalPWD}/.evergreen/docker-config`);
116120
}
117121

118122
printCompassEnv();

.evergreen/start-atlas-cloud-cluster.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
RUN_ID="$(date +"%s")-$(git rev-parse --short HEAD)"
44
DELETE_AFTER="$(date -u -Iseconds -d '+2 hours' 2>/dev/null || date -u -Iseconds -v '+2H')"
5+
DOCKER_REGISTRY="${DOCKER_REGISTRY:-docker.io}"
56

67
# This script helps to automatically provision Atlas cluster for running the e2e
78
# tests against. In CI this will always create a new cluster and delete it when
@@ -39,8 +40,8 @@ DELETE_AFTER="$(date -u -Iseconds -d '+2 hours' 2>/dev/null || date -u -Iseconds
3940
# MCLI_ORG_ID Org ID
4041
# MCLI_PROJECT_ID Project ID
4142
#
42-
# COMPASS_E2E_ATLAS_CLOUD_SANDBOX_USERNAME Cloud user you created
43-
# COMPASS_E2E_ATLAS_CLOUD_SANDBOX_PASSWORD Cloud user password
43+
# COMPASS_E2E_ATLAS_CLOUD_SANDBOX_USERNAME Cloud user you created
44+
# COMPASS_E2E_ATLAS_CLOUD_SANDBOX_PASSWORD Cloud user password
4445
#
4546
# - Source the script followed by running the tests to make sure that some
4647
# variables exported from this script are available for the test env:
@@ -68,7 +69,7 @@ function atlascli() {
6869
-e MCLI_ORG_ID \
6970
-e MCLI_PROJECT_ID \
7071
-e MCLI_OPS_MANAGER_URL \
71-
mongodb/atlas atlas $@
72+
"$DOCKER_REGISTRY/mongodb/atlas" atlas $@
7273
}
7374

7475
cleanup() {

THIRD-PARTY-NOTICES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
The following third-party software is used by and included in **Mongodb Compass**.
2-
This document was automatically generated on Mon Nov 18 2024.
2+
This document was automatically generated on Sun Nov 24 2024.
33

44
## List of dependencies
55

docs/tracking-plan.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
# Compass Tracking Plan
33

4-
Generated on Mon, Nov 18, 2024 at 04:28 PM
4+
Generated on Sun, Nov 24, 2024 at 03:21 AM
55

66
## Table of Contents
77

package-lock.json

Lines changed: 0 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@
5656
"snyk-test": "node scripts/snyk-test.js",
5757
"pregenerate-vulnerability-report": "npm run compile -w packages/compass && npm run snyk-test",
5858
"generate-vulnerability-report": "mongodb-sbom-tools generate-vulnerability-report --snyk-reports=.sbom/snyk-test-result.json --dependencies=.sbom/dependencies.json --fail-on=high > .sbom/vulnerability-report.md",
59-
"create-vulnerability-tickets": "mongodb-sbom-tools generate-vulnerability-report --snyk-reports=.sbom/snyk-test-result.json --dependencies=.sbom/dependencies.json --create-jira-issues",
6059
"generate-first-party-deps-json": "mongodb-sbom-tools fetch-codeql-results --first-party-deps-list-dest=.sbom/first-party-deps.json --dependencies=.sbom/dependencies.json --exclude-repos=mongodb-js/kerberos",
6160
"create-static-analysis-report": "mongodb-sbom-tools fetch-codeql-results --sarif-dest=.sbom/codeql.sarif.json",
6261
"postcreate-static-analysis-report": "mongodb-sbom-tools sarif-to-markdown --sarif=.sbom/codeql.sarif.json --md=.sbom/codeql.md",

0 commit comments

Comments
 (0)