Skip to content

fix: address frontend vet failures - #25401

Merged
XuPeng-SH merged 1 commit into
4.1-devfrom
fix/frontend-vet-coverage-4.1
Jul 3, 2026
Merged

fix: address frontend vet failures#25401
XuPeng-SH merged 1 commit into
4.1-devfrom
fix/frontend-vet-coverage-4.1

Conversation

@XuPeng-SH

@XuPeng-SH XuPeng-SH commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

What type of PR is this?

  • API-change
  • BUG
  • Improvement
  • Documentation
  • Feature
  • Test and CI
  • Code Refactoring

Which issue(s) this PR fixes:

#25402

What this PR does / why we need it:

This fixes two Go vet failures in pkg/frontend that block the coverage UT job on 4.1-dev:

  • use structured SessionLogger.Error instead of passing zap fields to the printf-style Errorf
  • use %d for int64 values in TestTransformIntoHours

Validation:

  • macOS: go test -run 'TestTransformIntoHours|TestIsValidFrequency' -count=1 -vet=all ./pkg/frontend
  • Linux Docker (matrixorigin/golang:1.26.4-ubuntu22.04): go test -json -short -v -tags matrixone_test -p 6 -covermode=set -coverprofile=frontend_coverage.raw -coverpkg="<CI full package scope>" ./pkg/frontend

@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

Comment thread pkg/frontend/mysql_cmd_executor.go Fixed
Comment thread pkg/frontend/mysql_cmd_executor.go Dismissed
@XuPeng-SH
XuPeng-SH merged commit 6673d36 into 4.1-dev Jul 3, 2026
26 of 28 checks passed
@XuPeng-SH
XuPeng-SH deleted the fix/frontend-vet-coverage-4.1 branch July 3, 2026 01:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/bug Something isn't working kind/test-ci size/XS Denotes a PR that changes [1, 9] lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants