update js coverage with optimized jest builds

refs DE-989
flag=none

TEST PLAN:
  Confirm build still runs and coverage report is created

Change-Id: I800bf3a722b7bef13d2c7a42106827ce5f296d5d
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/287828
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: James Butters <jbutters@instructure.com>
QA-Review: Bobby Buten <bobby.buten@instructure.com>
Product-Review: Bobby Buten <bobby.buten@instructure.com>
This commit is contained in:
Bobby Buten 2022-03-23 14:24:32 -04:00
parent 89c895e907
commit a3e27bddac
2 changed files with 7 additions and 5 deletions

View File

@ -163,12 +163,15 @@ pipeline {
extendedStage('Parallel Run Tests').obeysAllowStages(false).execute { stageConfig, buildConfig -> extendedStage('Parallel Run Tests').obeysAllowStages(false).execute { stageConfig, buildConfig ->
def jsStages = [:] def jsStages = [:]
extendedStage('Runner - Jest').nodeRequirements(label: 'canvas-docker', podTemplate: jsStage.jestNodeRequirementsTemplate()).obeysAllowStages(false).timeout(10).queue(jsStages) { for (int i = 0; i < jsStage.JEST_NODE_COUNT; i++) {
def tests = [:] String index = i
extendedStage("Runner - Jest ${i}").nodeRequirements(label: 'canvas-docker', podTemplate: jsStage.jestNodeRequirementsTemplate(index)).obeysAllowStages(false).timeout(10).queue(jsStages) {
def tests = [:]
callableWithDelegate(jsStage.queueJestDistribution())(tests) callableWithDelegate(jsStage.queueJestDistribution(index))(tests)
parallel(tests) parallel(tests)
}
} }
extendedStage('Runner - Coffee').nodeRequirements(label: 'canvas-docker', podTemplate: jsStage.coffeeNodeRequirementsTemplate()).obeysAllowStages(false).timeout(10).queue(jsStages) { extendedStage('Runner - Coffee').nodeRequirements(label: 'canvas-docker', podTemplate: jsStage.coffeeNodeRequirementsTemplate()).obeysAllowStages(false).timeout(10).queue(jsStages) {

View File

@ -36,7 +36,6 @@ pipeline {
DOCKER_BUILDKIT = 1 DOCKER_BUILDKIT = 1
FORCE_FAILURE = configuration.forceFailureJS() FORCE_FAILURE = configuration.forceFailureJS()
PROGRESS_NO_TRUNC = 1 PROGRESS_NO_TRUNC = 1
JEST_SPLIT_COUNT = 2
} }
stages { stages {