Skip to content

Commit 5c2d731

Browse files
committed
fix: merging main
2 parents 6388e0a + e22d682 commit 5c2d731

16 files changed

+1512
-2510
lines changed

.circleci/config.yml

+26-7
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,27 @@
22
# syntax, such as anchors, will be fixed automatically.
33
version: 2.1
44
orbs:
5-
shared: getoutreach/shared@2.26.2
5+
shared: getoutreach/shared@2.29.4
66
queue: eddiewebb/[email protected]
7+
## <<Stencil::Block(CircleCIExtraOrbs)>>
8+
9+
## <</Stencil::Block>>
710

811
parameters:
912
rebuild_cache:
1013
type: boolean
1114
default: false
15+
## <<Stencil::Block(CircleCIExtraParams)>>
16+
17+
## <</Stencil::Block>>
1218

1319
# Extra contexts to expose to all jobs below
1420
contexts: &contexts
1521
- aws-credentials
1622
- ghaccesstoken
1723
- docker-registry
1824
- npm-credentials
25+
- box
1926
- vault-dev
2027
- confluence
2128
- circleci-credentials
@@ -39,6 +46,10 @@ test: &test
3946
release_branches: &release_branches
4047
- "main"
4148

49+
## <<Stencil::Block(circleAnchorExtra)>>
50+
51+
## <</Stencil::Block>>
52+
4253
jobs:
4354
{}
4455
## <<Stencil::Block(circleJobs)>>
@@ -76,7 +87,8 @@ workflows:
7687

7788
release:
7889
when:
79-
not: << pipeline.parameters.rebuild_cache >>
90+
and:
91+
- not: << pipeline.parameters.rebuild_cache >>
8092
jobs:
8193
## <<Stencil::Block(circleWorkflowJobs)>>
8294

@@ -96,12 +108,19 @@ workflows:
96108
- shared/test
97109
filters:
98110
branches:
99-
only: *release_branches
100-
101-
# Dryrun release for PRs.
102-
- shared/release:
103-
<<: *release
111+
only: main
112+
# Dryrun for PRs
113+
- shared/pre-release: &pre-release
104114
dryrun: true
115+
context: *contexts
116+
## <<Stencil::Block(circlePreReleaseDryRunExtra)>>
117+
118+
## <</Stencil::Block>>
119+
requires:
120+
## <<Stencil::Block(circlePreReleaseDryRunRequires)>>
121+
122+
## <</Stencil::Block>>
123+
- shared/test
105124
filters:
106125
branches:
107126
ignore: *release_branches

.github/dependabot.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ updates:
99
ignore:
1010
- dependency-name: github.com/getoutreach/gobox
1111
- dependency-name: github.com/getoutreach/stencil-golang/pkg
12+
- dependency-name: github.com/getoutreach/mint
1213
- dependency-name: github.com/getoutreach/services
1314
- dependency-name: github.com/getoutreach/datastores/v2
14-
- dependency-name: github.com/getoutreach/mint
1515
- dependency-name: github.com/getoutreach/httpx
1616

1717
# Ignore semantic-release, this code is only executed in CI.

.tool-versions

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
# you are reducing compatibility guarantees.
55
## <<Stencil::Block(toolverOverride)>>
66
## <</Stencil::Block>>
7-
golang 1.22.0
8-
nodejs 18.17.1
97
protoc 21.5
8+
nodejs 20.16.0
109
terraform 1.5.7
10+
golang 1.23.4
1111
# Note: Versions in this block do not override the default versions above
1212
# but sometimes you have to declare additional versions of the same tool
1313
# while leaving the 'default' version intact for the infra.

.vscode/extensions.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
"zxh404.vscode-proto3",
1010
"redhat.vscode-yaml",
1111
"ms-azuretools.vscode-docker",
12-
"foxundermoon.shell-format"
12+
"foxundermoon.shell-format",
13+
"WizCloud.wizcli-vscode"
1314

1415
// Please consider contributing back all recommended
1516
// extensions to stencil!

.vscode/launch.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,14 @@
3838
// Maps the go module cache on the host to the persistent volume used by devspaces.
3939
// These should be the respective values of `go env GOMODCACHE`.
4040
{
41-
"from": "${env:HOME}/.asdf/installs/golang/1.22.0/packages/pkg/mod",
42-
"to": "/home/dev/.asdf/installs/golang/1.22.0/packages/pkg/mod"
41+
"from": "${env:HOME}/.asdf/installs/golang/1.23.4/packages/pkg/mod",
42+
"to": "/home/dev/.asdf/installs/golang/1.23.4/packages/pkg/mod"
4343
},
4444
{
4545
// Maps the standard library location on the host to the location in the devspace.
4646
// This enables debugging standard library code.
47-
"from": "${env:HOME}/.asdf/installs/golang/1.22.0/go/src",
48-
"to": "/home/dev/.asdf/installs/golang/1.22.0/go/src"
47+
"from": "${env:HOME}/.asdf/installs/golang/1.23.4/go/src",
48+
"to": "/home/dev/.asdf/installs/golang/1.23.4/go/src"
4949
}
5050
]
5151
},

.vscode/settings.json

+5
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@
1212
"go.alternateTools": {
1313
"golangci-lint": "${workspaceFolder}/.bootstrap/shell/vscode/golang-linters.sh"
1414
},
15+
// This is disabled because it causes version mismatches between the
16+
// tools used/installed by asdf / stencil, and the ones updated by VSCode.
17+
// In particular, this is a problem with newer versions of golangci-lint
18+
// incompatible with older versions of Go.
19+
"go.toolsManagement.autoUpdate": false,
1520
"go.buildTags": "or_dev",
1621
"go.testTags": "or_test,or_int,or_e2e",
1722
"files.trimTrailingWhitespace": true,

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
APP := plumber
22
OSS := true
3-
_ := $(shell ./scripts/devbase.sh)
3+
_ := $(shell ./scripts/devbase.sh)
44

55
include .bootstrap/root/Makefile
66

cortex.yaml

+7-7
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ info:
3939
repo: https://github.com/getoutreach/plumber
4040
framework: stencil
4141
language: Golang
42-
stencil_version: v1.38.0
43-
golang_version: 1.22.0
42+
stencil_version: v1.40.1
43+
golang_version: 1.23.4
4444
cli: false
4545
service: false
4646
product: Outreach
@@ -50,8 +50,8 @@ info:
5050
reporting_team: ce-ecs
5151
lintroller: platinum
5252
x-cortex-groups:
53-
- lifecycle: in_development
54-
- product: Outreach
55-
- language: Golang
56-
- framework: stencil
57-
- engOrg: ce
53+
- lifecycle:in_development
54+
- product:Outreach
55+
- language:Golang
56+
- framework:stencil
57+
- engOrg:ce

go.mod

+9-5
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
11
module github.com/getoutreach/plumber
22

3-
go 1.22.0
3+
go 1.23.0
44

5-
toolchain go1.22.6
5+
toolchain go1.23.4
66

77
require (
88
github.com/samber/lo v1.49.1
99
gotest.tools/v3 v3.5.2
1010
)
1111

12-
require golang.org/x/text v0.21.0 // indirect
12+
require (
13+
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
14+
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
15+
golang.org/x/text v0.21.0 // indirect
16+
)
1317

1418
require (
15-
github.com/google/go-cmp v0.5.9 // indirect
16-
golang.org/x/sync v0.11.0
19+
github.com/google/go-cmp v0.6.0 // indirect
20+
golang.org/x/sync v0.12.0
1721
)

go.sum

+8-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

orchestration.go

+3-5
Original file line numberDiff line numberDiff line change
@@ -288,11 +288,9 @@ type closerContext struct {
288288
// startClosers starts closers functions and captures an error
289289
func (c *closerContext) startClosers(messages chan any, closers ...func(context.Context) error) {
290290
for _, closer := range closers {
291-
func(func(context.Context) error) {
292-
c.erg.Go(func() error {
293-
return closer(c.ctx)
294-
})
295-
}(closer)
291+
c.erg.Go(func() error {
292+
return closer(c.ctx)
293+
})
296294
}
297295

298296
// closers go routine

package.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
22
"license": "UNLICENSED",
33
"devDependencies": {
4-
"@semantic-release/commit-analyzer": "^10.0.1",
4+
"@semantic-release/commit-analyzer": "^12.0.0",
55
"@semantic-release/exec": "^6.0.3",
66
"@semantic-release/git": "^10.0.1",
7-
"@semantic-release/github": "^9.0.3",
8-
"@semantic-release/npm": "^10.0.4",
9-
"@semantic-release/release-notes-generator": "^11.0.3",
10-
"conventional-changelog-conventionalcommits": "^6.0.0",
7+
"@semantic-release/github": "^10.0.3",
8+
"@semantic-release/npm": "^12.0.0",
9+
"@semantic-release/release-notes-generator": "^13.0.0",
10+
"conventional-changelog-conventionalcommits": "^7.0.2",
1111
"prettier": "^2.8.8",
12-
"semantic-release": "^21.0.5",
13-
"semver": "^7.5.2"
12+
"semantic-release": "^23.0.8",
13+
"semver": "^7.6.0"
1414
}
1515
}

scripts/devbase.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
66
libDir="$DIR/../.bootstrap"
77
lockfile="$DIR/../stencil.lock"
88
serviceYaml="$DIR/../service.yaml"
9-
gojqVersion="v0.12.14"
9+
gojqVersion="v0.12.16"
1010

1111
# get_absolute_path returns the absolute path of a file
1212
get_absolute_path() {

scripts/golangci.yml

+7-6
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ linters-settings:
77
errcheck:
88
check-blank: true
99
govet:
10-
check-shadowing: true
10+
enable:
11+
- shadow
1112
revive:
1213
rules:
1314
# Enable the default golint rules. We must include these because
@@ -56,9 +57,6 @@ linters-settings:
5657
- style
5758
disabled-checks:
5859
- whyNoLint # Doesn't seem to work properly
59-
# Suggests bad simplifications (After is not identical to !Before).
60-
# TODO(jkinkead): Remove when we have a version of go-critic with
61-
# https://github.com/go-critic/go-critic/pull/1281 merged.
6260
funlen:
6361
lines: 500
6462
statements: 50
@@ -68,11 +66,11 @@ linters:
6866
disable-all: true
6967
enable:
7068
- bodyclose
69+
- copyloopvar # Detects places where loop variables are copied.
7170
- dogsled
7271
- errcheck
7372
- errorlint
7473
- exhaustive # Checks exhaustiveness of enum switch statements.
75-
- exportloopref # Checks for pointers to enclosing loop variables.
7674
- funlen
7775
- gochecknoinits
7876
- goconst
@@ -96,6 +94,7 @@ linters:
9694
- whitespace
9795

9896
issues:
97+
max-same-issues: 10
9998
exclude:
10099
# We allow error shadowing
101100
- 'declaration of "err" shadows declaration at'
@@ -125,6 +124,8 @@ issues:
125124
source: "^//go:generate "
126125

127126
output:
128-
format: colored-line-number
127+
formats:
128+
- format: colored-line-number
129+
path: stdout
129130
sort-results: true
130131
print-severity: true

stencil.lock

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
1-
version: v1.38.0
1+
version: v1.40.1
22
modules:
33
- name: github.com/getoutreach/devbase
44
url: https://github.com/getoutreach/devbase
5-
version: v2.26.2
5+
version: v2.29.4
66
- name: github.com/getoutreach/stencil-actions
77
url: https://github.com/getoutreach/stencil-actions
8-
version: v0.4.0
8+
version: v0.4.4
99
- name: github.com/getoutreach/stencil-base
1010
url: https://github.com/getoutreach/stencil-base
11-
version: v0.15.2
11+
version: v0.16.3
1212
- name: github.com/getoutreach/stencil-circleci
1313
url: https://github.com/getoutreach/stencil-circleci
14-
version: v1.12.1
14+
version: v1.15.0
1515
- name: github.com/getoutreach/stencil-discovery
1616
url: https://github.com/getoutreach/stencil-discovery
17-
version: v1.8.2
17+
version: v1.8.7
1818
- name: github.com/getoutreach/stencil-golang
1919
url: https://github.com/getoutreach/stencil-golang
20-
version: v1.22.0
20+
version: v1.25.0
2121
- name: github.com/getoutreach/stencil-outreach
2222
url: https://github.com/getoutreach/stencil-outreach
23-
version: v0.21.1
23+
version: v0.24.0
2424
- name: github.com/getoutreach/stencil-pipeline
2525
url: https://github.com/getoutreach/stencil-pipeline
26-
version: v1.1.0
26+
version: v1.2.4
2727
files:
2828
- name: .circleci/config.yml
2929
template: .circleci/config.yml.tpl

0 commit comments

Comments
 (0)