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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve error logging and ensure non-zero exit #201

Merged
merged 4 commits into from Oct 11, 2022
Merged

Improve error logging and ensure non-zero exit #201

merged 4 commits into from Oct 11, 2022

Conversation

IanVS
Copy link
Member

@IanVS IanVS commented Oct 7, 2022

I was getting an error when running the test-runner, but it did not fail CI because an exit code of 0 was being returned. Also, the error message did not have any stack trace or other information, so it was nearly impossible to tell why it was failing.

This PR adds a stacktrace to the error message returned, and ensures that we exit with a non-zero code, so that CI fails correctly. I also made the title red, just because I think it helps a little for clarity.

Before:
image

After:
image

Underlying issue causing this error: #200

Oh, and I fixed some import paths. I think the actual imports were working before, but typescript couldn't find them, I guess due to the way that the compiled babel output converted export * from.

image

# Version

Published prerelease version: v0.8.1-next.0

Changelog

馃悰 Bug Fix

  • Improve error logging and ensure non-zero exit #201 (@IanVS)

Authors: 1

@IanVS IanVS requested a review from yannbf October 7, 2022 15:47
@yannbf yannbf added the patch Increment the patch version when merged label Oct 7, 2022
Copy link

@jasikpark jasikpark left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Member

@yannbf yannbf left a comment

Choose a reason for hiding this comment

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

This is great, thank you so much!

@yannbf yannbf merged commit 2c99bc3 into next Oct 11, 2022
This was referenced Oct 12, 2022
@yannbf yannbf mentioned this pull request Oct 12, 2022
@github-actions
Copy link

馃殌 PR was released in v0.9.0 馃殌

@yannbf yannbf deleted the error-handling branch November 18, 2022 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch Increment the patch version when merged released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants