Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add From Source Test Run to Live Tests #17584

Merged
merged 2 commits into from
Nov 19, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 29 additions & 3 deletions eng/pipelines/templates/jobs/archetype-sdk-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ parameters:
JavaTestVersion: '1.11'
DisplayName: 'Windows - Java 11'
AZURE_TEST_HTTP_CLIENTS: okhttp
Linux From Source - Java 11:
OSVmImage: 'ubuntu-18.04'
JavaTestVersion: '1.11'
RunTitle: 'From Source: Linux on Java 1.11'
AZURE_TEST_HTTP_CLIENTS: netty
TestFromSource: true
PreRunSteps: []
PostRunSteps: []
TestName: LiveTest
Expand Down Expand Up @@ -103,16 +109,36 @@ jobs:
parameters:
Artifacts: ${{parameters.Artifacts}}
AdditionalModules: ${{parameters.AdditionalModules}}

- task: UsePythonVersion@0
displayName: 'Use Python 3.6'
inputs:
versionSpec: '3.6'
condition: and(succeeded(), eq(variables['TestFromSource'],'true'))

- task: PythonScript@0
displayName: 'Set versions for source build'
inputs:
scriptPath: 'eng/versioning/set_versions.py'
arguments: '--build-type client --pst'
condition: and(succeeded(), eq(variables['TestFromSource'],'true'))

- task: PythonScript@0
displayName: 'Update versions for source build'
inputs:
scriptPath: 'eng/versioning/update_versions.py'
arguments: '--update-type library --build-type client --sr'
condition: and(succeeded(), eq(variables['ShouldRunSourceTests'],'true'))

- task: Maven@3
displayName: 'Build and Install, JDK Version: $(JavaBuildVersion)'
displayName: 'Build and Install, JDK Version: $(JavaTestVersion)'
inputs:
mavenPomFile: pom.xml
goals: 'install'
options: '$(DefaultOptions) -DskipTests -Dgpg.skip -Dmaven.javadoc.skip=true -Dcheckstyle.skip=true -Dspotbugs.skip=true -Drevapi.skip=true -pl $(ProjectList) -am'
options: '$(DefaultOptions) -T 1C -DskipTests -Dgpg.skip -Dmaven.javadoc.skip=true -Dcheckstyle.skip=true -Dspotbugs.skip=true -Drevapi.skip=true -pl $(ProjectList) -am'
mavenOptions: '$(MemoryOptions) $(LoggingOptions)'
javaHomeOption: 'JDKVersion'
jdkVersionOption: $(JavaBuildVersion)
jdkVersionOption: $(JavaTestVersion)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was this broken before?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We were always building with Java 11 which resulted in the Java 8 runs needing to compile twice as the compiler version changed. Unfortunately, I'm not explicitly certain on why this was done.

jdkArchitectureOption: 'x64'
publishJUnitResults: false

Expand Down