Skip to content

Commit b372d5a

Browse files
committed
GODRIVER-3324 Upgrade CI Go to 1.22 and golangci-lint to 1.59.1.
1 parent 44684f4 commit b372d5a

File tree

79 files changed

+456
-460
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

+456
-460
lines changed

.evergreen/config.yml

Lines changed: 57 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -2087,102 +2087,102 @@ axes:
20872087
- id: os-ssl-32
20882088
display_name: OS
20892089
values:
2090-
- id: "windows-64-go-1-20"
2090+
- id: "windows-64"
20912091
display_name: "Windows 64-bit"
20922092
run_on:
20932093
- windows-vsCurrent-small
20942094
variables:
20952095
GCC_PATH: "/cygdrive/c/ProgramData/chocolatey/lib/mingw/tools/install/mingw64/bin"
2096-
GO_DIST: "C:\\golang\\go1.20"
2096+
GO_DIST: "C:\\golang\\go1.22"
20972097
VENV_BIN_DIR: "Scripts"
2098-
- id: "rhel87-64-go-1-20"
2098+
- id: "rhel87-64"
20992099
display_name: "RHEL 8.7"
21002100
run_on: rhel8.7-large
21012101
variables:
2102-
GO_DIST: "/opt/golang/go1.20"
2103-
- id: "macos11-go-1-20"
2102+
GO_DIST: "/opt/golang/go1.22"
2103+
- id: "macos11"
21042104
display_name: "MacOS 11.0"
21052105
run_on: macos-1100
21062106
batchtime: 1440 # Run at most once per 24 hours.
21072107
variables:
2108-
GO_DIST: "/opt/golang/go1.20"
2108+
GO_DIST: "/opt/golang/go1.22"
21092109

21102110
# OSes that require >= 4.0 for SSL
21112111
- id: os-ssl-40
21122112
display_name: OS
21132113
values:
2114-
- id: "windows-64-go-1-20"
2114+
- id: "windows-64"
21152115
display_name: "Windows 64-bit"
21162116
run_on:
21172117
- windows-vsCurrent-small
21182118
variables:
21192119
GCC_PATH: "/cygdrive/c/ProgramData/chocolatey/lib/mingw/tools/install/mingw64/bin"
2120-
GO_DIST: "C:\\golang\\go1.20"
2120+
GO_DIST: "C:\\golang\\go1.22"
21212121
VENV_BIN_DIR: "Scripts"
2122-
- id: "rhel87-64-go-1-20"
2122+
- id: "rhel87-64"
21232123
display_name: "RHEL 8.7"
21242124
run_on: rhel8.7-large
21252125
variables:
2126-
GO_DIST: "/opt/golang/go1.20"
2127-
- id: "macos11-go-1-20"
2126+
GO_DIST: "/opt/golang/go1.22"
2127+
- id: "macos11"
21282128
display_name: "MacOS 11.0"
21292129
run_on: macos-1100
21302130
batchtime: 1440 # Run at most once per 24 hours.
21312131
variables:
2132-
GO_DIST: "/opt/golang/go1.20"
2132+
GO_DIST: "/opt/golang/go1.22"
21332133

21342134
- id: ocsp-rhel-87
21352135
display_name: OS
21362136
values:
2137-
- id: "rhel87-go-1-20"
2137+
- id: "rhel87"
21382138
display_name: "RHEL 8.7"
21392139
run_on: rhel8.7-large
21402140
variables:
2141-
GO_DIST: "/opt/golang/go1.20"
2141+
GO_DIST: "/opt/golang/go1.22"
21422142

21432143
- id: os-aws-auth
21442144
display_name: OS
21452145
values:
2146-
- id: "windows-64-vsCurrent-latest-small-go-1-20"
2146+
- id: "windows-64-vsCurrent-latest-small"
21472147
display_name: "Windows 64-bit"
21482148
run_on:
21492149
- windows-vsCurrent-small
21502150
variables:
21512151
GCC_PATH: "/cygdrive/c/ProgramData/chocolatey/lib/mingw/tools/install/mingw64/bin"
2152-
GO_DIST: "C:\\golang\\go1.20"
2152+
GO_DIST: "C:\\golang\\go1.22"
21532153
SKIP_ECS_AUTH_TEST: true
2154-
- id: "ubuntu2004-64-go-1-20"
2154+
- id: "ubuntu2004-64"
21552155
display_name: "Ubuntu 20.04"
21562156
run_on: ubuntu2004-test
21572157
variables:
2158-
GO_DIST: "/opt/golang/go1.20"
2159-
- id: "macos11-go-1-20"
2158+
GO_DIST: "/opt/golang/go1.22"
2159+
- id: "macos11"
21602160
display_name: "MacOS 11.0"
21612161
run_on: macos-1100
21622162
batchtime: 1440 # Run at most once per 24 hours.
21632163
variables:
2164-
GO_DIST: "/opt/golang/go1.20"
2164+
GO_DIST: "/opt/golang/go1.22"
21652165
SKIP_ECS_AUTH_TEST: true
21662166
SKIP_EC2_AUTH_TEST: true
21672167
SKIP_WEB_IDENTITY_AUTH_TEST: true
21682168

21692169
- id: os-faas-80
21702170
display_name: OS
21712171
values:
2172-
- id: "rhel87-large-go-1-20"
2172+
- id: "rhel87-large"
21732173
display_name: "RHEL 8.7"
21742174
run_on: rhel8.7-large
21752175
variables:
2176-
GO_DIST: "/opt/golang/go1.20"
2176+
GO_DIST: "/opt/golang/go1.22"
21772177

21782178
- id: os-serverless
21792179
display_name: OS
21802180
values:
2181-
- id: "rhel87-go-1-20"
2181+
- id: "rhel87"
21822182
display_name: "RHEL 8.7"
21832183
run_on: rhel8.7-small
21842184
variables:
2185-
GO_DIST: "/opt/golang/go1.20"
2185+
GO_DIST: "/opt/golang/go1.22"
21862186

21872187
task_groups:
21882188
- name: serverless_task_group
@@ -2467,7 +2467,7 @@ buildvariants:
24672467
run_on:
24682468
- rhel8.7-large
24692469
expansions:
2470-
GO_DIST: "/opt/golang/go1.20"
2470+
GO_DIST: "/opt/golang/go1.22"
24712471
tasks:
24722472
- name: ".static-analysis"
24732473

@@ -2477,7 +2477,7 @@ buildvariants:
24772477
run_on:
24782478
- rhel8.7-small
24792479
expansions:
2480-
GO_DIST: "/opt/golang/go1.20"
2480+
GO_DIST: "/opt/golang/go1.22"
24812481
tasks:
24822482
- name: "pull-request-helpers"
24832483

@@ -2486,7 +2486,7 @@ buildvariants:
24862486
run_on:
24872487
- rhel8.7-large
24882488
expansions:
2489-
GO_DIST: "/opt/golang/go1.20"
2489+
GO_DIST: "/opt/golang/go1.22"
24902490
tasks:
24912491
- name: ".performance"
24922492

@@ -2496,7 +2496,7 @@ buildvariants:
24962496
run_on:
24972497
- rhel8.7-large
24982498
expansions:
2499-
GO_DIST: "/opt/golang/go1.20"
2499+
GO_DIST: "/opt/golang/go1.22"
25002500
tasks:
25012501
- name: ".compile-check"
25022502

@@ -2505,7 +2505,7 @@ buildvariants:
25052505
run_on:
25062506
- rhel8.7-large
25072507
expansions:
2508-
GO_DIST: "/opt/golang/go1.20"
2508+
GO_DIST: "/opt/golang/go1.22"
25092509
tasks:
25102510
- name: "backport-pr"
25112511

@@ -2515,7 +2515,7 @@ buildvariants:
25152515
run_on:
25162516
- rhel8.7-large
25172517
expansions:
2518-
GO_DIST: "/opt/golang/go1.20"
2518+
GO_DIST: "/opt/golang/go1.22"
25192519
tasks:
25202520
- name: "atlas-test"
25212521

@@ -2525,7 +2525,7 @@ buildvariants:
25252525
run_on:
25262526
- ubuntu2004-large
25272527
expansions:
2528-
GO_DIST: "/opt/golang/go1.20"
2528+
GO_DIST: "/opt/golang/go1.22"
25292529
tasks:
25302530
- name: "test-atlas-data-lake"
25312531

@@ -2535,58 +2535,58 @@ buildvariants:
25352535
run_on:
25362536
- ubuntu2204-large
25372537
expansions:
2538-
GO_DIST: "/opt/golang/go1.20"
2538+
GO_DIST: "/opt/golang/go1.22"
25392539
tasks:
25402540
- name: "test-docker-runner"
25412541

25422542
- matrix_name: "tests-rhel-36-with-zlib-support"
25432543
tags: ["pullrequest"]
2544-
matrix_spec: { version: ["3.6"], os-ssl-32: ["rhel87-64-go-1-20"] }
2544+
matrix_spec: { version: ["3.6"], os-ssl-32: ["rhel87-64"] }
25452545
display_name: "${version} ${os-ssl-32}"
25462546
tasks:
25472547
- name: ".test !.enterprise-auth !.snappy !.zstd"
25482548

25492549
- matrix_name: "tests-windows-36-with-zlib-support"
2550-
matrix_spec: { version: ["3.6"], os-ssl-32: ["windows-64-go-1-20"] }
2550+
matrix_spec: { version: ["3.6"], os-ssl-32: ["windows-64"] }
25512551
display_name: "${version} ${os-ssl-32}"
25522552
tasks:
25532553
- name: ".test !.enterprise-auth !.snappy !.zstd"
25542554

25552555
- matrix_name: "tests-rhel-40-with-zlib-support"
25562556
tags: ["pullrequest"]
2557-
matrix_spec: { version: ["4.0"], os-ssl-40: ["rhel87-64-go-1-20"] }
2557+
matrix_spec: { version: ["4.0"], os-ssl-40: ["rhel87-64"] }
25582558
display_name: "${version} ${os-ssl-40}"
25592559
tasks:
25602560
- name: ".test !.enterprise-auth !.snappy !.zstd"
25612561

25622562
- matrix_name: "tests-windows-40-with-zlib-support"
2563-
matrix_spec: { version: ["4.0"], os-ssl-40: ["windows-64-go-1-20"] }
2563+
matrix_spec: { version: ["4.0"], os-ssl-40: ["windows-64"] }
25642564
display_name: "${version} ${os-ssl-40}"
25652565
tasks:
25662566
- name: ".test !.enterprise-auth !.snappy !.zstd"
25672567

25682568
- matrix_name: "tests-rhel-42-plus-zlib-zstd-support"
25692569
tags: ["pullrequest"]
2570-
matrix_spec: { version: ["4.2", "4.4", "5.0", "6.0", "7.0", "8.0"], os-ssl-40: ["rhel87-64-go-1-20"] }
2570+
matrix_spec: { version: ["4.2", "4.4", "5.0", "6.0", "7.0", "8.0"], os-ssl-40: ["rhel87-64"] }
25712571
display_name: "${version} ${os-ssl-40}"
25722572
tasks:
25732573
- name: ".test !.enterprise-auth !.snappy"
25742574

25752575
- matrix_name: "tests-windows-42-plus-zlib-zstd-support"
2576-
matrix_spec: { version: ["4.2", "4.4", "5.0", "6.0", "7.0"], os-ssl-40: ["windows-64-go-1-20"] }
2576+
matrix_spec: { version: ["4.2", "4.4", "5.0", "6.0", "7.0"], os-ssl-40: ["windows-64"] }
25772577
display_name: "${version} ${os-ssl-40}"
25782578
tasks:
25792579
- name: ".test !.enterprise-auth !.snappy"
25802580

25812581
- matrix_name: "tests-windows-80-zlib-zstd-support"
25822582
tags: ["pullrequest"]
2583-
matrix_spec: { version: ["8.0"], os-ssl-40: ["windows-64-go-1-20"] }
2583+
matrix_spec: { version: ["8.0"], os-ssl-40: ["windows-64"] }
25842584
display_name: "${version} ${os-ssl-40}"
25852585
tasks:
25862586
- name: ".test !.enterprise-auth !.snappy"
25872587

25882588
- matrix_name: "tests-latest-zlib-zstd-support"
2589-
matrix_spec: { version: ["latest"], os-ssl-40: ["windows-64-go-1-20", "rhel87-64-go-1-20"] }
2589+
matrix_spec: { version: ["latest"], os-ssl-40: ["windows-64", "rhel87-64"] }
25902590
display_name: "${version} ${os-ssl-40}"
25912591
tasks:
25922592
- name: ".test !.enterprise-auth !.snappy"
@@ -2604,22 +2604,22 @@ buildvariants:
26042604
- name: "aws-auth-test"
26052605

26062606
- matrix_name: "ocsp-test"
2607-
matrix_spec: { version: ["4.4", "5.0", "6.0", "7.0", "8.0", "latest"], ocsp-rhel-87: ["rhel87-go-1-20"] }
2607+
matrix_spec: { version: ["4.4", "5.0", "6.0", "7.0", "8.0", "latest"], ocsp-rhel-87: ["rhel87"] }
26082608
display_name: "OCSP ${version} ${ocsp-rhel-87}"
26092609
batchtime: 20160 # Use a batchtime of 14 days as suggested by the OCSP test README
26102610
tasks:
26112611
- name: ".ocsp"
26122612

26132613
- matrix_name: "ocsp-test-windows"
2614-
matrix_spec: { version: ["4.4", "5.0", "6.0", "7.0", "8.0", "latest"], os-ssl-40: ["windows-64-go-1-20"] }
2614+
matrix_spec: { version: ["4.4", "5.0", "6.0", "7.0", "8.0", "latest"], os-ssl-40: ["windows-64"] }
26152615
display_name: "OCSP ${version} ${os-ssl-40}"
26162616
batchtime: 20160 # Use a batchtime of 14 days as suggested by the OCSP test README
26172617
tasks:
26182618
# Windows MongoDB servers do not staple OCSP responses and only support RSA.
26192619
- name: ".ocsp-rsa !.ocsp-staple"
26202620

26212621
- matrix_name: "ocsp-test-macos"
2622-
matrix_spec: { version: ["4.4", "5.0", "6.0", "7.0", "8.0", "latest"], os-ssl-40: ["macos11-go-1-20"] }
2622+
matrix_spec: { version: ["4.4", "5.0", "6.0", "7.0", "8.0", "latest"], os-ssl-40: ["macos11"] }
26232623
display_name: "OCSP ${version} ${os-ssl-40}"
26242624
batchtime: 20160 # Use a batchtime of 14 days as suggested by the OCSP test README
26252625
tasks:
@@ -2628,39 +2628,39 @@ buildvariants:
26282628

26292629
- matrix_name: "race-test"
26302630
tags: ["pullrequest"]
2631-
matrix_spec: { version: ["7.0"], os-ssl-40: ["rhel87-64-go-1-20"] }
2631+
matrix_spec: { version: ["7.0"], os-ssl-40: ["rhel87-64"] }
26322632
display_name: "Race Detector Test"
26332633
tasks:
26342634
- name: ".race"
26352635

26362636
- matrix_name: "versioned-api-test"
26372637
tags: ["pullrequest"]
2638-
matrix_spec: { version: ["5.0", "6.0", "7.0", "8.0"], os-ssl-40: ["windows-64-go-1-20", "rhel87-64-go-1-20"] }
2638+
matrix_spec: { version: ["5.0", "6.0", "7.0", "8.0"], os-ssl-40: ["windows-64", "rhel87-64"] }
26392639
display_name: "API Version ${version} ${os-ssl-40}"
26402640
tasks:
26412641
- name: ".versioned-api"
26422642

26432643
- matrix_name: "versioned-api-latest-test"
2644-
matrix_spec: { version: ["latest"], os-ssl-40: ["windows-64-go-1-20", "rhel87-64-go-1-20"] }
2644+
matrix_spec: { version: ["latest"], os-ssl-40: ["windows-64", "rhel87-64"] }
26452645
display_name: "API Version ${version} ${os-ssl-40}"
26462646
tasks:
26472647
- name: ".versioned-api"
26482648

26492649
- matrix_name: "kms-tls-test"
2650-
matrix_spec: { version: ["7.0"], os-ssl-40: ["rhel87-64-go-1-20"] }
2650+
matrix_spec: { version: ["7.0"], os-ssl-40: ["rhel87-64"] }
26512651
display_name: "KMS TLS ${os-ssl-40}"
26522652
tasks:
26532653
- name: ".kms-tls"
26542654

26552655
- matrix_name: "load-balancer-test"
26562656
tags: ["pullrequest"]
2657-
matrix_spec: { version: ["5.0", "6.0", "7.0", "8.0"], os-ssl-40: ["rhel87-64-go-1-20"] }
2657+
matrix_spec: { version: ["5.0", "6.0", "7.0", "8.0"], os-ssl-40: ["rhel87-64"] }
26582658
display_name: "Load Balancer Support ${version} ${os-ssl-40}"
26592659
tasks:
26602660
- name: ".load-balancer"
26612661

26622662
- matrix_name: "load-balancer-latest-test"
2663-
matrix_spec: { version: ["latest"], os-ssl-40: ["rhel87-64-go-1-20"] }
2663+
matrix_spec: { version: ["latest"], os-ssl-40: ["rhel87-64"] }
26642664
display_name: "Load Balancer Support ${version} ${os-ssl-40}"
26652665
tasks:
26662666
- name: ".load-balancer"
@@ -2673,26 +2673,26 @@ buildvariants:
26732673
- "serverless_task_group"
26742674

26752675
- matrix_name: "kms-kmip-test"
2676-
matrix_spec: { version: ["7.0"], os-ssl-40: ["rhel87-64-go-1-20"] }
2676+
matrix_spec: { version: ["7.0"], os-ssl-40: ["rhel87-64"] }
26772677
display_name: "KMS KMIP ${os-ssl-40}"
26782678
tasks:
26792679
- name: ".kms-kmip"
26802680

26812681
- matrix_name: "fuzz-test"
2682-
matrix_spec: { version: ["5.0"], os-ssl-40: ["rhel87-64-go-1-20"] }
2682+
matrix_spec: { version: ["5.0"], os-ssl-40: ["rhel87-64"] }
26832683
display_name: "Fuzz ${version} ${os-ssl-40}"
26842684
tasks:
26852685
- name: "test-fuzz"
26862686
batchtime: 1440 # Run at most once per 24 hours.
26872687

26882688
- matrix_name: "faas-test"
2689-
matrix_spec: { version: ["7.0"], os-faas-80: ["rhel87-large-go-1-20"] }
2689+
matrix_spec: { version: ["7.0"], os-faas-80: ["rhel87-large"] }
26902690
display_name: "FaaS ${version} ${os-faas-80}"
26912691
tasks:
26922692
- test-aws-lambda-task-group
26932693

26942694
- matrix_name: "searchindex-test"
2695-
matrix_spec: { version: ["7.0"], os-faas-80: ["rhel87-large-go-1-20"] }
2695+
matrix_spec: { version: ["7.0"], os-faas-80: ["rhel87-large"] }
26962696
display_name: "Search Index ${version} ${os-faas-80}"
26972697
tasks:
26982698
- test-search-index-task-group
@@ -2702,7 +2702,7 @@ buildvariants:
27022702
run_on:
27032703
- rhel8.7-small
27042704
expansions:
2705-
GO_DIST: "/opt/golang/go1.20"
2705+
GO_DIST: "/opt/golang/go1.22"
27062706
tasks:
27072707
- name: testgcpkms_task_group
27082708
batchtime: 20160 # Use a batchtime of 14 days as suggested by the CSFLE test README
@@ -2713,7 +2713,7 @@ buildvariants:
27132713
run_on:
27142714
- rhel8.7-small
27152715
expansions:
2716-
GO_DIST: "/opt/golang/go1.20"
2716+
GO_DIST: "/opt/golang/go1.22"
27172717
tasks:
27182718
- testawskms-task
27192719
- testawskms-fail-task
@@ -2723,7 +2723,7 @@ buildvariants:
27232723
run_on:
27242724
- rhel8.7-small
27252725
expansions:
2726-
GO_DIST: "/opt/golang/go1.20"
2726+
GO_DIST: "/opt/golang/go1.22"
27272727
tasks:
27282728
- name: testazurekms_task_group
27292729
batchtime: 20160 # Use a batchtime of 14 days as suggested by the CSFLE test README
@@ -2734,7 +2734,7 @@ buildvariants:
27342734
run_on:
27352735
- ubuntu2204-large
27362736
expansions:
2737-
GO_DIST: "/opt/golang/go1.20"
2737+
GO_DIST: "/opt/golang/go1.22"
27382738
tasks:
27392739
- name: testoidc_task_group
27402740
batchtime: 20160 # Use a batchtime of 14 days as suggested by the CSFLE test README

0 commit comments

Comments
 (0)