Closed
Bug 1304532
Opened 9 years ago
Closed 8 years ago
Karma tests not running in CI
Categories
(Firefox :: Normandy Server, defect, P1)
Tracking
()
RESOLVED
FIXED
People
(Reporter: mythmon, Assigned: mythmon)
Details
While going over the CI logs for a recent build [0], I noticed that the karma tests errored out due to permission problems. This looks related to the changes in PR#237 [1]. Log of the command that is failing is broken is below.
There are two problems here:
1. The tests are broken
2. The broken tests didn't break CI
[0]: https://circleci.com/gh/mozilla/normandy/1017#build-timing/containers/0
[1]: https://github.com/mozilla/normandy/pull/237
$ docker run --env DJANGO_CONFIGURATION=Test --net host --volume /tmp/circle-junit.DHRi85j:/test_artifacts -e NODE_ENV=production -p 9876:9876 normandy:build node bin/ci/karma-ci.js
[2016-09-21 21:39:29.680] [DEBUG] config - Loading config /app/karma.conf.js
21 09 2016 21:39:30.254:ERROR [preprocess]: Can not load "webpack"!
Error: EACCES: permission denied, open 'webpack-stats.json'
at Error (native)
at Object.fs.openSync (fs.js:549:18)
at Object.fs.writeFileSync (fs.js:1156:15)
at Plugin.writeOutput (/app/node_modules/webpack-bundle-tracker/index.js:89:6)
at Compiler.<anonymous> (/app/node_modules/webpack-bundle-tracker/index.js:39:12)
at Compiler.applyPlugins (/app/node_modules/webpack/node_modules/tapable/lib/Tapable.js:26:37)
at Compiler.compile (/app/node_modules/webpack/lib/Compiler.js:390:7)
at Watching.<anonymous> (/app/node_modules/webpack/lib/Compiler.js:46:17)
at Compiler.next (/app/node_modules/webpack/node_modules/tapable/lib/Tapable.js:67:11)
at Compiler.invalidAsyncPlugin (/app/node_modules/karma-webpack/node_modules/webpack-dev-middleware/middleware.js:112:3)
at Compiler.next (/app/node_modules/webpack/node_modules/tapable/lib/Tapable.js:69:14)
at Compiler.<anonymous> (/app/node_modules/karma-webpack/lib/karma-webpack.js:78:9)
at Compiler.applyPluginsAsync (/app/node_modules/webpack/node_modules/tapable/lib/Tapable.js:71:13)
at Watching._go (/app/node_modules/webpack/lib/Compiler.js:44:16)
at Watching.<anonymous> (/app/node_modules/webpack/lib/Compiler.js:36:8)
at Compiler.readRecords (/app/node_modules/webpack/lib/Compiler.js:302:10)
21 09 2016 21:39:30.304:WARN [karma]: No captured browser, open http://localhost:9876/
21 09 2016 21:39:30.315:INFO [karma]: Karma v1.2.0 server started at http://localhost:9876/
21 09 2016 21:39:30.315:ERROR [karma]: Found 1 load error
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → mcooper
Status: NEW → ASSIGNED
Comment 1•8 years ago
|
||
Commit pushed to master at https://github.com/mozilla/normandy
https://github.com/mozilla/normandy/commit/81626ffa3623fbf45769416cc658a38472407053
ci: Run karma tests as root, so they can write to webpack-stats.json
Fixes bug 1304532
Updated•8 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Updated•7 years ago
|
Product: Shield → Firefox
You need to log in
before you can comment on or make changes to this bug.
Description
•