Skip to content

Commit 2e10fc5

Browse files
committed
PHPLIB-1613 Load drivers-evergreen-tools using submodule
1 parent f74c42f commit 2e10fc5

File tree

4 files changed

+6
-9
lines changed

4 files changed

+6
-9
lines changed

.evergreen/config/functions.yml

+1-8
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ functions:
1616
CURRENT_VERSION=latest
1717
fi
1818
19-
export DRIVERS_TOOLS="$(pwd)/../drivers-tools"
19+
export DRIVERS_TOOLS="$(pwd)/tests/drivers-tools"
2020
export PROJECT_DIRECTORY="$(pwd)"
2121
2222
# Python has cygwin path problems on Windows. Detect prospective mongo-orchestration home directory
@@ -113,13 +113,6 @@ functions:
113113
params:
114114
script: |
115115
${PREPARE_SHELL}
116-
rm -rf $DRIVERS_TOOLS
117-
if [ "${project}" = "drivers-tools" ]; then
118-
# If this was a patch build, doing a fresh clone would not actually test the patch
119-
cp -R ${PROJECT_DIRECTORY}/ $DRIVERS_TOOLS
120-
else
121-
git clone https://github.com/mongodb-labs/drivers-evergreen-tools.git --depth 1 $DRIVERS_TOOLS
122-
fi
123116
echo "{ \"releases\": { \"default\": \"$MONGODB_BINARIES\" }}" > $MONGO_ORCHESTRATION_HOME/orchestration.config
124117
125118
"upload test results":

.github/workflows/tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
python-version: '3.13'
6868

6969
- id: setup-mongodb
70-
uses: mongodb-labs/drivers-evergreen-tools@master
70+
uses: ./tests/drivers-tools
7171
with:
7272
version: ${{ matrix.mongodb-version }}
7373
topology: ${{ matrix.topology }}

.gitmodules

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
[submodule "drivers-tools"]
2+
path = tests/drivers-tools
3+
url = https://github.com/mongodb-labs/drivers-evergreen-tools
14
[submodule "specifications"]
25
path = tests/specifications
36
url = https://github.com/mongodb/specifications

tests/drivers-tools

Submodule drivers-tools added at 8510323

0 commit comments

Comments
 (0)