Skip to content

Updated the snapshot size#491

Merged
mgandharva merged 3 commits into
mainfrom
mg/bugfix-snapsize
Mar 18, 2025
Merged

Updated the snapshot size#491
mgandharva merged 3 commits into
mainfrom
mg/bugfix-snapsize

Conversation

@mgandharva

@mgandharva mgandharva commented Mar 17, 2025

Copy link
Copy Markdown
Contributor

Description

This PR updates the SizeBytes field in the csi.Snapshot structure to use the volume capacity in gigabytes (vol.CapacityGB) instead of the previous calculation based on cylinder size. This change ensures that the snapshot size is accurately represented in bytes.

GitHub Issues

List the GitHub issues impacted by this PR:

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

Checklist:

  • Have you run format,vet & lint checks against your submission?
  • Have you made sure that the code compiles?
  • Did you run the unit & integration tests successfully?
  • Have you maintained at least 90% code coverage?
  • Have you commented your code, particularly in hard-to-understand areas
  • Have you done corresponding changes to the documentation
  • Did you run tests in a real Kubernetes cluster?
  • Backward compatibility is not broken

How Has This Been Tested?

Ran Cert-csi

  • Replication Suite
    image

  • SnapShot suite
    image

  • CapcityTracking Suite
    image

rishabhatdell
rishabhatdell previously approved these changes Mar 18, 2025
Comment thread service/controller.go
Comment thread service/controller.go
@github-actions

Copy link
Copy Markdown
Contributor

Merging this branch will not change overall coverage

Impacted Packages Coverage Δ 🤖
github.com/dell/csi-powermax/service 0.00% (ø)

Coverage by file

Changed files (no unit tests)

Changed File Coverage Δ Total Covered Missed 🤖
github.com/dell/csi-powermax/service/controller.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-powermax/service/step_defs_test.go

@prablr79

Copy link
Copy Markdown

can we get coverage here ?

@SinuChacko SinuChacko self-requested a review March 18, 2025 11:51
@mgandharva

Copy link
Copy Markdown
Contributor Author

can we get coverage here ?

image

@prablr79 prablr79 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM

@mgandharva mgandharva merged commit cfc7d52 into main Mar 18, 2025
@mgandharva mgandharva deleted the mg/bugfix-snapsize branch March 18, 2025 12:06
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.

6 participants