Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewige committed Dec 16, 2024
1 parent 2f269a6 commit 0ae97f4
Showing 1 changed file with 7 additions and 27 deletions.
34 changes: 7 additions & 27 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ jobs:
post_test: .\cleanup_ebpf_cicd_tests.ps1 -KmTracing $true
name: driver_ws2019
build_artifact: Build-x64
environment: '["self-hosted", "1ES.Pool=ebpf-cicd-runner-pool-server-2019"]'
environment: '["self-hosted", "1ES.Pool=ebpf-cicd-runner-pool-server-2019", "1ES.ImageOverride=ebpf-cicd-image-server-2019"]'
# driver test copies dumps to testlog folder.
gather_dumps: false
# driver tests manually gather code coverage
Expand All @@ -226,7 +226,7 @@ jobs:
post_test: .\cleanup_ebpf_cicd_tests.ps1 -KmTracing $true
name: driver_ws2022
build_artifact: Build-x64
environment: '["self-hosted", "1ES.Pool=ebpf-cicd-runner-pool-server-2022"]'
environment: '["self-hosted", "1ES.Pool=ebpf-cicd-runner-pool-server-2019", "1ES.ImageOverride=ebpf-cicd-image-server-2022"]'
# driver test copies dumps to testlog folder.
gather_dumps: false
# driver tests manually gather code coverage
Expand All @@ -245,7 +245,7 @@ jobs:
post_test: .\cleanup_ebpf_cicd_tests.ps1 -KmTracing $true
name: driver_native_only_ws2019
build_artifact: Build-x64-native-only
environment: '["self-hosted", "1ES.Pool=ebpf-cicd-runner-pool-server-2019"]'
environment: '["self-hosted", "1ES.Pool=ebpf-cicd-runner-pool-server-2019", "1ES.ImageOverride=ebpf-cicd-image-server-2019"]'
# driver test copies dumps to testlog folder.
gather_dumps: false
# driver tests manually gather code coverage
Expand All @@ -264,33 +264,13 @@ jobs:
post_test: .\cleanup_ebpf_cicd_tests.ps1 -KmTracing $true
name: driver_native_only_ws2022
build_artifact: Build-x64-native-only
environment: '["self-hosted", "1ES.Pool=ebpf-cicd-runner-pool-server-2022"]'
environment: '["self-hosted", "1ES.Pool=ebpf-cicd-runner-pool-server-2019", "1ES.ImageOverride=ebpf-cicd-image-server-2019"]'
# driver test copies dumps to testlog folder.
gather_dumps: false
# driver tests manually gather code coverage
code_coverage: false
configurations: '["NativeOnlyDebug", "NativeOnlyRelease"]'

# TODO - this is only for initial testing - revert this later
# Run the regression driver tests on self-hosted runners (only for 2019).
regression_driver_ws2019:
# Always run this job.
# Only run this on repos that have self-host runners.
needs: regular
if: github.repository == 'microsoft/ebpf-for-windows' && (github.event_name == 'schedule' || github.event_name == 'pull_request' || github.event_name == 'push' || github.event_name == 'merge_group' || github.event_name == 'workflow_dispatch')
uses: ./.github/workflows/reusable-test.yml
with:
pre_test: .\setup_ebpf_cicd_tests.ps1 -KmTracing $true -KmTraceType "file" -TestMode "Regression" -RegressionArtifactsVersion "0.17.0"
test_command: .\execute_ebpf_cicd_tests.ps1 -TestMode "Regression"
post_test: .\cleanup_ebpf_cicd_tests.ps1 -KmTracing $true
name: regression_driver_ws2019
build_artifact: Build-x64
environment: '["self-hosted", "1ES.Pool=ebpf-cicd-runner-pool-server-2019"]'
# driver test copies dumps to testlog folder.
gather_dumps: false
# driver tests manually gather code coverage
code_coverage: false

# Run the regression driver tests on self-hosted runners (only for 2022).
regression_driver_ws2022:
# Always run this job.
Expand All @@ -304,7 +284,7 @@ jobs:
post_test: .\cleanup_ebpf_cicd_tests.ps1 -KmTracing $true
name: regression_driver_ws2022
build_artifact: Build-x64
environment: '["self-hosted", "1ES.Pool=ebpf-cicd-runner-pool-server-2022"]'
environment: '["self-hosted", "1ES.Pool=ebpf-cicd-runner-pool-server-2022", "1ES.ImageOverride=ebpf-cicd-image-server-2019"]'
# driver test copies dumps to testlog folder.
gather_dumps: false
# driver tests manually gather code coverage
Expand Down Expand Up @@ -604,7 +584,7 @@ jobs:
test_command: .\execute_ebpf_cicd_tests.ps1 -TestMode "Stress"
post_test: .\cleanup_ebpf_cicd_tests.ps1 -KmTracing $true
build_artifact: Build-x64
environment: '["self-hosted", "1ES.Pool=ebpf-cicd-runner-pool-server-2019"]'
environment: '["self-hosted", "1ES.Pool=ebpf-cicd-runner-pool-server-2019", "1ES.ImageOverride=ebpf-cicd-image-server-2019"]'
code_coverage: false
# For this test, we only want kernel mode dumps and not user mode dumps.
gather_dumps: false
Expand All @@ -623,7 +603,7 @@ jobs:
test_command: .\execute_ebpf_cicd_tests.ps1 -TestMode "Stress" -Options @("RestartExtension")
post_test: .\cleanup_ebpf_cicd_tests.ps1 -KmTracing $true
build_artifact: Build-x64
environment: '["self-hosted", "1ES.Pool=ebpf-cicd-runner-pool-server-2019"]'
environment: '["self-hosted", "1ES.Pool=ebpf-cicd-runner-pool-server-2019", "1ES.ImageOverride=ebpf-cicd-image-server-2019"]'
code_coverage: false
# For this test, we only want kernel mode dumps and not user mode dumps.
gather_dumps: false
Expand Down

0 comments on commit 0ae97f4

Please sign in to comment.