Skip to content

Commit

Permalink
Fix incorrect merge of test build / run split with staged build (dotn…
Browse files Browse the repository at this point in the history
  • Loading branch information
trylek authored and Jarret Shook committed Aug 27, 2019
1 parent c8fc833 commit 6e48e91
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 16 deletions.
12 changes: 7 additions & 5 deletions eng/build-test-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ parameters:
corefxTests: false
displayNameArgs: ''
condition: true
ignoreDependencyOnBuildJobs: false

### Test build job

Expand All @@ -32,19 +33,19 @@ jobs:

# Compute job name from template parameters
${{ if and(eq(parameters.testGroup, 'innerloop'), eq(parameters.displayNameArgs, '')) }}:
name: 'build_test_p0_${{ parameters.osIdentifier }}_${{ parameters.archType }}_${{parameters.buildConfig }}'
name: 'build_test_p0_${{ parameters.osIdentifier }}_${{ parameters.archType }}_${{ parameters.buildConfig }}'
displayName: 'Build Test Pri0 ${{ parameters.osIdentifier }} ${{ parameters.archType }} ${{ parameters.buildConfig }}'

${{ if and(ne(parameters.testGroup, 'innerloop'), eq(parameters.displayNameArgs, '')) }}:
name: 'build_test_p1_${{ parameters.osIdentifier }}_${{ parameters.archType }}_${{parameters.buildConfig }}'
name: 'build_test_p1_${{ parameters.osIdentifier }}_${{ parameters.archType }}_${{ parameters.buildConfig }}'
displayName: 'Build Test Pri1 ${{ parameters.osIdentifier }} ${{ parameters.archType }} ${{ parameters.buildConfig }}'

${{ if and(eq(parameters.testGroup, 'innerloop'), ne(parameters.displayNameArgs, '')) }}:
name: 'build_test_p0_${{ parameters.displayNameArgs }}_${{ parameters.osIdentifier }}_${{ parameters.archType }}_${{parameters.buildConfig }}'
name: 'build_test_p0_${{ parameters.displayNameArgs }}_${{ parameters.osIdentifier }}_${{ parameters.archType }}_${{ parameters.buildConfig }}'
displayName: 'Build Test Pri0 ${{ parameters.displayNameArgs }} ${{ parameters.osIdentifier }} ${{ parameters.archType }} ${{ parameters.buildConfig }}'

${{ if and(ne(parameters.testGroup, 'innerloop'), ne(parameters.displayNameArgs, '')) }}:
name: 'build_test_p1_${{ parameters.displayNameArgs }}_${{ parameters.osIdentifier }}_${{ parameters.archType }}_${{parameters.buildConfig }}'
name: 'build_test_p1_${{ parameters.displayNameArgs }}_${{ parameters.osIdentifier }}_${{ parameters.archType }}_${{ parameters.buildConfig }}'
displayName: 'Build Test Pri1 ${{ parameters.displayNameArgs }} ${{ parameters.osIdentifier }} ${{ parameters.archType }} ${{ parameters.buildConfig }}'

crossrootfsDir: ${{ parameters.crossrootfsDir }}
Expand Down Expand Up @@ -92,7 +93,8 @@ jobs:
condition: and(succeeded(), ${{ parameters.condition }})

# Test job depends on the corresponding build job
dependsOn: ${{ format('build_{0}_{1}_{2}', parameters.osIdentifier, parameters.archType, parameters.buildConfig) }}
${{ if ne(parameters.ignoreDependencyOnBuildJobs, true) }}:
dependsOn: ${{ format('build_{0}_{1}_{2}', parameters.osIdentifier, parameters.archType, parameters.buildConfig) }}

# Run all steps in the container.
# Note that the containers are defined in platform-matrix.yml
Expand Down
23 changes: 12 additions & 11 deletions eng/test-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,18 @@ parameters:
jobs:
- template: build-test-job.yml
parameters:
buildConfig: ${{ parameters.buildConfig }}
archType: ${{ parameters.archType }}
osGroup: ${{ parameters.osGroup }}
osIdentifier: ${{ parameters.osIdentifier }}
container: ${{ parameters.container }}
testGroup: ${{ parameters.testGroup }}
readyToRun: ${{ parameters.readyToRun }}
crossrootfsDir: ${{ parameters.crossrootfsDir }}
corefxTests: ${{ parameters.coreFxTests }}
displayNameArgs: ${{ parameters.displayNameArgs }}
condition: ${{ parameters.condition }}
buildConfig: ${{ parameters.buildConfig }}
archType: ${{ parameters.archType }}
osGroup: ${{ parameters.osGroup }}
osIdentifier: ${{ parameters.osIdentifier }}
container: ${{ parameters.container }}
testGroup: ${{ parameters.testGroup }}
readyToRun: ${{ parameters.readyToRun }}
crossrootfsDir: ${{ parameters.crossrootfsDir }}
corefxTests: ${{ parameters.coreFxTests }}
displayNameArgs: ${{ parameters.displayNameArgs }}
condition: ${{ parameters.condition }}
ignoreDependencyOnBuildJobs: ${{ parameters.ignoreDependencyOnBuildJobs }}

- template: run-test-job.yml
parameters:
Expand Down

0 comments on commit 6e48e91

Please sign in to comment.