Skip to content
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

Fixing slog.Logger.Error arg err should be a string or a slog.Attr (possible missing key or value) #540

Merged
merged 1 commit into from
Nov 6, 2024

Conversation

ederign
Copy link
Member

@ederign ederign commented Nov 6, 2024

Description

On go 23, this error occurs:

internal/mocks/k8s_mock.go:53:52: slog.Logger.Error arg "err" should be a string or a slog.Attr (possible missing key or value)
internal/mocks/k8s_mock.go:60:54: slog.Logger.Error arg "err" should be a string or a slog.Attr (possible missing key or value)
internal/mocks/k8s_mock.go:67:40: slog.Logger.Error arg "err" should be a string or a slog.Attr (possible missing key or value)

How Has This Been Tested?

Ran the BFF and ran the FE.

Merge criteria:

  • All the commits have been signed-off (To pass the DCO check)
  • The commits have meaningful messages; the author will squash them after approval or in case of manual merges will ask to merge with squash.
  • Testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious).
  • The developer has manually tested the changes and verified that the changes work.
  • Code changes follow the kubeflow contribution guidelines.

…ossible missing key or value)

Signed-off-by: Eder Ignatowicz <[email protected]>
@Griffin-Sullivan
Copy link
Contributor

Should we update the go.mod version or add documentation about what version of go to develop with?

@ederign
Copy link
Member Author

ederign commented Nov 6, 2024

@Griffin-Sullivan, that is indeed one of the option or we would stay with our:

https://github.com/kubeflow/model-registry/tree/main/clients/ui/bff#dependencies

Dependencies
Go >= 1.22.2

I would prefer to keep using 1.22 so as not to be 'too far' ahead from https://github.com/kubeflow/model-registry/blob/main/go.mod#L3 and keep this PR with the purpose of 'fixes built in 1.23.x'

But I'm happy with either of them! :)

@alexcreasy
Copy link
Contributor

Yeah I say we stick close to the go version used in the rest of the project. We can decide on docs separately, I've tested and it works with 1.23 so lgtm

Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: alexcreasy

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@alexcreasy
Copy link
Contributor

/lgtm

@google-oss-prow google-oss-prow bot added the lgtm label Nov 6, 2024
@google-oss-prow google-oss-prow bot merged commit d4ced02 into kubeflow:main Nov 6, 2024
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants