Skip to content

Remove targets from publish context#565

Merged
alikdell merged 15 commits into
mainfrom
fix/remove-targets-from-publish-context
Sep 15, 2025
Merged

Remove targets from publish context#565
alikdell merged 15 commits into
mainfrom
fix/remove-targets-from-publish-context

Conversation

@JacobGros

@JacobGros JacobGros commented Sep 12, 2025

Copy link
Copy Markdown
Contributor

Description

Adding all targets to publish context and passing that to NodeStageVolume can cause an issue when array has many targets.
This PR shifts the logic of target discovery to NodeStageVolume itself to fix the issue.

GitHub Issues

List the GitHub issues impacted by this PR:

GitHub Issue #
https://github.com/dell/csm/issues/2012

Checklist:

  • I have performed a self-review of my own code to ensure there are no formatting, vetting, linting, or security issues
  • I have verified that new and existing unit tests pass locally with my changes
  • I have not allowed coverage numbers to degenerate
  • I have maintained at least 90% code coverage
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • I have executed the openshift end-to-end test scenarios without enabling any modules
  • Backward compatibility is not broken

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Please also list any relevant details for your test configuration

  • Unit test has been written and covers our new code completely.
  • K8s E2E has passed with the latest image. (ISCSI)
  • Replication E2E has passed with the latest image
  • Auth E2E has passed with the latest image

@github-actions

Copy link
Copy Markdown
Contributor

Merging this branch will not change overall coverage

Impacted Packages Coverage Δ 🤖
github.com/dell/csi-powerstore/pkg/controller 0.00% (ø)
github.com/dell/csi-powerstore/pkg/identifiers 0.00% (ø)
github.com/dell/csi-powerstore/pkg/node 0.00% (ø)

Coverage by file

Changed files (no unit tests)

Changed File Coverage Δ Total Covered Missed 🤖
github.com/dell/csi-powerstore/pkg/controller/publisher.go 0.00% (ø) 0 0 0
github.com/dell/csi-powerstore/pkg/identifiers/identifiers.go 0.00% (ø) 0 0 0
github.com/dell/csi-powerstore/pkg/node/node.go 0.00% (ø) 0 0 0
github.com/dell/csi-powerstore/pkg/node/stager.go 0.00% (ø) 0 0 0

Please note that the "Total", "Covered", and "Missed" counts above refer to code statements instead of lines of code. The value in brackets refers to the test coverage of that file in the old version of the code.

Changed unit test files

  • github.com/dell/csi-powerstore/pkg/controller/controller_test.go
  • github.com/dell/csi-powerstore/pkg/controller/publisher_test.go
  • github.com/dell/csi-powerstore/pkg/node/node_test.go
  • github.com/dell/csi-powerstore/pkg/node/stager_test.go

Comment thread pkg/controller/publisher_test.go

@tdawe tdawe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the code and I don't see any issues since we are just moving the publish context from one place to another.

@mjsdell

mjsdell commented Sep 15, 2025

Copy link
Copy Markdown
Collaborator

Approved

@AronAtDell

Copy link
Copy Markdown
Contributor

Approved.

@alikdell alikdell merged commit a892d17 into main Sep 15, 2025
6 checks passed
@alikdell alikdell deleted the fix/remove-targets-from-publish-context branch September 15, 2025 21:04
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.

9 participants