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

fix: exit with 1 for failing validations #1068

Merged
merged 4 commits into from
Jan 29, 2024

Conversation

JarnoRFB
Copy link
Contributor

Description

Exit the validate with 1 for failing validations. Failing validations should exit with code 1 so they can be used in CI and also comply with the commands' documentation.

Related issue(s)
Resolves #861

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Welcome to AsyncAPI. Thanks a lot for creating your first pull request. Please check out our contributors guide useful for opening a pull request.
Keep in mind there are also other channels you can use to interact with AsyncAPI community. For more details check out this issue.

@JarnoRFB
Copy link
Contributor Author

While the implementation should be straight-forward, the tests somehow fail and report Error: Expected to exit with code 1 but it ran without exiting, which I don't see the reason for.

@JarnoRFB JarnoRFB changed the title Exit with 1 for failing validations fix: exit with 1 for failing validations Jan 12, 2024
@JarnoRFB JarnoRFB marked this pull request as ready for review January 16, 2024 17:38
@JarnoRFB
Copy link
Contributor Author

Test are all green locally now, so this would be ready to review.

Copy link
Contributor

@Ferror Ferror left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just wanted to open the issue for it and I salute you for fixing it <3

Copy link

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@JarnoRFB
Copy link
Contributor Author

@Souvikns @magicmatatjahu @derberg is there anything I should do to proceed with the PR?

@Souvikns
Copy link
Member

/rtm

@asyncapi-bot asyncapi-bot merged commit 3f4ee3e into asyncapi:master Jan 29, 2024
10 checks passed
@asyncapi-bot
Copy link
Contributor

🎉 This PR is included in version 1.4.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

@JarnoRFB JarnoRFB deleted the fix-validation-exit-code branch February 1, 2024 10:28
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.

fail-severity warn info
4 participants