Skip to content

Commit 6517225

Browse files
authored
GODRIVER-2518 Use Go 1.18 for Evergreen CI. (#1047)
1 parent ea15bb4 commit 6517225

File tree

3 files changed

+37
-40
lines changed

3 files changed

+37
-40
lines changed

.evergreen/config.yml

Lines changed: 35 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -242,10 +242,7 @@ functions:
242242
243243
# Install linters. Use "go install" instead of "go get" to prevent modifying the go.mod
244244
# file.
245-
# TODO(GODRIVER-2519): The "latest" version of golangci-lint currently requires Go 1.19.
246-
# TODO Pin to the "latest" version of golangci-lint again when we update the Evergreen CI
247-
# TODO to use Go 1.19.
248-
go install github.com/golangci/golangci-lint/cmd/[email protected]
245+
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
249246
go install github.com/walle/lll/...@latest
250247
251248
upload-mo-artifacts:
@@ -2002,7 +1999,7 @@ tasks:
20021999
echo "Untarring file ... begin"
20032000
GCPKMS_CMD="tar xf testgcpkms.tgz" $DRIVERS_TOOLS/.evergreen/csfle/gcpkms/run-command.sh
20042001
echo "Untarring file ... end"
2005-
2002+
20062003
- command: shell.exec
20072004
type: test
20082005
params:
@@ -2112,88 +2109,88 @@ axes:
21122109
- id: os-ssl-32
21132110
display_name: OS
21142111
values:
2115-
- id: "windows-64-go-1-17"
2112+
- id: "windows-64-go-1-18"
21162113
display_name: "Windows 64-bit"
21172114
run_on:
21182115
- windows-64-vs2017-test
21192116
variables:
21202117
GCC_PATH: "/cygdrive/c/ProgramData/chocolatey/lib/mingw/tools/install/mingw64/bin"
2121-
GO_DIST: "C:\\golang\\go1.17"
2118+
GO_DIST: "C:\\golang\\go1.18"
21222119
PYTHON3_BINARY: "C:/python/Python38/python.exe"
21232120
VENV_BIN_DIR: "Scripts"
2124-
- id: "ubuntu1604-64-go-1-17"
2121+
- id: "ubuntu1604-64-go-1-18"
21252122
display_name: "Ubuntu 16.04"
21262123
run_on: ubuntu1604-build
21272124
variables:
2128-
GO_DIST: "/opt/golang/go1.17"
2125+
GO_DIST: "/opt/golang/go1.18"
21292126
PYTHON3_BINARY: "/opt/python/3.8/bin/python3"
2130-
- id: "osx-go-1-17"
2127+
- id: "osx-go-1-18"
21312128
display_name: "MacOS 10.15"
21322129
run_on: macos-1015
21332130
variables:
2134-
GO_DIST: "/opt/golang/go1.17"
2131+
GO_DIST: "/opt/golang/go1.18"
21352132
PYTHON3_BINARY: python3
21362133

21372134
# OSes that require >= 4.0 for SSL
21382135
- id: os-ssl-40
21392136
display_name: OS
21402137
values:
2141-
- id: "windows-64-go-1-17"
2138+
- id: "windows-64-go-1-18"
21422139
display_name: "Windows 64-bit"
21432140
run_on:
21442141
- windows-64-vs2017-test
21452142
variables:
21462143
GCC_PATH: "/cygdrive/c/ProgramData/chocolatey/lib/mingw/tools/install/mingw64/bin"
2147-
GO_DIST: "C:\\golang\\go1.17"
2144+
GO_DIST: "C:\\golang\\go1.18"
21482145
PYTHON3_BINARY: "C:/python/Python38/python.exe"
21492146
VENV_BIN_DIR: "Scripts"
2150-
- id: "ubuntu1804-64-go-1-17"
2147+
- id: "ubuntu1804-64-go-1-18"
21512148
display_name: "Ubuntu 18.04"
21522149
run_on: ubuntu1804-build
21532150
variables:
2154-
GO_DIST: "/opt/golang/go1.17"
2151+
GO_DIST: "/opt/golang/go1.18"
21552152
PYTHON3_BINARY: "/opt/python/3.8/bin/python3"
2156-
- id: "osx-go-1-17"
2153+
- id: "osx-go-1-18"
21572154
display_name: "MacOS 10.15"
21582155
run_on: macos-1015
21592156
variables:
2160-
GO_DIST: "/opt/golang/go1.17"
2157+
GO_DIST: "/opt/golang/go1.18"
21612158
PYTHON3_BINARY: python3
21622159

21632160
# OCSP linux tasks need to run against this OS since stapling is disabled on Ubuntu 18.04 (SERVER-51364)
21642161
- id: ocsp-rhel-70
21652162
display_name: OS
21662163
values:
2167-
- id: "rhel70-go-1-17"
2164+
- id: "rhel70-go-1-18"
21682165
display_name: "RHEL 7.0"
21692166
run_on: rhel70-build
21702167
variables:
2171-
GO_DIST: "/opt/golang/go1.17"
2168+
GO_DIST: "/opt/golang/go1.18"
21722169
PYTHON3_BINARY: "/opt/python/3.6/bin/python3"
21732170

21742171
- id: os-aws-auth
21752172
display_name: OS
21762173
values:
2177-
- id: "windows-64-vsMulti-small-go-1-17"
2174+
- id: "windows-64-vsMulti-small-go-1-18"
21782175
display_name: "Windows 64-bit"
21792176
run_on:
21802177
- windows-64-vsMulti-small
21812178
variables:
21822179
GCC_PATH: "/cygdrive/c/ProgramData/chocolatey/lib/mingw/tools/install/mingw64/bin"
2183-
GO_DIST: "C:\\golang\\go1.17"
2180+
GO_DIST: "C:\\golang\\go1.18"
21842181
SKIP_ECS_AUTH_TEST: true
21852182
PYTHON3_BINARY: "C:/python/Python38/python.exe"
2186-
- id: "ubuntu1804-64-go-1-17"
2183+
- id: "ubuntu1804-64-go-1-18"
21872184
display_name: "Ubuntu 18.04"
21882185
run_on: ubuntu1804-test
21892186
variables:
2190-
GO_DIST: "/opt/golang/go1.17"
2187+
GO_DIST: "/opt/golang/go1.18"
21912188
PYTHON3_BINARY: "/opt/python/3.8/bin/python3"
2192-
- id: "osx-go-1-17"
2189+
- id: "osx-go-1-18"
21932190
display_name: "MacOS 10.15"
21942191
run_on: macos-1015
21952192
variables:
2196-
GO_DIST: "/opt/golang/go1.17"
2193+
GO_DIST: "/opt/golang/go1.18"
21972194
SKIP_ECS_AUTH_TEST: true
21982195
SKIP_EC2_AUTH_TEST: true
21992196
PYTHON3_BINARY: python3
@@ -2291,7 +2288,7 @@ buildvariants:
22912288
run_on:
22922289
- ubuntu1804-build
22932290
expansions:
2294-
GO_DIST: "/opt/golang/go1.17"
2291+
GO_DIST: "/opt/golang/go1.18"
22952292
tasks:
22962293
- name: ".static-analysis"
22972294

@@ -2300,7 +2297,7 @@ buildvariants:
23002297
run_on:
23012298
- ubuntu1804-build
23022299
expansions:
2303-
GO_DIST: "/opt/golang/go1.17"
2300+
GO_DIST: "/opt/golang/go1.18"
23042301
tasks:
23052302
- name: ".performance"
23062303

@@ -2309,7 +2306,7 @@ buildvariants:
23092306
run_on:
23102307
- ubuntu1804-test
23112308
expansions:
2312-
GO_DIST: "/opt/golang/go1.17"
2309+
GO_DIST: "/opt/golang/go1.18"
23132310
tasks:
23142311
- name: ".compile-check"
23152312

@@ -2318,7 +2315,7 @@ buildvariants:
23182315
run_on:
23192316
- ubuntu1804-build
23202317
expansions:
2321-
GO_DIST: "/opt/golang/go1.17"
2318+
GO_DIST: "/opt/golang/go1.18"
23222319
tasks:
23232320
- name: "atlas-test"
23242321

@@ -2327,7 +2324,7 @@ buildvariants:
23272324
run_on:
23282325
- ubuntu1804-build
23292326
expansions:
2330-
GO_DIST: "/opt/golang/go1.17"
2327+
GO_DIST: "/opt/golang/go1.18"
23312328
tasks:
23322329
- name: "test-atlas-data-lake"
23332330

@@ -2386,22 +2383,22 @@ buildvariants:
23862383
- name: "aws-auth-test"
23872384

23882385
- matrix_name: "ocsp-test"
2389-
matrix_spec: { version: ["4.4", "5.0", "6.0", "latest"], ocsp-rhel-70: ["rhel70-go-1-17"] }
2386+
matrix_spec: { version: ["4.4", "5.0", "6.0", "latest"], ocsp-rhel-70: ["rhel70-go-1-18"] }
23902387
display_name: "OCSP ${version} ${ocsp-rhel-70}"
23912388
batchtime: 20160 # Use a batchtime of 14 days as suggested by the OCSP test README
23922389
tasks:
23932390
- name: ".ocsp"
23942391

23952392
- matrix_name: "ocsp-test-windows"
2396-
matrix_spec: { version: ["4.4", "5.0", "6.0", "latest"], os-ssl-40: ["windows-64-go-1-17"] }
2393+
matrix_spec: { version: ["4.4", "5.0", "6.0", "latest"], os-ssl-40: ["windows-64-go-1-18"] }
23972394
display_name: "OCSP ${version} ${os-ssl-40}"
23982395
batchtime: 20160 # Use a batchtime of 14 days as suggested by the OCSP test README
23992396
tasks:
24002397
# Windows MongoDB servers do not staple OCSP responses and only support RSA.
24012398
- name: ".ocsp-rsa !.ocsp-staple"
24022399

24032400
- matrix_name: "ocsp-test-macos"
2404-
matrix_spec: { version: ["4.4", "5.0", "6.0", "latest"], os-ssl-40: ["osx-go-1-17"] }
2401+
matrix_spec: { version: ["4.4", "5.0", "6.0", "latest"], os-ssl-40: ["osx-go-1-18"] }
24052402
display_name: "OCSP ${version} ${os-ssl-40}"
24062403
batchtime: 20160 # Use a batchtime of 14 days as suggested by the OCSP test README
24072404
tasks:
@@ -2415,26 +2412,26 @@ buildvariants:
24152412
- name: ".versioned-api"
24162413

24172414
- matrix_name: "kms-tls-test"
2418-
matrix_spec: { version: ["latest"], os-ssl-40: ["ubuntu1804-64-go-1-17"] }
2415+
matrix_spec: { version: ["latest"], os-ssl-40: ["ubuntu1804-64-go-1-18"] }
24192416
display_name: "KMS TLS ${os-ssl-40}"
24202417
tasks:
24212418
- name: ".kms-tls"
24222419

24232420
- matrix_name: "load-balancer-test"
24242421
# The LB software is only available on Ubuntu 18.04, so we don't test on all OSes.
2425-
matrix_spec: { version: ["5.0", "6.0", "latest", "rapid"], os-ssl-40: ["ubuntu1804-64-go-1-17"] }
2422+
matrix_spec: { version: ["5.0", "6.0", "latest", "rapid"], os-ssl-40: ["ubuntu1804-64-go-1-18"] }
24262423
display_name: "Load Balancer Support ${version} ${os-ssl-40}"
24272424
tasks:
24282425
- name: ".load-balancer"
24292426

24302427
- matrix_name: "serverless"
2431-
matrix_spec: { os-ssl-40: ["ubuntu1804-64-go-1-17"] }
2428+
matrix_spec: { os-ssl-40: ["ubuntu1804-64-go-1-18"] }
24322429
display_name: "Serverless ${os-ssl-40}"
24332430
tasks:
24342431
- "serverless_task_group"
24352432

24362433
- matrix_name: "kms-kmip-test"
2437-
matrix_spec: { version: ["latest"], os-ssl-40: ["ubuntu1804-64-go-1-17"] }
2434+
matrix_spec: { version: ["latest"], os-ssl-40: ["ubuntu1804-64-go-1-18"] }
24382435
display_name: "KMS KMIP ${os-ssl-40}"
24392436
tasks:
24402437
- name: ".kms-kmip"
@@ -2444,7 +2441,7 @@ buildvariants:
24442441
run_on:
24452442
- debian11-small
24462443
expansions:
2447-
GO_DIST: "/opt/golang/go1.17"
2444+
GO_DIST: "/opt/golang/go1.18"
24482445
tasks:
24492446
- name: testgcpkms_task_group
24502447
batchtime: 20160 # Use a batchtime of 14 days as suggested by the CSFLE test README

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ The MongoDB supported driver for Go.
2222
-------------------------
2323
## Requirements
2424

25-
- Go 1.10 or higher if using the driver as a dependency. Go 1.17 or higher if building the driver yourself. We aim to support the latest versions of Go.
25+
- Go 1.10 or higher if using the driver as a dependency. Go 1.18 or higher if building the driver yourself. We aim to support the latest versions of Go.
2626
- MongoDB 2.6 and higher.
2727

2828
-------------------------

docs/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Before starting to write code, look for existing [tickets](https://jira.mongodb.
1313
The Go Driver team uses GitHub to manage and review all code changes. Patches should generally be made against the master (default) branch and include relevant tests, if
1414
applicable.
1515

16-
Code should compile and tests should pass under all Go versions which the driver currently supports. Currently the Go Driver supports a minimum version of Go 1.10 and requires Go 1.17 for development. Please run the following Make targets to validate your changes:
16+
Code should compile and tests should pass under all Go versions which the driver currently supports. Currently the Go Driver supports a minimum version of Go 1.10 and requires Go 1.18 for development. Please run the following Make targets to validate your changes:
1717
- `make fmt`
1818
- `make lint` (requires [golangci-lint](https://github.com/golangci/golangci-lint) and [lll](https://github.com/walle/lll) to be installed and available in the `PATH`)
1919
- `make test`

0 commit comments

Comments
 (0)