-
Notifications
You must be signed in to change notification settings - Fork 86
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
--help fail on config json error #2301
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: ATorrise <amber.torrise@broadcom.com>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2301 +/- ##
=======================================
Coverage 91.15% 91.15%
=======================================
Files 636 636
Lines 18029 18042 +13
Branches 3767 3776 +9
=======================================
+ Hits 16434 16447 +13
Misses 1594 1594
Partials 1 1 ☔ View full report in Codecov by Sentry. |
Signed-off-by: ATorrise <amber.torrise@broadcom.com>
Signed-off-by: ATorrise <amber.torrise@broadcom.com>
Signed-off-by: ATorrise <amber.torrise@broadcom.com>
Signed-off-by: Amber Torrise <amber.torrise@broadcom.com>
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.
A few tests failing, but changes LGTM! 😋
Curious if we agreed on having the error at the bottom of the output of towards the top.
Just seeing it in practice, someone could miss the error if they are viewing the help text 😋
packages/imperative/src/cmd/__tests__/CommandProcessor.unit.test.ts
Outdated
Show resolved
Hide resolved
Co-authored-by: Fernando Rijo Cedeno <37381190+zFernand0@users.noreply.github.com> Signed-off-by: Amber Torrise <112635587+ATorrise@users.noreply.github.com>
Signed-off-by: Amber Torrise <amber.torrise@broadcom.com>
7eb5d56
to
d7ea329
Compare
was testing a revert to see if error in test persisted adding a note so that theres less confusion when reviewing... i went back in my commit history locally by doing a git reset –soft [commit hash] to check if my failing tests were still failing. rather than deleting this local branch and re downloading from remote, i instead pushed all those changes back up, making several commits and merges look like 1 commit in an attempt to restore the progress made. |
Signed-off-by: Amber <amber.torrise@broadcom.com> Signed-off-by: Fernando Rijo Cedeno <37381190+zFernand0@users.noreply.github.com>
…hat was missed in imperative cleanup Signed-off-by: Amber <amber.torrise@broadcom.com> Signed-off-by: Fernando Rijo Cedeno <37381190+zFernand0@users.noreply.github.com>
Signed-off-by: Amber <amber.torrise@broadcom.com> Signed-off-by: Fernando Rijo Cedeno <37381190+zFernand0@users.noreply.github.com>
…msg-help-version Signed-off-by: Fernando Rijo Cedeno <37381190+zFernand0@users.noreply.github.com>
bfde641
to
6545a33
Compare
Signed-off-by: Amber <amber.torrise@broadcom.com> Signed-off-by: Fernando Rijo Cedeno <37381190+zFernand0@users.noreply.github.com>
Signed-off-by: Amber <amber.torrise@broadcom.com>
Signed-off-by: Fernando Rijo Cedeno <37381190+zFernand0@users.noreply.github.com>
Added the
|
Signed-off-by: Amber <amber.torrise@broadcom.com> Signed-off-by: Fernando Rijo Cedeno <37381190+zFernand0@users.noreply.github.com>
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.
LGTM! 😋
Sorry for giving you so much trouble on the reviews 😋
Signed-off-by: Amber <amber.torrise@broadcom.com>
…-cli into error-msg-help-version
I believe these changes were addressed 😋
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.
Looks pretty good, thanks @ATorrise - made a few small requests
packages/cli/__tests__/zosfiles/__unit__/upload/ftds/FileToDataSet.handler.unit.test.ts
Show resolved
Hide resolved
packages/imperative/src/imperative/src/config/cmd/report-env/EnvItems.ts
Show resolved
Hide resolved
Signed-off-by: Amber <amber.torrise@broadcom.com>
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.
Thanks for addressing feedback, will approve once the unit test is fixed 😋
packages/imperative/src/config/__tests__/Config.api.unit.test.ts
Outdated
Show resolved
Hide resolved
packages/imperative/src/config/__tests__/Config.api.unit.test.ts
Outdated
Show resolved
Hide resolved
Signed-off-by: Amber <amber.torrise@broadcom.com>
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.
Left some notes for minor edits to the changelog entry
Signed-off-by: Amber <amber.torrise@broadcom.com>
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.
Thanks for addressing the feedback and for being patient 🙏
LGTM! 😋
Signed-off-by: Timothy Johnson <timothy.johnson@broadcom.com>
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.
When testing the PR I was still seeing a fatal error, which I fixed in 71b032a 🙂
Please add an integration test that runs zowe --help
and zowe --version
with a bad config to verify the error is non-fatal.
Quality Gate passedIssues Measures |
What It Does
Ensures users can still access the help documentation and version details, even when config files contain errors.
How to Test
zowe.config.json
file with invalid JSON or syntax errors.--help
flag, ie:zowe zosmf --help
--help
flag to ensure it still fails as expected with a JSON error.Review Checklist
I certify that I have: