-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(cli): correct download-output command displaying resolved UNC path #337
fix(cli): correct download-output command displaying resolved UNC path #337
Conversation
Signed-off-by: Godot Bian <13778003+godobyte@users.noreply.github.com>
Signed-off-by: Godot Bian <13778003+godobyte@users.noreply.github.com>
Quality Gate passedIssues Measures |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great testing coverage Godot, looks good to me!
🚢 🦈
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Can you update the commit messages according to https://www.conventionalcommits.org/en/v1.0.0/#summary?
- No unit tests changed?
- Do we plan to add corresponding integ tests?
Thanks for reviewing the PR @chocecil !
That's good to know, I'll be careful with commit message and description at the time of squash merging.
All existing unit tests are passing as expected.
Integ tests might be a good fit to validate this change since it requires special drive setup in windows, but we should definitely have integ tests for the workflow to make sure there is no regression. |
I mean we changed the code, but how come no unit tests needs to update? |
@chocecil If you mean by no added unit tests to validate, that's because this is an edge case on windows with mapped network drive. I'm not sure how we can mock the drive setup in unit test. Without that part, the unit test will just becomes a normal case on windows such as any other lettered drive, which is covered already. I can create a separate task to see what would be the best test strategy to cover this edge case. |
What was the problem/requirement? (What/Why)
The
download-output
CLI command can output resolved UNC root paths for mapped drive, leading to confusing logs like belowWhat was the solution? (How)
Remove path resolve that output UNC path for mapped network drive.
What is the impact of this change?
The download-output command shows unresolved path for mapped drive.
How was this change tested?
Was this change documented?
No.
Is this a breaking change?
No.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.