Skip to content

Commit

Permalink
EVG-19988: Update Go version, evergreen distros, test mongo version (#94
Browse files Browse the repository at this point in the history
)

* EVG-19988: Update Go version, evergreen distros, test mongo version

- Change mongosh download to match Evergreen's
- Switch to having a lint variant similar to the other Go repos
and don't have a separate code coverage task
- Switch to using env dictionary for all env variables instead
of mixing include_expansions_in_env with the env dictionary.
  • Loading branch information
johndaniels authored Jun 5, 2023
1 parent 81c3ed0 commit b983334
Show file tree
Hide file tree
Showing 6 changed files with 141 additions and 146 deletions.
98 changes: 36 additions & 62 deletions evergreen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,19 @@ functions:
- command: subprocess.exec
type: setup
params:
command: make get-mongodb
working_dir: pail
env:
MONGODB_URL: ${mongodb_url}
DECOMPRESS: ${decompress}
command: make get-mongodb
MONGODB_DECOMPRESS: ${MONGODB_DECOMPRESS|*decompress}
MONGODB_URL: ${MONGODB_URL}
- command: subprocess.exec
type: setup
params:
command: make get-mongosh
working_dir: pail
env:
MONGOSH_DECOMPRESS: ${MONGOSH_DECOMPRESS|*decompress}
MONGOSH_URL: ${MONGOSH_URL}
- command: subprocess.exec
type: setup
params:
Expand All @@ -86,38 +94,15 @@ post:
params:
files:
- "pail/build/output.*"
- command: s3.put
type: system
params:
aws_key: ${aws_s3_key}
aws_secret: ${aws_s3_secret}
local_files_include_filter: ["pail/build/output.*.coverage.html"]
remote_file: pail/${task_id}/
bucket: mciuploads
content_type: text/html
permissions: public-read
display_name: "(html) coverage:"
- command: s3.put
type: system
params:
aws_key: ${aws_s3_key}
aws_secret: ${aws_s3_secret}
local_files_include_filter: ["pail/build/output.*.coverage"]
remote_file: pail/${task_id}/
bucket: mciuploads
content_type: text/plain
permissions: public-read
display_name: "(txt) coverage:"

tasks:
# the build (with and without the race detector) and lint tasks use
# a template that does not include test result parsing.
- <<: *run-build
tags: ["report"]
tags: ["lint"]
name: lint-pail

- name: verify-mod-tidy
tags: ["report"]
commands:
- command: git.get_project
type: system
Expand All @@ -126,10 +111,6 @@ tasks:
- func: run-make
vars: { target: "${task_name}" }

- <<: *run-build-with-mongodb
tags: ["report"]
name: html-coverage

- <<: *run-build-with-mongodb
tags: ["test"]
name: test-pail
Expand All @@ -138,56 +119,49 @@ tasks:
# Buildvariants #
#######################################
buildvariants:
- name: race-detector
display_name: Race Detector (Arch Linux)
- name: lint
display_name: Lint
expansions:
GOROOT: /opt/golang/go1.16
RACE_DETECTOR: true
mongodb_url: http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-4.0.1.tgz
GOROOT: /opt/golang/go1.20
MONGODB_URL: https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-ubuntu2204-6.0.6.tgz
MONGOSH_URL: https://downloads.mongodb.com/compass/mongosh-1.9.0-linux-x64.tgz
run_on:
- archlinux-new-small
- ubuntu2204-small
tasks:
- name: ".test"

- name: coverage
display_name: Coverage (Arch Linux)
expansions:
GOROOT: /opt/golang/go1.16
mongodb_url: http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-4.0.1.tgz
run_on:
- archlinux-new-small
tasks:
- name: ".report"
- .lint
- verify-mod-tidy

- name: ubuntu
display_name: Ubuntu 18.04
display_name: Ubuntu 22.04
expansions:
GOROOT: /opt/golang/go1.16
mongodb_url: http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-4.0.1.tgz
GOROOT: /opt/golang/go1.20
MONGODB_URL: https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-ubuntu2204-6.0.6.tgz
MONGOSH_URL: https://downloads.mongodb.com/compass/mongosh-1.9.0-linux-x64.tgz
RACE_DETECTOR: true
run_on:
- ubuntu1804-small
- ubuntu2204-small
tasks:
- name: ".test"

- name: macos
display_name: macOS 10.14
display_name: macOS
expansions:
GOROOT: /opt/golang/go1.16
mongodb_url: https://fastdl.mongodb.org/osx/mongodb-osx-ssl-x86_64-4.0.1.tgz
GOROOT: /opt/golang/go1.20
MONGODB_URL: https://fastdl.mongodb.org/osx/mongodb-macos-arm64-6.0.6.tgz
MONGOSH_URL: https://downloads.mongodb.com/compass/mongosh-1.9.0-darwin-arm64.zip
MONGOSH_DECOMPRESS: unzip
run_on:
- macos-1014
- macos-1100-arm64
tasks:
- name: ".test"

- name: windows
display_name: Windows
run_on:
- windows-64-vs2019-small
- windows-64-vs2019-large
- windows-64-vs2017-small
- windows-64-vs2017-large
- windows-vsCurrent-small
expansions:
GOROOT: C:/golang/go1.16
mongodb_url: https://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2008plus-ssl-4.0.1.zip
GOROOT: C:/golang/go1.20
MONGODB_URL: https://fastdl.mongodb.org/windows/mongodb-windows-x86_64-6.0.6.zip
MONGOSH_URL: https://downloads.mongodb.com/compass/mongosh-1.9.0-win32-x64.zip
tasks:
- name: ".test"
54 changes: 53 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/evergreen-ci/pail

go 1.16
go 1.20

require (
github.com/aws/aws-sdk-go v1.44.127
Expand All @@ -11,3 +11,55 @@ require (
github.com/pkg/errors v0.9.1
github.com/stretchr/testify v1.8.1
)

require (
github.com/PuerkitoBio/rehttp v1.1.0 // indirect
github.com/andygrunwald/go-jira v1.14.0 // indirect
github.com/bluele/slack v0.0.0-20180528010058-b4b4d354a079 // indirect
github.com/coreos/go-systemd v0.0.0-20191104093116-d3cd4ed1dbcf // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/dghubble/oauth1 v0.7.1 // indirect
github.com/evergreen-ci/aviation v0.0.0-20211026175554-41a4410c650f // indirect
github.com/evergreen-ci/birch v0.0.0-20211025210128-7f3409c2b515 // indirect
github.com/evergreen-ci/gimlet v0.0.0-20220401150826-5898de01dbd8 // indirect
github.com/evergreen-ci/negroni v1.0.1-0.20211028183800-67b6d7c2c035 // indirect
github.com/fatih/structs v1.1.0 // indirect
github.com/fsnotify/fsnotify v1.5.1 // indirect
github.com/fuyufjh/splunk-hec-go v0.3.4-0.20190414090710-10df423a9f36 // indirect
github.com/go-ole/go-ole v1.2.6 // indirect
github.com/go-stack/stack v1.8.1 // indirect
github.com/golang-jwt/jwt v3.2.1+incompatible // indirect
github.com/golang/protobuf v1.5.2 // indirect
github.com/google/go-github v17.0.0+incompatible // indirect
github.com/google/go-querystring v1.1.0 // indirect
github.com/google/uuid v1.3.0 // indirect
github.com/gorilla/mux v1.8.0 // indirect
github.com/jmespath/go-jmespath v0.4.0 // indirect
github.com/jpillora/backoff v1.0.0 // indirect
github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 // indirect
github.com/mattn/go-xmpp v0.0.0-20210723025538-3871461df959 // indirect
github.com/mongodb/ftdc v0.0.0-20211018154918-80dd1c22e4cf // indirect
github.com/papertrail/go-tail v0.0.0-20180509224916-973c153b0431 // indirect
github.com/phyber/negroni-gzip v1.0.0 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c // indirect
github.com/rs/cors v1.8.2 // indirect
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 // indirect
github.com/shirou/gopsutil/v3 v3.22.3 // indirect
github.com/tklauser/go-sysconf v0.3.10 // indirect
github.com/tklauser/numcpus v0.4.0 // indirect
github.com/trivago/tgo v1.0.7 // indirect
github.com/urfave/negroni v1.0.0 // indirect
github.com/yusufpapurcu/wmi v1.2.2 // indirect
go.mongodb.org/mongo-driver v1.8.3 // indirect
golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd // indirect
golang.org/x/oauth2 v0.0.0-20211005180243-6b3c2da341f1 // indirect
golang.org/x/sys v0.0.0-20220128215802-99c3d69c2c27 // indirect
golang.org/x/text v0.3.7 // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/genproto v0.0.0-20200825200019-8632dd797987 // indirect
google.golang.org/grpc v1.41.0 // indirect
google.golang.org/protobuf v1.26.0 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
Loading

0 comments on commit b983334

Please sign in to comment.