-
Notifications
You must be signed in to change notification settings - Fork 19
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
Add etna-time
configs
#463
Conversation
@@ -67,6 +68,9 @@ type Config struct { | |||
DeciderURL string `mapstructure:"decider-url" json:"decider-url"` | |||
SignatureCacheSize uint64 `mapstructure:"signature-cache-size" json:"signature-cache-size"` | |||
|
|||
// mapstructure doesn't handle time.Time out of the box so handle it manually | |||
EtnaTime time.Time `json:"etna-time"` |
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.
I would have liked to do omitempty
so that tests don't write the field out when marshaling JSON here but zero time value still gets written out unless the field type is *time.Time
which seemed messier.
The value that does get written out is correctly parsed by viper to be zero time value. As a result tests run the pre-Etna case unless otherwise specified.
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.
One comment but LGTM 👍
} | ||
} | ||
|
||
func (s *SignatureAggregator) unmarshalResponse(responseBytes []byte) (blsSignatureBuf, error) { |
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.
Can we leave TODOs and create a ticket for when this logic is okay to clean up?
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.
Added TODO and entered: #466
Bumps [github.com/onsi/ginkgo/v2](https://github.com/onsi/ginkgo) from 2.20.1 to 2.20.2. - [Release notes](https://github.com/onsi/ginkgo/releases) - [Changelog](https://github.com/onsi/ginkgo/blob/master/CHANGELOG.md) - [Commits](onsi/ginkgo@v2.20.1...v2.20.2) --- updated-dependencies: - dependency-name: github.com/onsi/ginkgo/v2 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]>
…ersions.sh" This reverts commit 47cfef6.
…m/onsi/ginkgo/v2-2.20.2 Bump github.com/onsi/ginkgo/v2 from 2.20.1 to 2.20.2
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.65.0 to 1.66.0. - [Release notes](https://github.com/grpc/grpc-go/releases) - [Commits](grpc/grpc-go@v1.65.0...v1.66.0) --- updated-dependencies: - dependency-name: google.golang.org/grpc dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]>
Bumps [github.com/onsi/gomega](https://github.com/onsi/gomega) from 1.34.1 to 1.34.2. - [Release notes](https://github.com/onsi/gomega/releases) - [Changelog](https://github.com/onsi/gomega/blob/master/CHANGELOG.md) - [Commits](onsi/gomega@v1.34.1...v1.34.2) --- updated-dependencies: - dependency-name: github.com/onsi/gomega dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]>
…m/onsi/gomega-1.34.2 Bump github.com/onsi/gomega from 1.34.1 to 1.34.2
…lang.org/grpc-1.66.0 Bump google.golang.org/grpc from 1.65.0 to 1.66.0
Why this should be merged
This will allow for merging of ACP-118 changes and toggling them based on the configured timestamp of the Etna upgrade
How this works
GetTime()
method directly instead of relying onmapstructure
tags sincetime.Time
isn't directly handled by it.How this was tested
etna-time
configuration set in the past, unset and set in the future. As expected, only future and unset cases returned a valid signature.How is this documented