Skip to content

Commit

Permalink
Reduce CI load on failing PR
Browse files Browse the repository at this point in the history
This PR changes the staging of CI jobs to not run native tests
if the JVM tests fail. It also removes the dedicated 'build for
native' job, and instead uses the results of the JDK8 build
to run the native build, further reducing the load.
  • Loading branch information
stuartwdouglas committed Oct 28, 2019
1 parent 4aa96e5 commit b18c54b
Showing 1 changed file with 3 additions and 28 deletions.
31 changes: 3 additions & 28 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,33 +87,6 @@ stages:
mavenOptions: $(MAVEN_OPTS)
options: '-B --settings azure-mvn-settings.xml -DskipTests=true -Dno-format -DskipDocs'

#This stage builds the Quarkus artifacts needed for native image testing
- stage: build_artifact_for_native_stage
displayName: 'Build for Native'
dependsOn: cache_maven_repo_stage
jobs:
- job: Build_JDK8_Linux
displayName: 'Build JDK8 Linux'
timeoutInMinutes: 60
pool:
vmImage: 'Ubuntu 16.04'
steps:
- task: CacheBeta@0 #we know the very first job will have restored or created this, so this will never write built artifacts to the cache
inputs:
key: maven | bom/runtime/pom.xml
path: $(Pipeline.Workspace)/.m2/repository/
securityNamespace: cache
displayName: Restore Maven Cache

- task: Maven@3
displayName: 'Maven Build'
inputs:
goals: 'install'
mavenOptions: $(MAVEN_OPTS)
options: '-DskipTests -Dno-format'
- publish: $(MAVEN_CACHE_FOLDER)
artifact: BuiltMavenRepo

- stage: run_jvm_tests_stage
displayName: 'Run JVM Tests'
dependsOn: cache_maven_repo_stage
Expand All @@ -126,6 +99,8 @@ stages:
vmImage: 'Ubuntu 16.04'
steps:
- template: ci-templates/jvm-build-steps.yaml
- publish: $(MAVEN_CACHE_FOLDER)
artifact: BuiltMavenRepo

- job: Windows_Build
displayName: 'Windows JVM Build'
Expand Down Expand Up @@ -190,7 +165,7 @@ stages:

- stage: run_native_tests_stage
displayName: 'Native Tests'
dependsOn: build_artifact_for_native_stage
dependsOn: run_jvm_tests_stage
jobs:
- template: ci-templates/native-build-steps.yaml
parameters:
Expand Down

0 comments on commit b18c54b

Please sign in to comment.