MM-43448: Bump the CI to use Go 1.18.1 (#20005)
https://mattermost.atlassian.net/browse/MM-43448 ```release-note NONE ```
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
3476eccf5b
Коммит
c09c36ce5e
@@ -123,7 +123,7 @@ jobs:
|
|||||||
|
|
||||||
check-app-layers:
|
check-app-layers:
|
||||||
docker:
|
docker:
|
||||||
- image: mattermost/mattermost-build-server:20210810_golang-1.16.7
|
- image: mattermost/mattermost-build-server:20220415_golang-1.18.1
|
||||||
working_directory: ~/mattermost
|
working_directory: ~/mattermost
|
||||||
steps:
|
steps:
|
||||||
- attach_workspace:
|
- attach_workspace:
|
||||||
@@ -136,7 +136,7 @@ jobs:
|
|||||||
|
|
||||||
check-store-layers:
|
check-store-layers:
|
||||||
docker:
|
docker:
|
||||||
- image: mattermost/mattermost-build-server:20210810_golang-1.16.7
|
- image: mattermost/mattermost-build-server:20220415_golang-1.18.1
|
||||||
working_directory: ~/mattermost
|
working_directory: ~/mattermost
|
||||||
steps:
|
steps:
|
||||||
- attach_workspace:
|
- attach_workspace:
|
||||||
@@ -149,7 +149,7 @@ jobs:
|
|||||||
|
|
||||||
check-mocks:
|
check-mocks:
|
||||||
docker:
|
docker:
|
||||||
- image: mattermost/mattermost-build-server:20210810_golang-1.16.7
|
- image: mattermost/mattermost-build-server:20220415_golang-1.18.1
|
||||||
working_directory: ~/mattermost
|
working_directory: ~/mattermost
|
||||||
steps:
|
steps:
|
||||||
- attach_workspace:
|
- attach_workspace:
|
||||||
@@ -201,7 +201,7 @@ jobs:
|
|||||||
# Dedicate job for mattermost-vet to make more clear when the job fails
|
# Dedicate job for mattermost-vet to make more clear when the job fails
|
||||||
check-mattermost-vet:
|
check-mattermost-vet:
|
||||||
docker:
|
docker:
|
||||||
- image: mattermost/mattermost-build-server:20210810_golang-1.16.7
|
- image: mattermost/mattermost-build-server:20220415_golang-1.18.1
|
||||||
working_directory: ~/mattermost
|
working_directory: ~/mattermost
|
||||||
steps:
|
steps:
|
||||||
- attach_workspace:
|
- attach_workspace:
|
||||||
@@ -250,7 +250,7 @@ jobs:
|
|||||||
|
|
||||||
build:
|
build:
|
||||||
docker:
|
docker:
|
||||||
- image: mattermost/mattermost-build-server:20210810_golang-1.16.7
|
- image: mattermost/mattermost-build-server:20220415_golang-1.18.1
|
||||||
resource_class: xlarge
|
resource_class: xlarge
|
||||||
working_directory: ~/mattermost
|
working_directory: ~/mattermost
|
||||||
steps:
|
steps:
|
||||||
@@ -317,7 +317,7 @@ jobs:
|
|||||||
--env MM_SQLSETTINGS_DRIVERNAME=<<parameters.dbdriver>> \
|
--env MM_SQLSETTINGS_DRIVERNAME=<<parameters.dbdriver>> \
|
||||||
-v ~/mattermost:/mattermost \
|
-v ~/mattermost:/mattermost \
|
||||||
-w /mattermost/mattermost-server \
|
-w /mattermost/mattermost-server \
|
||||||
mattermost/mattermost-build-server:20210810_golang-1.16.7 \
|
mattermost/mattermost-build-server:20220415_golang-1.18.1 \
|
||||||
bash -c "ulimit -n 8096; make test-server<< parameters.racemode >> BUILD_NUMBER=$CIRCLE_BRANCH-$CIRCLE_PREVIOUS_BUILD_NUM TESTFLAGS= TESTFLAGSEE=" \
|
bash -c "ulimit -n 8096; make test-server<< parameters.racemode >> BUILD_NUMBER=$CIRCLE_BRANCH-$CIRCLE_PREVIOUS_BUILD_NUM TESTFLAGS= TESTFLAGSEE=" \
|
||||||
bash -c scripts/diff-email-templates.sh
|
bash -c scripts/diff-email-templates.sh
|
||||||
no_output_timeout: 2h
|
no_output_timeout: 2h
|
||||||
@@ -382,7 +382,7 @@ jobs:
|
|||||||
--env MM_SQLSETTINGS_DRIVERNAME=postgres \
|
--env MM_SQLSETTINGS_DRIVERNAME=postgres \
|
||||||
-v ~/mattermost:/mattermost \
|
-v ~/mattermost:/mattermost \
|
||||||
-w /mattermost/mattermost-server \
|
-w /mattermost/mattermost-server \
|
||||||
mattermost/mattermost-build-server:20210810_golang-1.16.7 \
|
mattermost/mattermost-build-server:20220415_golang-1.18.1 \
|
||||||
bash -c "ulimit -n 8096; make ARGS='db migrate' run-cli && make MM_SQLSETTINGS_DATASOURCE='postgres://mmuser:mostest@postgres:5432/latest?sslmode=disable&connect_timeout=10' ARGS='db migrate' run-cli"
|
bash -c "ulimit -n 8096; make ARGS='db migrate' run-cli && make MM_SQLSETTINGS_DATASOURCE='postgres://mmuser:mostest@postgres:5432/latest?sslmode=disable&connect_timeout=10' ARGS='db migrate' run-cli"
|
||||||
|
|
||||||
echo "Generating dump"
|
echo "Generating dump"
|
||||||
@@ -411,7 +411,7 @@ jobs:
|
|||||||
--env MM_SQLSETTINGS_DRIVERNAME=mysql \
|
--env MM_SQLSETTINGS_DRIVERNAME=mysql \
|
||||||
-v ~/mattermost:/mattermost \
|
-v ~/mattermost:/mattermost \
|
||||||
-w /mattermost/mattermost-server \
|
-w /mattermost/mattermost-server \
|
||||||
mattermost/mattermost-build-server:20210810_golang-1.16.7 \
|
mattermost/mattermost-build-server:20220415_golang-1.18.1 \
|
||||||
bash -c "ulimit -n 8096; make ARGS='db migrate' run-cli && make MM_SQLSETTINGS_DATASOURCE='mmuser:mostest@tcp(mysql:3306)/latest?charset=utf8mb4,utf8&readTimeout=30s&writeTimeout=30s' ARGS='db migrate' run-cli"
|
bash -c "ulimit -n 8096; make ARGS='db migrate' run-cli && make MM_SQLSETTINGS_DATASOURCE='mmuser:mostest@tcp(mysql:3306)/latest?charset=utf8mb4,utf8&readTimeout=30s&writeTimeout=30s' ARGS='db migrate' run-cli"
|
||||||
|
|
||||||
echo "Generating dump"
|
echo "Generating dump"
|
||||||
|
|||||||
@@ -430,10 +430,7 @@ func TestStartServerTLSVersion(t *testing.T) {
|
|||||||
|
|
||||||
client := &http.Client{Transport: tr}
|
client := &http.Client{Transport: tr}
|
||||||
err = checkEndpoint(t, client, "https://localhost:"+strconv.Itoa(s.ListenAddr.Port)+"/")
|
err = checkEndpoint(t, client, "https://localhost:"+strconv.Itoa(s.ListenAddr.Port)+"/")
|
||||||
|
require.Error(t, err)
|
||||||
if !strings.Contains(err.Error(), "remote error: tls: protocol version not supported") {
|
|
||||||
t.Errorf("Expected protocol version error, got %s", err)
|
|
||||||
}
|
|
||||||
|
|
||||||
client.Transport = &http.Transport{
|
client.Transport = &http.Transport{
|
||||||
TLSClientConfig: &tls.Config{
|
TLSClientConfig: &tls.Config{
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user