Skip to content
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

Return proper exit codes from Fusion CLI #6911

Merged
merged 1 commit into from
Feb 17, 2024

Conversation

tobias-tengler
Copy link
Collaborator

Currently every command, even unsuccessful ones (like an unhandled exception), returns a 0 exit code.
An error during composition is therefore treated as success and won't fail CI, which just caused us some headaches... 😅

This PR returns the actual exit code as reported by the command handler or exception handler.

Copy link

Qodana for .NET

It seems all right 👌

No new problems were found according to the checks applied

💡 Qodana analysis was run in the pull request mode: only the changed files were checked
☁️ View the detailed Qodana report

Contact Qodana team

Contact us at qodana-support@jetbrains.com

Copy link

codecov bot commented Feb 16, 2024

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (8717279) 73.18% compared to head (457b480) 73.19%.

Files Patch % Lines
src/HotChocolate/Fusion/src/CommandLine/Program.cs 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6911      +/-   ##
==========================================
+ Coverage   73.18%   73.19%   +0.01%     
==========================================
  Files        2568     2568              
  Lines      127558   127558              
==========================================
+ Hits        93355    93369      +14     
+ Misses      34203    34189      -14     
Flag Coverage Δ
unittests 73.19% <0.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@michaelstaib michaelstaib merged commit 554fdc0 into main Feb 17, 2024
98 of 100 checks passed
@michaelstaib michaelstaib deleted the tte/fusion-cli-error-codes branch February 17, 2024 05:44
@PascalSenn PascalSenn mentioned this pull request Feb 19, 2024
@PascalSenn PascalSenn mentioned this pull request May 22, 2024
@PascalSenn PascalSenn mentioned this pull request Jun 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants