-
Notifications
You must be signed in to change notification settings - Fork 860
chore: Go 1.24, and mockery, x/tools, sqlite to support it #7244
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 1 commit
a8f5caa
63732d4
c530841
80742ad
617128f
184813a
86ce064
7569570
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
all: false | ||
log-level: info | ||
dir: "{{.InterfaceDirRelative}}" | ||
structname: "Mock{{.InterfaceName}}" | ||
# interfacefile is an absolute path, get basename and rewrite | ||
filename: "{{.InterfaceFile | base | replaceAll \".go\" \"_mock.go\"}}" | ||
pkgname: "{{.SrcPackageName}}" | ||
packages: | ||
github.com/aws/aws-sdk-go/service/s3/s3iface: | ||
config: | ||
dir: "common/archiver/s3store/mocks" | ||
filename: "s3_api_mock.go" | ||
structname: "{{.InterfaceName}}" | ||
pkgname: "mocks" | ||
interfaces: | ||
S3API: | ||
github.com/uber/cadence/common/archiver: | ||
config: | ||
filename: "interface_mock.go" | ||
structname: "{{.InterfaceName}}Mock" | ||
interfaces: | ||
HistoryArchiver: | ||
VisibilityArchiver: | ||
github.com/uber/cadence/common/archiver/gcloud/connector: | ||
config: | ||
dir: "common/archiver/gcloud/connector/mocks" | ||
pkgname: "mocks" | ||
filename: "{{.InterfaceName}}.go" | ||
structname: "{{.InterfaceName}}" | ||
interfaces: | ||
Client: | ||
GcloudStorageClient: | ||
BucketHandleWrapper: | ||
ObjectHandleWrapper: | ||
ObjectIteratorWrapper: | ||
ReaderWrapper: | ||
WriterWrapper: | ||
github.com/uber/cadence/common/archiver/provider: | ||
interfaces: | ||
ArchiverProvider: | ||
github.com/uber/cadence/common/blobstore: | ||
interfaces: | ||
Client: | ||
github.com/uber/cadence/common/elasticsearch: | ||
config: | ||
dir: "common/elasticsearch/mocks" | ||
pkgname: "mocks" | ||
filename: "{{.InterfaceName}}.go" | ||
structname: "{{.InterfaceName}}" | ||
interfaces: | ||
GenericClient: | ||
github.com/uber/cadence/common/elasticsearch/bulk: | ||
config: | ||
dir: "common/elasticsearch/bulk/mocks" | ||
pkgname: "mocks" | ||
filename: "{{.InterfaceName}}.go" | ||
structname: "{{.InterfaceName}}" | ||
interfaces: | ||
GenericBulkableRequest: | ||
GenericBulkProcessor: | ||
github.com/uber/cadence/common/metrics: | ||
config: | ||
dir: "common/metrics/mocks" | ||
pkgname: "mocks" | ||
filename: "{{.InterfaceName}}.go" | ||
structname: "{{.InterfaceName}}" | ||
interfaces: | ||
Client: | ||
Scope: | ||
github.com/uber/cadence/common/persistence: | ||
config: | ||
dir: "common/mocks" | ||
pkgname: "mocks" | ||
filename: "{{.InterfaceName}}.go" | ||
structname: "{{.InterfaceName}}" | ||
interfaces: | ||
ExecutionManager: | ||
TaskManager: | ||
VisibilityManager: | ||
ShardManager: | ||
github.com/uber/cadence/service/worker/parentclosepolicy: | ||
config: | ||
structname: "ClientMock" | ||
interfaces: | ||
Client: |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ ARG TARGET=server | |
ARG GOPROXY | ||
|
||
# Build Cadence binaries | ||
FROM golang:1.23.4-alpine3.21 AS builder | ||
FROM golang:1.24.7-alpine3.21 AS builder | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I tried a bit to convert our github-action to alpine too, but hit too many barriers and gave up fairly quickly :| probably doesn't matter if the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yeah, as long as the images are cached, debian's honestly usually a little easier to work with |
||
|
||
ARG RELEASE_VERSION | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice, is this intended to be comprehensive or it's just some problematic ones?
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"all" is for whether it'll generate mocks of every interface it discovers, or if it's an explicit list (below). e.g. you could use it for "all" in a subdir, if it always contained interfaces you wanted to mock (like an "interfaces" dir).
I don't think we'll ever get even close to wanting that tho :)