Skip to content

Commit 8354fae

Browse files
Resolve merge conflicts
2 parents 8c336ff + bd8b13d commit 8354fae

File tree

2,914 files changed

+68906
-530809
lines changed

Some content is hidden

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

2,914 files changed

+68906
-530809
lines changed

.evergreen/config.yml

Lines changed: 661 additions & 973 deletions
Large diffs are not rendered by default.

.evergreen/run-deployed-lambda-aws-tests.sh

Lines changed: 0 additions & 27 deletions
This file was deleted.

.evergreen/run-mongodb-aws-ecs-test.sh

100644100755
File mode changed.

.evergreen/run-mongodb-aws-test.sh

Lines changed: 0 additions & 24 deletions
This file was deleted.

.evergreen/run-task.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/usr/bin/env bash
2+
#
3+
# Source the env.sh file and run the given task
4+
set -eu
5+
6+
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
7+
PROJECT_DIRECTORY=$(dirname $SCRIPT_DIR)
8+
pushd ${PROJECT_DIRECTORY} > /dev/null
9+
10+
source env.sh
11+
task "$@"
12+
13+
popd > /dev/null

.evergreen/run-tests.sh

Lines changed: 0 additions & 103 deletions
This file was deleted.

.evergreen/setup-system.sh

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
#!/usr/bin/env bash
2+
#
3+
# Set up environment and write env.sh and expansion.yml files.
4+
set -eu
5+
6+
# Set up default environment variables.
7+
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
8+
PROJECT_DIRECTORY=$(dirname $SCRIPT_DIR)
9+
pushd $PROJECT_DIRECTORY
10+
ROOT_DIR=$(dirname $PROJECT_DIRECTORY)
11+
DRIVERS_TOOLS=${DRIVERS_TOOLS:-${ROOT_DIR}/drivers-evergreen-tools}
12+
MONGO_ORCHESTRATION_HOME="${DRIVERS_TOOLS}/.evergreen/orchestration"
13+
MONGODB_BINARIES="${DRIVERS_TOOLS}/mongodb/bin"
14+
OS="${OS:-""}"
15+
16+
# Set Golang environment vars. GOROOT is wherever current Go distribution is, and is set in evergreen config.
17+
# GOPATH is always 3 directories up from pwd on EVG; GOCACHE is under .cache in the pwd.
18+
GOROOT=${GOROOT:-$(dirname "$(dirname "$(which go)")")}
19+
export GOPATH=${GOPATH:-$ROOT_DIR}
20+
export GOCACHE="${GO_CACHE:-$PROJECT_DIRECTORY/.cache}"
21+
22+
# Handle paths on Windows.
23+
if [ "Windows_NT" = "${OS:-}" ]; then # Magic variable in cygwin
24+
GOPATH=$(cygpath -m $GOPATH)
25+
GOCACHE=$(cygpath -w $GOCACHE)
26+
DRIVERS_TOOLS=$(cygpath -m $DRIVERS_TOOLS)
27+
PROJECT_DIRECTORY=$(cygpath -m $PROJECT_DIRECTORY)
28+
EXTRA_PATH=/cygdrive/c/libmongocrypt/bin
29+
MONGO_ORCHESTRATION_HOME=$(cygpath -m $MONGO_ORCHESTRATION_HOME)
30+
MONGODB_BINARIES=$(cygpath -m $MONGODB_BINARIES)
31+
# Set home variables for Windows, too.
32+
USERPROFILE=$(cygpath -w "$ROOT_DIR")
33+
HOME=$USERPROFILE
34+
else
35+
EXTRA_PATH=${GCC:-}
36+
fi
37+
38+
# Add binaries to the path.
39+
PATH="${GOROOT}/bin:${GOPATH}/bin:${MONGODB_BINARIES}:${EXTRA_PATH}:${PATH}"
40+
41+
# Get the current unique version of this checkout.
42+
if [ "${IS_PATCH:-}" = "true" ]; then
43+
CURRENT_VERSION=$(git describe)-patch-${VERSION_ID}
44+
else
45+
CURRENT_VERSION=latest
46+
fi
47+
48+
# Ensure a checkout of drivers-tools.
49+
if [ ! -d "$DRIVERS_TOOLS" ]; then
50+
git clone https://github.com/mongodb-labs/drivers-evergreen-tools $DRIVERS_TOOLS
51+
fi
52+
53+
# Write the .env file for drivers-tools.
54+
cat <<EOT > ${DRIVERS_TOOLS}/.env
55+
SKIP_LEGACY_SHELL=1
56+
DRIVERS_TOOLS="$DRIVERS_TOOLS"
57+
MONGO_ORCHESTRATION_HOME="$MONGO_ORCHESTRATION_HOME"
58+
MONGODB_BINARIES="$MONGODB_BINARIES"
59+
TMPDIR="$MONGO_ORCHESTRATION_HOME/db"
60+
EOT
61+
62+
# Check Go installation.
63+
go version
64+
go env
65+
66+
# Install taskfile.
67+
go install github.com/go-task/task/v3/cmd/[email protected]
68+
69+
# Write our own env file.
70+
cat <<EOT > env.sh
71+
export GOROOT="$GOROOT"
72+
export GOPATH="$GOPATH"
73+
export GOCACHE="$GOCACHE"
74+
export DRIVERS_TOOLS="$DRIVERS_TOOLS"
75+
export PROJECT_DIRECTORY="$PROJECT_DIRECTORY"
76+
export MONGODB_BINARIES="$MONGODB_BINARIES"
77+
export PATH="$PATH"
78+
EOT
79+
80+
if [ "Windows_NT" = "$OS" ]; then
81+
echo "export USERPROFILE=$USERPROFILE" >> env.sh
82+
echo "export HOME=$HOME" >> env.sh
83+
fi
84+
85+
# source the env.sh file and write the expansion file.
86+
cat <<EOT > expansion.yml
87+
CURRENT_VERSION: "$CURRENT_VERSION"
88+
DRIVERS_TOOLS: "$DRIVERS_TOOLS"
89+
PROJECT_DIRECTORY: "$PROJECT_DIRECTORY"
90+
RUN_TASK: "$PROJECT_DIRECTORY/.evergreen/run-task.sh"
91+
EOT
92+
93+
cat env.sh
94+
popd

.github/dependabot.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,8 @@ updates:
1111
- package-ecosystem: gomod
1212
directory: /
1313
schedule:
14-
interval: "weekly"
14+
interval: "weekly"
15+
- package-ecosystem: "gitsubmodule"
16+
directory: "/"
17+
schedule:
18+
interval: "weekly"

.github/labeler.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
priority-3-low:
1+
review-priority-normal:
22
- changed-files:
33
- any-glob-to-any-file: '*'
44

.github/workflows/codeql.yml

Lines changed: 24 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,19 @@ name: "CodeQL"
22

33
on:
44
push:
5-
branches: [ "v1", "cloud-*", "master", "release/*" ]
5+
branches:
6+
- "v1"
7+
- "cloud-*"
8+
- "master"
9+
- "release/*"
10+
- "feature/*"
611
pull_request:
7-
branches: [ "v1", "cloud-*", "master", "release/*" ]
12+
branches:
13+
- "v1"
14+
- "cloud-*"
15+
- "master"
16+
- "release/*"
17+
- "feature/*"
818
schedule:
919
- cron: '36 17 * * 0'
1020
workflow_call:
@@ -15,37 +25,31 @@ on:
1525

1626
jobs:
1727
analyze:
18-
name: Analyze (${{ matrix.language }})
19-
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
20-
timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }}
28+
name: Analyze (go)
29+
runs-on: 'ubuntu-latest'
30+
timeout-minutes: 360
2131
permissions:
2232
# required for all workflows
2333
security-events: write
2434

25-
strategy:
26-
fail-fast: false
27-
matrix:
28-
include:
29-
- language: go
30-
build-mode: manual
31-
3235
steps:
3336
- name: Checkout repository
34-
uses: actions/checkout@v4
37+
uses: actions/checkout@v5
3538

3639
# Initializes the CodeQL tools for scanning.
3740
- name: Initialize CodeQL
3841
uses: github/codeql-action/init@v3
3942
with:
40-
languages: ${{ matrix.language }}
41-
build-mode: ${{ matrix.build-mode }}
43+
languages: go
44+
build-mode: manual
45+
46+
- name: Install Taskfile support
47+
uses: arduino/setup-task@v2
4248

43-
- if: matrix.build-mode == 'manual'
44-
shell: bash
45-
run: |
46-
make build
49+
- shell: bash
50+
run: task build
4751

4852
- name: Perform CodeQL Analysis
4953
uses: github/codeql-action/analyze@v3
5054
with:
51-
category: "/language:${{matrix.language}}"
55+
category: "/language:go"

0 commit comments

Comments
 (0)