parallelize canvas-rce tests on Jenkins
Change-Id: Ib76fae85e01d006df8ba96350bdc65e0808fc769 Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/294389 Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com> Reviewed-by: James Butters <jbutters@instructure.com> QA-Review: Aaron Ogata <aogata@instructure.com> Product-Review: Aaron Ogata <aogata@instructure.com>
This commit is contained in:
parent
4a34e768ee
commit
db836c3382
|
@ -145,7 +145,7 @@ def queueKarmaDistribution() {
|
|||
|
||||
def queuePackagesDistribution() {
|
||||
{ stages ->
|
||||
callableWithDelegate(queueTestStage())(stages, 'packages', [], 'TEST_RESULT_OUTPUT_DIR=/usr/src/app/$TEST_RESULT_OUTPUT_DIR yarn test:packages:parallel')
|
||||
callableWithDelegate(queueTestStage())(stages, 'packages', ["CANVAS_RCE_PARALLEL=1"], 'TEST_RESULT_OUTPUT_DIR=/usr/src/app/$TEST_RESULT_OUTPUT_DIR yarn test:packages:parallel')
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -10,7 +10,9 @@
|
|||
"lint": "eslint \"src/**/*.js\" \"test/**/*.js\"",
|
||||
"lint:fix": "eslint --fix \"src/**/*.js\" \"test/**/*.js\"",
|
||||
"_test": "Test cafe will be added back to test as part of CORE-2995",
|
||||
"test": "yarn test:mocha && yarn test:jest && yarn test:cafe",
|
||||
"test": "if [ \"$CANVAS_RCE_PARALLEL\" = \"1\" ]; then yarn test:parallel; else yarn test:serial; fi",
|
||||
"test:parallel": "concurrently --names \"yarn test:mocha\" \"yarn test:jest\" \"yarn test:cafe\"",
|
||||
"test:serial": "yarn test:mocha && yarn test:jest && yarn test:cafe",
|
||||
"test:mocha": "mocha 'test/**/*.test.js' --timeout 5000 --reporter mocha-multi-reporters --reporter-options configFile=mocha-reporter-config.js",
|
||||
"test:mocha:one": "mocha --timeout 5000 --reporter mocha-multi-reporters --reporter-options configFile=mocha-reporter-config.js",
|
||||
"test:mocha:debug": "mocha --inspect-brk --timeout 5000 --reporter mocha-multi-reporters --reporter-options configFile=mocha-reporter-config.js",
|
||||
|
@ -118,6 +120,7 @@
|
|||
"axios": "^0.21.1",
|
||||
"bloody-offset": "0.0.0",
|
||||
"classnames": "^2.2.5",
|
||||
"concurrently": "^4",
|
||||
"format-message": "^6",
|
||||
"format-message-generate-id": "^6",
|
||||
"i18n-js": "^3",
|
||||
|
|
Loading…
Reference in New Issue