-
-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
Housekeeping updates #2492
Housekeeping updates #2492
Conversation
- Remove unused Firefox launcher - Don't run coverage by default locally - Use Babel for Karma config
And this won't disable Travis for v0.13.x, because Travis looks at the |
Wait - I'm definitely not okay with reverting this PR wholesale; it wasn't just the ES6 usage on the config files. The Karma setup made the debug info from normal test runs useless because it was instrumenting everything with the coverage data here. The corresponding reversion on the I'm as much a fan of reasonable config as anyone, but nuking actual fixes for the sake of merging |
Can you make another PR that only includes the coverage fixes? On Tue, Nov 10, 2015 at 5:08 PM Jimmy Jia notifications@github.com wrote:
|
In general we should keep PRs as small as possible. Fixes shouldn't be in a PR titled "housekeeping". |
I think we actively want ES6 for the Karma config for adding coverage. Specifically stuff like https://github.com/rackt/react-router/blob/v1.0.0/karma.conf.babel.js#L136 is a lot cleaner and easier to read than the ES5 equivalent. I didn't cut it over to Babel just to replace |
Jimmy, you keep saying that. I'm saying that I don't want two files for I appreciate the contributions you've made to the router, really I do. But On Tue, Nov 10, 2015 at 5:22 PM Jimmy Jia notifications@github.com wrote:
|
I'm fine with that, and we can resolve those separately. I don't have time to manually port the Karma config over from ES6 to ES5 right now. Are you okay with adding back the rest of the changes per my new PRs and treating moving the config code back to ES5 as a separate issue? The PR actually did address real misconfigurations that I think we do care about, like the Karma debugger being unusable for the tests because of the instrumentation from isparta. I can take some time later to cut the configs back over to ES5, but reverting the entire PR throws out a lot more baby than bathwater. |
Part of the problem here is that when you changed the whole file it made it Honestly, I'm fine with coverage being broken until we can get a PR that On Tue, Nov 10, 2015 at 5:32 PM Jimmy Jia notifications@github.com wrote:
|
I don't really care about whether the configs are in ES5 or ES6. Personally I feel a twinge of annoyance at not using template strings for patterns like https://github.com/rackt/react-router/blob/0fabc18fdfa317ef85f54ec4d7c086d9f6d38b3b/karma.conf.js#L109, but that's not important. My issue is that I don't think it makes sense to directly back out a PR that was also signed off on by another member of the project - this wasn't a stack of commits I just pushed directly to the repo, and it had already gone through review. I also intentionally submitted both this and the corresponding history PR as individual PRs with multiple commits because that seemed the best way to present this data - it's a number of small updates to config scripts, and would have just contributed to noise had they been submitted as separate PRs. Within the PR itself I've taken pains to make each of the commits as atomic and clear in its intention and action as possible. I agree that coverage isn't the most important thing in the world, but e.g. on React Router, the Karma config to which you've reverted makes it very difficult to debug tests running locally because the tests are always run against code with coverage instrumentation. I also think that both coverage and being able to debug tests in Karma are worth more than ES5 v ES6 for config scripts. I'm willing to take the time to move the configs back to ES5, but I feel that the reversion leaves both repos in a worse state in terms of code quality overall. |
Just cleaning up the config scripts a bit.