-
Notifications
You must be signed in to change notification settings - Fork 1.3k
CI: Investigate why appveyor chokes in sass-specs test? #506
Comments
@FeodorFitsner, can you please provide some pointers here? It passes all tests locally on both Winx64 with Node-x86 and Win64 with Node-x64 (both cmd and ps), but fail to continue tests on Appveyor. We have 600+ tests (mostly coming from sass-spec. Thanks in anticipation. |
Hey guys, in
|
@FeodorFitsner, Thanks for the tip! I updated it, but unfortunately, the result is same (with or without See https://ci.appveyor.com/project/sass/node-sass/build/168. It seems like, there is some kind of a time limit which Appveyor spare the job (such as Please take a look into this issue. |
After googling I understood Try running test command without |
I made the change: am11@dde26eb and ran the test, but no luck: https://ci.appveyor.com/project/am11/node-sass/build/68/job/r1egub0279aevo6x It seems like a timeout issue. Locally all tests run fine. You can also give it a try. In PowerShell: git clone https://github.com/sass/node-sass/ --recursive
cd node-sass
git submodule update --recursive --init
npm install
# at this point kill node.exe process from task manager
# see https://github.com/joyent/node/issues/7164#issuecomment-61814857
node scripts/build -f # rebuild the binaries to mimic the behavior of CI
npm test |
Timeout in some of the tests? |
I mean somehow the process is terminated by OS? Because it is terminating at random tests. |
Interesting, I'll give it a try by interactively logging in to build worker. |
👍 |
@FeodorFitsner, any news on this? |
Not yet, sorry. |
@FeodorFitsner, this might be a related case: sassc-win, which runs the same test suite as node-sass. There is no issue with the project build. But, if you look at the history on Appveyor, 1.0.31, 1.0.32 and 1.0.33 didn't get any change made in the actual code, but only the README was updated, yet in 1.0.33 it passes Winx64 test and failing the same the rest of the builds. The error occurs when running the tests Command It seems more like timeout enforced on processes which breaks our tests. |
Hi guys! It looks very similar to your issue (mocha with npm test): http://help.appveyor.com/discussions/problems/1091-npm-test-always-fails |
Hi @FeodorFitsner, Thanks for the update! I am working on a separate branch, will test it out lately. @stevenvachon, incidentally; can we use |
@am11 This is probably what you're looking for: "scripts": {
"test": "mocha test/ --no-exit"
} npm test |
@steveluscher, thanks! I added Also, the two errors it reported, appeared quite earlier (before all tests are completed) at line 538. |
Yeah, I'd figured there would be side effects as it is not a real solution; more of a hopeful workaround. You could try using mocha's |
Well, it failed with |
This issue is fixed in mocha mochajs/mocha#1440 and the fix will be available in mocha's vNext. This was actually a node.js issue, which is also fixed there in 0.11.x branch: nodejs/node-v0.x-archive#7196, but probably not be back-ported to v0.10. This issue can be closed as concluded. |
sassc-win passes all the sass-specs tests and exits gracefully. It uses ruby runtime via sassc.
While node-sass builds libsass successfully on appveyor but the tests are interrupted for some unknown reasons.
Going by https://github.com/gruntjs/grunt/blob/master/appveyor.yml, I believe we can take some inferences from there and fix it for node-sass.
/cc @kevva, @deepak1556, @nschonni
The text was updated successfully, but these errors were encountered: