-
-
Notifications
You must be signed in to change notification settings - Fork 25
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
Make report async #23
Conversation
Test failed again due to github auth token missing, any way to fix that on travis? |
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 a lot for this!
Test failed again due to github auth token missing, any way to fix that on travis?
That's weird, because the token is there 🤔
I'll look into switching to GitHub actions, since I'm moving everything there anyway for other repositories.
The tests pass for me locally anyway, so the CI is not a blocker.
Apart from that, there is one bug that was introduced but easily fixed.
I've replaced Travis by GitHub actions on master, feel free to rebase (and I hope it will work) |
5469c4a
to
f6d9a1a
Compare
f6d9a1a
to
0c4c68f
Compare
Bug fixed and CI went green! |
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.
Awesome, thanks a lot @Arkham!
Hello there! I've bumped into the following issue.
With this setup:
Running the following commands:
Led to this error:
Which was caused by the output of elm-review being cut at 8192 characters.
Doing some digging this seems to be a common issue in NodeJS when doing something like:
Check out these links for more info:
So in this PR I changed the
report
function to be async and replacedconsole.log
withprocess.stdout.write
, which allows to be passed a callback when the write has been finished (https://nodejs.org/api/stream.html#stream_writable_write_chunk_encoding_callback). I also promisified it so we don't have to pass that callback from the normal code.With this fix in place, running
npm test
in the above setup succeeds.I have no idea about NodeJS development in general, so please let me know if this looks good to you.