-
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
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.17% +0.01%
==========================================
Files 636 636
Lines 18039 18052 +13
Branches 3879 3779 -100
==========================================
+ Hits 16444 16459 +15
+ Misses 1594 1592 -2
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>
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.
Signed-off-by: Amber Torrise <112635587+ATorrise@users.noreply.github.com>
Signed-off-by: Amber <amber.torrise@broadcom.com>
Signed-off-by: Amber Torrise <112635587+ATorrise@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.
Thanks Amber for the fix! LGTM
Signed-off-by: Amber <amber.torrise@broadcom.com>
Enhanced #2301 to include "--help-web" commands to pass even if presence of a faulty configuration
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: