-
Notifications
You must be signed in to change notification settings - Fork 56
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
Update to official closure compiler plugin #462
Comments
This is blocking for the parallelization in #452 |
why does the ci build need the closure compiler at all? The only thing we use the closure compiler for is minification, and iirc the tests use the non-minified lib so that we get understandable stacktraces if the lib crashes |
I assume it's because all grunt tasks (including running tests) have a dependency on the build task, which in turn needs the closure compiler. |
If you don’t run nodeunit before karma tests you end up here |
@SimonWoolf @paddybyers speaking of which. Any arguments against committing the .jar directly to the repo? That would allow consistent builds both locally and on the CI. |
It's now available via npm: https://www.npmjs.com/package/google-closure-compiler Shouldn't we update to that (ie add it to |
Yep, that’s what I linked above, my first proposal. |
ah, ok ;) I think we should do this. |
I just hope it’s a matter of swapping a package with another. said the dreamer |
Try this: #463 |
@SimonWoolf @paddybyers I removed the compiler altogether. We have this: https://travis-ci.org/ably/ably-js/jobs/338925797#L721 but tests work with no problem :) |
Yes, but that's not really the point of my PR. We will continue to need the closure compiler for the minified versions of the library. My PR updates that. Then are you going to run tests on that version of the library (ie that |
@paddybyers Sorry, should have been more explicit :) I propose to remove the compiler. After all it's needed only to make the official release. WDYT? |
I don't know whether or not it is used as-is, bundled as part of the static assets of the library. Creating the minified libs could just be part of the deploy pipeline. But then what if we want to run tests using those minified versions? What if a 3rd party wants to modify/fix the library and wants the resulting minified version? I don't really see what we gain by removing it but I'm open to discussion. |
@paddybyers @SimonWoolf I just discovered that we can't run too many BrowserStack in parallel. |
I don't understand the relationship between the two issues |
@paddybyers when I ran BS and nodeunit tests in parallel that meant they were all run on different machines. Running BS tests on a "machine" without running nodeunit first led to the "missing closure compiler" issue. |
OK. Well the fact remains that we should either remove, or update, the support for the closure compiler in this library. I think it's valid to have a discussion about whether it really belongs as part of the deploy pipeline, but what we have today seems to be broken, and we should do something about that. |
I agree that we should update it. |
Yes, definitely. So far all I did is verify that it installs and generates a minified script. |
Fixed in #463 |
This: https://www.npmjs.com/package/google-closure-compiler
Otherwise the build on CI fails, because the current one looks for the jar file in the wrong path
The text was updated successfully, but these errors were encountered: