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

Downstream test: failing JSCS tests #1247

Closed
ariya opened this issue Jul 22, 2015 · 20 comments
Closed

Downstream test: failing JSCS tests #1247

ariya opened this issue Jul 22, 2015 · 20 comments
Assignees

Comments

@ariya
Copy link
Contributor

ariya commented Jul 22, 2015

This is discovered via #1245 (fails for me with Node.js v0.12.0, npm 2.9.1).

git clone https://github.com/jscs-dev/node-jscs.git
cd node-jscs
npm install
npm test
@ariya
Copy link
Contributor Author

ariya commented Jul 23, 2015

In the interim, we disable JSCS in the downstream tests.

@ariya
Copy link
Contributor Author

ariya commented Jul 29, 2015

Seems that this is now working again so I'm going to re-enable it.

@ariya ariya closed this as completed in 5e840f9 Jul 29, 2015
@ariya
Copy link
Contributor Author

ariya commented Sep 5, 2015

It's failing again, see e.g. https://circleci.com/gh/jquery/esprima/30. Thus I likely will exclude JSCS from the downstream test, at least temporarily.

@ariya ariya reopened this Sep 5, 2015
ariya added a commit that referenced this issue Sep 5, 2015
ariya added a commit to ariya/esprima that referenced this issue Sep 9, 2015
@ariya ariya closed this as completed in b6e3d65 Sep 9, 2015
@ariya
Copy link
Contributor Author

ariya commented Nov 15, 2015

This is becoming a problem again.

@ariya
Copy link
Contributor Author

ariya commented Jan 11, 2016

This happens again, see PR #1448. For the build log: https://circleci.com/gh/jquery/esprima/235. The last few lines are:

========== jscs

Cloning https://github.com/jscs-dev/node-jscs.git ...
Cloning into 'jscs'...
remote: Counting objects: 549, done.
remote: Compressing objects: 100% (421/421), done.
remote: Total 549 (delta 189), reused 256 (delta 75), pack-reused 0
Receiving objects: 100% (549/549), 392.86 KiB | 0 bytes/s, done.
Resolving deltas: 100% (189/189), done.
Checking connectivity... done.

HEAD is
commit b19b33e749ee4e715b70f44c5c2ef40569cbaf40
Author: David Harkness <dharkness@gmail.com>
Date:   Wed Jan 6 17:43:02 2016 -0800

    disallowKeywordsOnNewLine: fix documentation format

    Two of the examples had an extra space before the comment `*` which messes u

    Closes gh-2052

(END)command npm run circleci took more than 1200 seconds since last output

@mikesherov Is JCSS test suite known to be reliable when running under Node.js 0.12 (what CircleCI is set to use)?

@hzoo
Copy link

hzoo commented Jan 11, 2016

Yeah haven't seen any issues other than this - cc @markelog?

ariya added a commit that referenced this issue Jan 11, 2016
@markelog
Copy link
Member

jscs, with all those dependencies is pretty big, like 250M big, 200 of them are dev dependencies, probably the biggest package of your integration tests and since results are non-deterministic... i think you need to start to use the cache or increase the timeout

@ariya
Copy link
Contributor Author

ariya commented Jan 12, 2016

OMG 250 MB dependencies! I think CircleCI already caches ~/.node_modules, not sure what's going on there. Perhaps I shall run the npm install step in verbose mode to get more details?

@ariya
Copy link
Contributor Author

ariya commented Jan 12, 2016

Perhaps I shall run the npm install step in verbose mode to get more details?

Watch this build log for the details: https://circleci.com/gh/jquery/esprima/239.

@ariya
Copy link
Contributor Author

ariya commented Jan 12, 2016

Bah, that one got stuck. Look at this one instead: https://circleci.com/gh/jquery/esprima/240.

@ariya
Copy link
Contributor Author

ariya commented Jan 12, 2016

From the above build log, looks like the process got stuck at the git clone step. It didn't even start npm install yet.

@ariya
Copy link
Contributor Author

ariya commented Jan 12, 2016

Ah never mind, I misunderstood the log. I think it got stuck between git log -n1 and npm install.
Not sure how or why 😢

@jpaulin
Copy link

jpaulin commented Jan 12, 2016

Why in general are the deps so big? Noticed this phenomena in many projects. Is it something that's likely to be changed in near future? I started living with the Javascript ecosystem just about a year ago, and first things that really surprised me was the largish trees of dependencies. Out of blue I'd estimated projects wouldn't contain more than a few megabytes of JS source.

@hzoo
Copy link

hzoo commented Jan 12, 2016

Well without npm 3/npm dedupe for 2 it will be pretty big. We are also bundling babel for babel-jscs rather than making it a separate thing.

@ariya
Copy link
Contributor Author

ariya commented Jan 12, 2016

Why in general are the deps so big?

This is devDependencies, you only care if you are developing or testing JSCS. If you just use JSCS, the dependencies look rather different (quite compact actually).

In all cases, let's stay on topic. This downstream test should be only mildly affected by the dependencies.

@jpaulin
Copy link

jpaulin commented Jan 12, 2016

Any new information with a verbose install?

I got these results:
Running 'npm install --only=dev' on
a) Ubuntu Linux, npm version 3.5.2 got stuck forever after few initial packages done right
b) Windows 7, npm version 2.7.4 installed all of devDependencies o.k. in about ~20-30 seconds.

@markelog
Copy link
Member

Not sure how or why

If you run npm i with npm 2.x, it will show only the spinner while dependencies are installed. So if system sends the exit signal at the time, we probably wouldn't see anything more then output from git.

So i think npm i still could be a culprit

@ariya
Copy link
Contributor Author

ariya commented Jan 13, 2016

Any new information with a verbose install?

What are you trying to do? I hope you're also troubleshooting JSCS failing tests, which should be actually reproduced using npm run downstream on Node.js v0.12.

@ariya
Copy link
Contributor Author

ariya commented Jan 13, 2016

Ha, my latest trick (see #1452) seems to work. Apparently, git log is potentially detecting the terminal as interactive tty and thus it may get stuck there. I've executed this trick twice on CircleCI and it successfully finished JSCS tests. Thus, I deem this speculative fix as good enough and will land it on master.

@ariya ariya closed this as completed in bca27d1 Jan 13, 2016
@hzoo
Copy link

hzoo commented Jan 13, 2016

Ah that's interesting! hopefully that fixes it then

ariya added a commit to ariya/esprima that referenced this issue Feb 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

5 participants