Skip to content

Commit

Permalink
Tests fix (#802)
Browse files Browse the repository at this point in the history
* run emulated tests instead of endtoend tests in official build

* parameterize pool name for emulated tests

* increase max parallel jobs

* add csharp to list of codeql languages
  • Loading branch information
ahmedmuhsin authored Dec 9, 2024
1 parent 63f4f00 commit db12979
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 12 deletions.
13 changes: 8 additions & 5 deletions eng/ci/official-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ variables:
- template: ci/variables/build.yml@eng
- template: ci/variables/cfs.yml@eng
- name: codeql.language
value: java,powershell
value: java,powershell,csharp
- name: codeql.buildIdentifier
value: java_worker_official
- name: codeql.excludePathPatterns
Expand All @@ -53,10 +53,13 @@ extends:
- stage: TestWindows
dependsOn: Build
jobs:
- template: /eng/ci/templates/official/jobs/run-e2e-tests-windows.yml@self
- template: /eng/ci/templates/jobs/run-emulated-tests-windows.yml@self
parameters:
poolName: 1es-pool-azfunc

- stage: TestLinux
dependsOn:
- TestWindows
dependsOn: Build
jobs:
- template: /eng/ci/templates/official/jobs/run-e2e-tests-linux.yml@self
- template: /eng/ci/templates/jobs/run-emulated-tests-linux.yml@self
parameters:
poolName: 1es-pool-azfunc
9 changes: 6 additions & 3 deletions eng/ci/public-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ resources:

variables:
- name: codeql.language
value: java,powershell
value: java,powershell,csharp
- name: codeql.buildIdentifier
value: java_worker_public
- name: codeql.excludePathPatterns
Expand All @@ -53,9 +53,12 @@ extends:
dependsOn: Build
jobs:
- template: /eng/ci/templates/jobs/run-emulated-tests-windows.yml@self
parameters:
poolName: 1es-pool-azfunc-public

- stage: TestLinux
dependsOn:
- TestWindows
dependsOn: Build
jobs:
- template: /eng/ci/templates/jobs/run-emulated-tests-linux.yml@self
parameters:
poolName: 1es-pool-azfunc-public
7 changes: 5 additions & 2 deletions eng/ci/templates/jobs/run-emulated-tests-linux.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
parameters:
poolName: ''

jobs:
- job: "TestLinux"
displayName: 'Test java worker - Linux'

pool:
name: 1es-pool-azfunc-public
name: ${{ parameters.poolName }}
image: 1es-ubuntu-22.04
os: linux

Expand All @@ -14,7 +17,7 @@ jobs:
ApplicationInsightAgentVersion: 3.5.4

strategy:
maxParallel: 1
maxParallel: 4
matrix:
open-jdk-8-linux:
JDK_DOWNLOAD_LINK: 'https://github.com/adoptium/temurin8-binaries/releases/download/jdk8u392-b08/OpenJDK8U-jdk_x64_linux_hotspot_8u392b08.tar.gz'
Expand Down
7 changes: 5 additions & 2 deletions eng/ci/templates/jobs/run-emulated-tests-windows.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
parameters:
poolName: ''

jobs:
- job: "TestWindows"
displayName: 'Test java worker - Windows'

pool:
name: 1es-pool-azfunc-public
name: ${{ parameters.poolName }}
image: 1es-windows-2022
os: windows

Expand All @@ -14,7 +17,7 @@ jobs:
ApplicationInsightAgentVersion: 3.5.4

strategy:
maxParallel: 1
maxParallel: 4
matrix:
open-jdk-8-windows:
JDK_DOWNLOAD_LINK: 'https://github.com/adoptium/temurin8-binaries/releases/download/jdk8u392-b08/OpenJDK8U-jdk_x64_windows_hotspot_8u392b08.zip'
Expand Down

0 comments on commit db12979

Please sign in to comment.