Skip to content

Commit 05463fc

Browse files
Dmadduiamazzeez
andauthored
Go upgrade (#7672)
* removing x509ignoreCN flag Signed-off-by: Durga Sarat Chandra Maddu <[email protected]> * updating the cert Signed-off-by: Durga Sarat Chandra Maddu <[email protected]> * increasing the timeout duration Signed-off-by: Durga Sarat Chandra Maddu <[email protected]> * upgrade to go 1.19 Signed-off-by: Durga Sarat Chandra Maddu <[email protected]> * fix ha cluster pipeline Signed-off-by: Durga Sarat Chandra Maddu <[email protected]> * ha cluster fix for compliance scan verify Signed-off-by: Abdul-Az <[email protected]> * degub stmts added Signed-off-by: Abdul-Az <[email protected]> * degub stmts added Signed-off-by: Abdul-Az <[email protected]> * upgraded lib/pg Signed-off-by: Abdul-Az <[email protected]> * rebuild pkgs after lib/pq upgrade Signed-off-by: Abdul-Az <[email protected]> * go mod tidy Signed-off-by: Abdul-Az <[email protected]> * POSTGRESQL_URL changed to 127.0.0.1 Signed-off-by: Abdul-Az <[email protected]> * fixing pg-side-car pipeline Signed-off-by: Durga Sarat Chandra Maddu <[email protected]> * pg-sidecar pipeline fix Signed-off-by: Abdul-Az <[email protected]> * code clean Signed-off-by: Abdul-Az <[email protected]> * fix repo health Signed-off-by: Abdul-Az <[email protected]> * added googleapis dependency Signed-off-by: Abdul-Az <[email protected]> * repo health fix Signed-off-by: Abdul-Az <[email protected]> * repo health fix Signed-off-by: Abdul-Az <[email protected]> * repo health fix Signed-off-by: Abdul-Az <[email protected]> * pq pkg upgraded Signed-off-by: Abdul-Az <[email protected]> * updating the cert generation doc Signed-off-by: Durga Sarat Chandra Maddu <[email protected]> * updating the mod files Signed-off-by: Durga Sarat Chandra Maddu <[email protected]> * fixing buildkite error Signed-off-by: Durga Sarat Chandra Maddu <[email protected]> * updating golang version in SonarQube Signed-off-by: Durga Sarat Chandra Maddu <[email protected]> --------- Signed-off-by: Durga Sarat Chandra Maddu <[email protected]> Signed-off-by: Abdul-Az <[email protected]> Co-authored-by: Abdul-Az <[email protected]>
1 parent 17c7005 commit 05463fc

File tree

154 files changed

+3918
-3471
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

154 files changed

+3918
-3471
lines changed

.expeditor/generate-automate-cli-docs.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/bin/bash
22
set -eou pipefail
33

4-
# bumping expeditor to go 1.13
5-
hab pkg install --binlink core/go/1.13.5 --force
4+
# bumping expeditor to go 1.19
5+
hab pkg install --binlink core/go19 --force
66

77
pushd components/automate-cli
88
make docs

.expeditor/license_scout.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ log_section_start "Installing License Scout"
4040
gem install license_scout -v 2.5.1
4141
log "Finished Installing License Scout"
4242

43-
log_section_start "Installing Go 1.15"
44-
hab pkg install --force --binlink core/go/1.15 && rm -rf /hab/cache && mkdir -p "$GOPATH/src" "$GOPATH/bin"
43+
log_section_start "Installing Go 1.19.3"
44+
hab pkg install --force --binlink core/go19/1.19.3 && rm -rf /hab/cache && mkdir -p "$GOPATH/src" "$GOPATH/bin"
4545
go version
46-
log "Finished Installing Go 1.15"
46+
log "Finished Installing Go 1.19.3"
4747

4848
log_section_start "Installing Chef UI Library dependencies"
4949
pushd components/chef-ui-library

.expeditor/verify.pipeline.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ steps:
217217
- scripts/install_golang.sh
218218
- scripts/setup_buildkite_pg.sh cereal_test
219219
- cd lib
220-
- PG_USER="postgres" PATH=/usr/lib/postgresql/13/bin/:\$PATH GODEBUG=x509ignoreCN=0 make lint unit cereal_integration
220+
- PG_USER="postgres" PATH=/usr/lib/postgresql/13/bin/:\$PATH make lint unit cereal_integration
221221
timeout_in_minutes: 10
222222
retry:
223223
automatic:
@@ -351,7 +351,8 @@ steps:
351351
- label: "[unit] chef-ui-library"
352352
command:
353353
- cd components/chef-ui-library
354-
- npm install && npm run lint && npm run test
354+
- node -v
355+
- npm cache clean --force && npm install && npm run lint && npm run test
355356
timeout_in_minutes: 20
356357
retry:
357358
automatic:

.expeditor/verify_private.pipeline.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ steps:
421421
command:
422422
- . scripts/verify_setup.sh
423423
- hab studio run "source scripts/verify_studio_init.sh && start_deployment_service && chef-automate dev deployinate && event_integration"
424-
timeout_in_minutes: 10
424+
timeout_in_minutes: 15
425425
expeditor:
426426
executor:
427427
docker:
@@ -759,7 +759,7 @@ steps:
759759
- label: "ontop backup"
760760
command:
761761
- integration/run_test integration/tests/backup_ontop.sh
762-
timeout_in_minutes: 30
762+
timeout_in_minutes: 40
763763
expeditor:
764764
executor:
765765
linux:

.github/workflows/build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Setup Go
1717
uses: actions/setup-go@v2
1818
with:
19-
go-version: '1.15.0'
19+
go-version: '1.19.3'
2020
- name: Test and coverage
2121
run: tools/go_coverage_report.sh
2222
- name: SonarQube Scan

.golangci.yml

+28
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,14 @@ linters-settings:
1414
- NOCOMMIT
1515
govet:
1616
disable:
17+
- assign
18+
- atomic
1719
- copylocks
1820

1921
linters:
2022
enable-all: true
2123
disable:
24+
- bodyclose
2225
- dogsled
2326
- dupl
2427
- funlen
@@ -28,6 +31,7 @@ linters:
2831
- goerr113
2932
- goimports
3033
- gomnd
34+
- goprintffuncname
3135
- maligned
3236
- megacheck
3337
- nestif
@@ -45,3 +49,27 @@ linters:
4549
- lll
4650
- whitespace
4751
- wsl
52+
- gci
53+
- gofumpt
54+
- gofmt
55+
- gomoddirectives
56+
- revive
57+
- containedctx
58+
- cyclop
59+
- errorlint
60+
- exhaustive
61+
- exhaustivestruct
62+
- forcetypeassert
63+
- nlreturn
64+
- nosnakecase
65+
- tagliatelle
66+
- varnamelen
67+
- wrapcheck
68+
- exhaustruct
69+
- interfacebloat
70+
- ireturn
71+
- makezero
72+
- maintidx
73+
- nilerr
74+
- nonamedreturns
75+
- predeclared

0 commit comments

Comments
 (0)