Skip to content

Commit a9a13a6

Browse files
committed
SWIFT-1061 Update main branch to support matrix testing (#604)
This also completes SWIFT-763.
1 parent 4fb8842 commit a9a13a6

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

.evergreen/install-swift.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ PROJECT_DIRECTORY=${PROJECT_DIRECTORY:-$PWD}
77
SWIFT_VERSION=${SWIFT_VERSION:-5.1.5}
88
INSTALL_DIR="${PROJECT_DIRECTORY}/opt"
99

10+
# this is set by drivers-matrix-testing, and it's a special variable used in swiftenv
11+
# leaving it set messes with the installation
12+
unset PLATFORM
13+
1014
export SWIFTENV_ROOT="${INSTALL_DIR}/swiftenv"
1115
export PATH="${SWIFTENV_ROOT}/bin:$PATH"
1216

.evergreen/run-tests.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,14 @@ set -o errexit # Exit the script with error if any of the commands fail
55
# variables
66
PROJECT_DIRECTORY=${PROJECT_DIRECTORY:-$PWD}
77
MONGODB_URI=${MONGODB_URI:-"NO_URI_PROVIDED"}
8-
SWIFT_VERSION=${SWIFT_VERSION:-5.1}
8+
SWIFT_VERSION=${SWIFT_VERSION:-5.2.5}
99
INSTALL_DIR="${PROJECT_DIRECTORY}/opt"
1010
TOPOLOGY=${TOPOLOGY:-single}
1111
OS=$(uname -s | tr '[:upper:]' '[:lower:]')
1212
EXTRA_FLAGS="-Xlinker -rpath -Xlinker ${INSTALL_DIR}/lib"
1313
RAW_TEST_RESULTS="${PROJECT_DIRECTORY}/rawTestResults"
1414
XML_TEST_RESULTS="${PROJECT_DIRECTORY}/testResults.xml"
15+
INSTALL_DEPS=${INSTALL_DEPS:-"false"}
1516

1617
# ssl setup
1718
SSL=${SSL:-nossl}
@@ -20,6 +21,13 @@ if [ "$SSL" != "nossl" ]; then
2021
export SSL_CA_FILE="$DRIVERS_TOOLS/.evergreen/x509gen/ca.pem"
2122
fi
2223

24+
# if dependencies were not installed separately, do so now.
25+
# this is used for continous matrix testing
26+
if [ "$INSTALL_DEPS" == "true" ]; then
27+
SWIFT_VERSION=${SWIFT_VERSION} \
28+
sh ${PROJECT_DIRECTORY}/.evergreen/install-dependencies.sh
29+
fi
30+
2331
# enable swiftenv
2432
export SWIFTENV_ROOT="${INSTALL_DIR}/swiftenv"
2533
export PATH="${SWIFTENV_ROOT}/bin:$PATH"

Sources/MongoSwift/MongoCollection+Indexes.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ public struct IndexOptions: Codable {
5151
/// Optionally specifies the precision of the stored geo hash in the 2d index, from 1 to 32.
5252
public var bits: Int?
5353

54-
/// Optionally specifies the number of units within which to group the location values in a geo haystack index.
54+
/// Optionally specifies the number of units within which to group the location values in a geoHaystack index.
55+
/// Note: geoHaystack indexes are deprecated in MongoDB 4.4 and will be removed in a future version of the
56+
/// server.
5557
public var bucketSize: Int?
5658

5759
/// Optionally specifies a collation to use for the index in MongoDB 3.4 and higher. If not specified, no collation

0 commit comments

Comments
 (0)