Skip to content

Commit

Permalink
Added 1es runner to enable virtualization tests
Browse files Browse the repository at this point in the history
Signed-off-by: Jie Chen <[email protected]>
  • Loading branch information
Jie Chen committed Dec 11, 2024
1 parent 1a8c2e3 commit 6224605
Showing 1 changed file with 16 additions and 12 deletions.
28 changes: 16 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ env:

jobs:
lint:
runs-on: "windows-2022"
runs-on: [self-hosted, 1ES.Pool=jiechen3-github-1es-runner-pool-test, 1ES.ImageOverride=2022-datacenter]
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -49,7 +49,7 @@ jobs:
GOOS: ${{ matrix.goos }}

protos:
runs-on: "windows-2022"
runs-on: [self-hosted, 1ES.Pool=jiechen3-github-1es-runner-pool-test, 1ES.ImageOverride=2022-datacenter]

env:
# translating from github.com/Microsoft/hcsshim/<path> (via `go list`) to <path> is easier if hcsshim is in GOPATH/src
Expand Down Expand Up @@ -112,7 +112,7 @@ jobs:
working-directory: "${{ github.workspace }}/go/src/github.com/Microsoft/hcsshim"

verify-vendor:
runs-on: "windows-2022"
runs-on: [self-hosted, 1ES.Pool=jiechen3-github-1es-runner-pool-test, 1ES.ImageOverride=2022-datacenter]
env:
GOPROXY: "https://proxy.golang.org,direct"
steps:
Expand Down Expand Up @@ -179,7 +179,7 @@ jobs:
go-gen:
name: Go Generate
runs-on: "windows-2022"
runs-on: [self-hosted, 1ES.Pool=jiechen3-github-1es-runner-pool-test, 1ES.ImageOverride=2022-datacenter]
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -234,7 +234,7 @@ jobs:
test-linux:
needs: [lint, protos, verify-vendor, go-gen]
runs-on: ubuntu-latest
runs-on: [self-hosted, 1ES.Pool=jiechen3-github-1es-runner-pool-test, 1ES.ImageOverride=CTLinuxUbuntu20.04]
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -267,11 +267,13 @@ jobs:

test-windows:
needs: [lint, protos, verify-vendor, go-gen]
runs-on: ${{ matrix.os }}
runs-on: ${{ matrix.runner }}
strategy:
fail-fast: false
matrix:
os: [windows-2019, windows-2022]
runner:
- [self-hosted, 1ES.Pool=jiechen3-github-1es-runner-pool-test, 1ES.ImageOverride=2019-datacenter]
- [self-hosted, 1ES.Pool=jiechen3-github-1es-runner-pool-test, 1ES.ImageOverride=2022-datacenter]
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -353,8 +355,9 @@ jobs:
exit $LASTEXITCODE
}
# Don't run uVM (ie, nested virt) or LCOW integrity tests
$cmd = '${{ env.GOTESTSUM_CMD_RAW }} ./functional.test.exe -exclude=LCOW,LCOWIntegrity,uVM -test.timeout=1h -test.v -log-level=info'
# Don't run uVM (ie, nested virt) or LCOW integrity tests -> removing the exclusion to test the 1es runner
# $cmd = '${{ env.GOTESTSUM_CMD_RAW }} ./functional.test.exe -exclude=LCOW,LCOWIntegrity,uVM -test.timeout=1h -test.v -log-level=info'
$cmd = '${{ env.GOTESTSUM_CMD_RAW }} ./functional.test.exe -test.timeout=1h -test.v -log-level=info'
$cmd = $cmd -replace 'gotestsum', $gotestsum
Write-Host "gotestsum command: $cmd"
Expand Down Expand Up @@ -393,12 +396,13 @@ jobs:
integration-tests:
needs: [lint, protos, verify-vendor, go-gen]
runs-on: ${{ matrix.os }}
runs-on: ${{ matrix.runner }}
strategy:
fail-fast: false
matrix:
os: [windows-2019, windows-2022]

runner:
- [self-hosted, 1ES.Pool=jiechen3-github-1es-runner-pool-test, 1ES.ImageOverride=2019-datacenter]
- [self-hosted, 1ES.Pool=jiechen3-github-1es-runner-pool-test, 1ES.ImageOverride=2022-datacenter]
steps:
- name: Checkout hcsshim
uses: actions/checkout@v4
Expand Down

0 comments on commit 6224605

Please sign in to comment.