Skip to content

New error codes definitions for Unity API#92

Merged
tdawe merged 4 commits into
mainfrom
usr/babija/error-codes
Jun 25, 2025
Merged

New error codes definitions for Unity API#92
tdawe merged 4 commits into
mainfrom
usr/babija/error-codes

Conversation

@alexemc

@alexemc alexemc commented Jun 24, 2025

Copy link
Copy Markdown
Contributor

Description

This PR defines more Unity API error codes, allowing the gounity caller to handle API errors more granularly.
This PR also eliminates a redundant http GET request that had no effect.

GitHub Issues

List the GitHub issues impacted by this PR:

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

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
  • Backward compatibility is not broken

How Has This Been Tested?

…d volume deletion. Also removed unused code.
Comment thread unityclient.go
Comment thread volume.go
@ChristianAtDell

Copy link
Copy Markdown
Contributor

Looks like a UT coverage decrease. Code looks good, but we're below threshold now.

@alexemc alexemc requested a review from ChristianAtDell June 24, 2025 21:34
anathoodell
anathoodell previously approved these changes Jun 24, 2025
alikdell
alikdell previously approved these changes Jun 25, 2025
@alikdell

Copy link
Copy Markdown
Collaborator

Can you cleanup codewoners, and add a Bears and Lumens team member in codeowner.

@alexemc alexemc dismissed stale reviews from alikdell and anathoodell via 9901399 June 25, 2025 16:30
@github-actions

Copy link
Copy Markdown
Contributor

Merging this branch will increase overall coverage

Impacted Packages Coverage Δ 🤖
github.com/dell/gounity 90.52% (+0.46%) 👍

Coverage by file

Changed files (no unit tests)

Changed File Coverage Δ Total Covered Missed 🤖
github.com/dell/gounity/unityclient.go 87.50% (+3.85%) 104 91 (+4) 13 (-4) 👍
github.com/dell/gounity/volume.go 88.07% (-0.13%) 176 (-2) 155 (-2) 21 👎

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/gounity/unityclient_test.go
  • github.com/dell/gounity/volume_test.go

@alexemc alexemc requested review from alikdell and anathoodell June 25, 2025 16:32
@tdawe

tdawe commented Jun 25, 2025

Copy link
Copy Markdown

Force merging because this PR updates the correct list of CodeOwners for this repository. The only remaining check was due to CodeOwner approval which was blocking this PR.

@tdawe tdawe merged commit 2919545 into main Jun 25, 2025
6 checks passed
@tdawe tdawe deleted the usr/babija/error-codes branch June 25, 2025 17:02
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.

7 participants