Skip to content

Conversation

@Rakshith-R
Copy link
Contributor

This commit modifies nonBlockingGRPCServer.Start() to accept Servers parameter by reference rather
than value to prevent copy of a large struct.

Linter failed in pr #5347
run logs: https://github.com/ceph/ceph-csi/actions/runs/15390238022/job/43297824813?pr=5347

../internal/csi-common/server.go:66:2: hugeParam: srv is heavy (80 bytes); consider passing it by pointer (gocritic)
	srv Servers,
	^
../internal/csi-common/server.go:90:2: hugeParam: srv is heavy (80 bytes); consider passing it by pointer (gocritic)

Checklist:

  • Commit Message Formatting: Commit titles and messages follow
    guidelines in the developer
    guide
    .
  • Reviewed the developer guide on Submitting a Pull
    Request
  • Pending release
    notes

    updated with breaking and/or notable changes for the next major release.
  • Documentation has been updated, if necessary.
  • Unit tests have been added, if necessary.
  • Integration tests have been added, if necessary.

Show available bot commands

These commands are normally not required, but in case of issues, leave any of
the following bot commands in an otherwise empty comment in this PR:

  • /retest ci/centos/<job-name>: retest the <job-name> after unrelated
    failure (please report the failure too!)

This commit modifies nonBlockingGRPCServer.Start()
to accept Servers parameter by reference rather
than value to prevent copy of a large struct.

Signed-off-by: Rakshith R <[email protected]>
@Rakshith-R Rakshith-R requested review from a team June 2, 2025 12:10
@Madhu-1 Madhu-1 requested a review from a team June 2, 2025 12:18
@Nikhil-Ladha
Copy link
Contributor

@Mergifyio queue

@mergify
Copy link
Contributor

mergify bot commented Jun 2, 2025

queue

✅ The pull request has been merged automatically

The pull request has been merged automatically at dd93de0

@mergify mergify bot added the ok-to-test Label to trigger E2E tests label Jun 2, 2025
@ceph-csi-bot
Copy link
Collaborator

/test ci/centos/k8s-e2e-external-storage/1.30

@ceph-csi-bot
Copy link
Collaborator

/test ci/centos/mini-e2e-helm/k8s-1.30

@ceph-csi-bot
Copy link
Collaborator

/test ci/centos/k8s-e2e-external-storage/1.32

@ceph-csi-bot
Copy link
Collaborator

/test ci/centos/mini-e2e/k8s-1.30

@ceph-csi-bot
Copy link
Collaborator

/test ci/centos/mini-e2e-helm/k8s-1.32

@ceph-csi-bot
Copy link
Collaborator

/test ci/centos/mini-e2e/k8s-1.32

@ceph-csi-bot
Copy link
Collaborator

/test ci/centos/k8s-e2e-external-storage/1.31

@ceph-csi-bot
Copy link
Collaborator

/test ci/centos/mini-e2e-helm/k8s-1.31

@ceph-csi-bot
Copy link
Collaborator

/test ci/centos/mini-e2e/k8s-1.31

@ceph-csi-bot
Copy link
Collaborator

/test ci/centos/upgrade-tests-cephfs

@ceph-csi-bot
Copy link
Collaborator

/test ci/centos/upgrade-tests-rbd

@ceph-csi-bot ceph-csi-bot removed the ok-to-test Label to trigger E2E tests label Jun 2, 2025
@mergify mergify bot merged commit dd93de0 into ceph:devel Jun 2, 2025
37 of 38 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants