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

CLI error did not trigger a Travis failure #659

Closed
jywarren opened this issue Jan 12, 2019 · 16 comments
Closed

CLI error did not trigger a Travis failure #659

jywarren opened this issue Jan 12, 2019 · 16 comments

Comments

@jywarren
Copy link
Member

In #645 we noticed a bug in the CLI version broke that interface - the bug appeared in Travis but did not cause Travis to fail, unfortunately, so we didn't notice it!

The original error was fixed, but actually there seems to be a new one in the CLI, here:

https://travis-ci.org/publiclab/image-sequencer/jobs/478649385#L644-L658

We should ensure that the CLI tests actually detect and report a failure in Travis. @Mridul97 you mentioned you may be interested in working on this one? Thanks!

@gitmate
Copy link

gitmate bot commented Jan 12, 2019

GitMate.io thinks possibly related issues are #645 (CLI NOT WORKING), #637 (DrawRectangle info.json causes JSON parse error during Travis CI test), #145 ("reader is not defined" error on demo), #537 (Module not found error on demo), and #278 (Module not found error in demo).

1 similar comment
@gitmate
Copy link

gitmate bot commented Jan 12, 2019

GitMate.io thinks possibly related issues are #645 (CLI NOT WORKING), #637 (DrawRectangle info.json causes JSON parse error during Travis CI test), #145 ("reader is not defined" error on demo), #537 (Module not found error on demo), and #278 (Module not found error in demo).

@Mridul97
Copy link

@jywarren Yes, I would like to give this one a try!

@vibhorgupta-gh
Copy link

vibhorgupta-gh commented Jan 12, 2019

@jywarren @Mridul97 check this out. I just made a PR at #665 and it fails the Travis CI.

https://travis-ci.org/publiclab/image-sequencer/jobs/478709461#L1710

Apparently, CI is now failing for the syntax error it wasn't beforehand

UPDATE

Pushed a commit to #665 to fix the build
Travis seems to not catch just the Syntax errors then (?)

@harshkhandeparkar
Copy link
Member

@VibhorCodecianGupta your PR has other errors too. The problem is that line 1710 fails each time but the CI test doesn't fail.

@vibhorgupta-gh
Copy link

@harshkhandeparkar yes, I fixed them. So Travis is not catching the syntax errors then I presume?

@harshkhandeparkar
Copy link
Member

@VibhorCodecianGupta your PR tests are failing because of many reasons but that line 1710 fails in every PR but the overall test does not fail.

@vibhorgupta-gh
Copy link

vibhorgupta-gh commented Jan 12, 2019

@harshkhandeparkar I fixed my PR which was failing because of a parsing error. I noticed the line 1710 failing and another similar error (which is now gone because of the fix) that of using let outside the strict scope. Which is why I was wondering whether it's just Syntax errors that Travis is not catching, but apparently not, as https://travis-ci.org/publiclab/image-sequencer/jobs/478709461#L1710 is a problem too.

@harshkhandeparkar
Copy link
Member

@VibhorCodecianGupta what about https://travis-ci.org/publiclab/image-sequencer/jobs/478484508? The build is not failing even though error is thrown.

@vibhorgupta-gh
Copy link

vibhorgupta-gh commented Jan 12, 2019

That is exactly what I'm saying 😆
I thought it was for all syntax errors like it is in this one

@VibhorCodecianGupta what about https://travis-ci.org/publiclab/image-sequencer/jobs/478484508? The build is not failing even though error is thrown.

but apparently it isn't as can be seen here

The original error was fixed, but actually there seems to be a new one in the CLI, here:
https://travis-ci.org/publiclab/image-sequencer/jobs/478649385#L644-L658

So the issue is somewhere else

@harshkhandeparkar
Copy link
Member

That is exactly what I'm saying
I thought it was for all syntax errors like it is in this one

@VibhorCodecianGupta what about https://travis-ci.org/publiclab/image-sequencer/jobs/478484508? The build is not failing even though error is thrown.

but apparently it isn't as can be seen here

The original error was fixed, but actually there seems to be a new one in the CLI, here:
https://travis-ci.org/publiclab/image-sequencer/jobs/478649385#L644-L658

So the issue is somewhere else

LOL 😆 I thought you were saying something else.

@harshkhandeparkar
Copy link
Member

How about dropping support for node 6? It doesn't support the spread operator and throws an error but travis doesn't fail though. Maybe we have to run set -e which will terminate script with a non-0 if any commands which are run inside the script exit with non zero.

@jywarren
Copy link
Member Author

jywarren commented Mar 18, 2019 via email

@harshkhandeparkar
Copy link
Member

Hmm, i'll try.

@jywarren
Copy link
Member Author

Linking to #1550 and #1113 !

@jywarren
Copy link
Member Author

jywarren commented Nov 1, 2020

Fixed in #1718

@jywarren jywarren closed this as completed Nov 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants