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

DO NOT REVIEW [draft wip] - 1es runners #3966

Draft
wants to merge 93 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
93 commits
Select commit Hold shift + click to select a range
27bd6a4
test - wip
matthewige Oct 29, 2024
1c3de49
TEST
matthewige Oct 29, 2024
f364af0
update
matthewige Oct 29, 2024
4f02500
fix
matthewige Oct 29, 2024
4f3dbee
more removal for now
matthewige Oct 30, 2024
ed51912
WIP
matthewige Oct 30, 2024
7de87dd
wip
matthewige Oct 30, 2024
88d2901
wip
matthewige Oct 30, 2024
40a3ad3
WIP
matthewige Oct 30, 2024
68eb718
WIP
matthewige Nov 12, 2024
2883f2e
Try without exteranl switch
matthewige Nov 12, 2024
25c4ecb
merge main
matthewige Nov 13, 2024
8f90e6e
WIP
matthewige Nov 13, 2024
3df6f51
merge main
matthewige Nov 13, 2024
499579a
WIP
matthewige Nov 13, 2024
751a452
fix
matthewige Nov 13, 2024
993f2d4
WIP
matthewige Nov 13, 2024
ada843c
import cred manager
matthewige Nov 13, 2024
b63804a
fixes
matthewige Nov 13, 2024
874f75b
try with stored credential, but have workaround
matthewige Nov 13, 2024
36accbf
fix
matthewige Nov 14, 2024
4f3e048
fixes
matthewige Nov 14, 2024
8c5803c
fixes
matthewige Nov 14, 2024
91e5f70
WIP
matthewige Nov 14, 2024
7c2a207
fix
matthewige Nov 14, 2024
b21f8c6
fix
matthewige Nov 15, 2024
94dd387
fix
matthewige Nov 15, 2024
5579bde
Merge branch 'main' into user/maige/1es
matthewige Dec 10, 2024
59b867e
WIP
matthewige Dec 10, 2024
03e5e33
WIP
matthewige Dec 10, 2024
e96857d
WIP
matthewige Dec 10, 2024
3575a62
remove debug trace
matthewige Dec 11, 2024
e77ccfe
add extra debug logs
matthewige Dec 11, 2024
112d69e
WIP
matthewige Dec 12, 2024
0c443c4
WIP
matthewige Dec 12, 2024
9f73f64
wip
matthewige Dec 12, 2024
25810d1
WIP
matthewige Dec 12, 2024
949aeb2
WIP - try to separate out which jobs run on 1es vs which run on github:
matthewige Dec 12, 2024
cac10f2
WIP
matthewige Dec 12, 2024
30658da
WIP
matthewige Dec 12, 2024
a79f74e
WIP
matthewige Dec 12, 2024
9e2ca3d
WIP
matthewige Dec 12, 2024
53f62b2
WIP
matthewige Dec 12, 2024
fde019b
WIP
matthewige Dec 12, 2024
0bae199
WIP
matthewige Dec 13, 2024
874c646
WIP
matthewige Dec 13, 2024
b45a65e
WIP
matthewige Dec 13, 2024
4e07b18
WIP
matthewige Dec 13, 2024
36900a9
WIP
matthewige Dec 13, 2024
085aa12
WIP
matthewige Dec 13, 2024
0e630a9
WIP
matthewige Dec 13, 2024
3fbde1f
WIP
matthewige Dec 13, 2024
666a268
WIP
matthewige Dec 13, 2024
1281878
WIP
matthewige Dec 13, 2024
5901583
WIP
matthewige Dec 13, 2024
e467487
WIP
matthewige Dec 13, 2024
051c178
WIP
matthewige Dec 13, 2024
7501226
WIP
matthewige Dec 13, 2024
6adcb64
WIP
matthewige Dec 13, 2024
7038eb8
WIP
matthewige Dec 13, 2024
dbaad88
WIP
matthewige Dec 13, 2024
af0066f
WIP
matthewige Dec 13, 2024
7c30abc
WIP
matthewige Dec 13, 2024
e239ec8
WIP
matthewige Dec 13, 2024
f8146f1
WIP
matthewige Dec 13, 2024
7a7cb83
WIP
matthewige Dec 13, 2024
4926ab7
WIP
matthewige Dec 13, 2024
179fcfd
WIP
matthewige Dec 13, 2024
070f0c2
WIP
matthewige Dec 13, 2024
f498cdd
WIP
matthewige Dec 13, 2024
29fd7ee
WIP
matthewige Dec 13, 2024
caaebc5
WIP
matthewige Dec 13, 2024
9eec83e
WIP
matthewige Dec 13, 2024
061bcab
WIP
matthewige Dec 13, 2024
6f7db55
add back in all tests to see what breaks
matthewige Dec 14, 2024
57c36eb
WIP
matthewige Dec 14, 2024
2f269a6
WIP
matthewige Dec 14, 2024
0ae97f4
WIP
matthewige Dec 16, 2024
7948896
Merge branch 'main' into user/maige/1es
matthewige Dec 16, 2024
91f3a84
WIP
matthewige Dec 17, 2024
dfedb27
WIP
matthewige Dec 17, 2024
5456831
WIP
matthewige Dec 17, 2024
93255f3
WIP
matthewige Dec 17, 2024
86237f2
WIP
matthewige Dec 17, 2024
7143241
WIP
matthewige Dec 17, 2024
e3c4d80
WIP
matthewige Dec 17, 2024
d891ede
WIP
matthewige Dec 17, 2024
1ffaec3
WIP
matthewige Dec 17, 2024
e9ed4c1
WIP
matthewige Dec 18, 2024
4910da3
WIP
matthewige Dec 18, 2024
5483105
WIP
matthewige Dec 18, 2024
5a1730b
WIP
matthewige Dec 18, 2024
9aa5142
WIP
matthewige Dec 19, 2024
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
69 changes: 37 additions & 32 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ jobs:
build_options: /p:ReleaseJIT='True'
configurations: '["Debug", "FuzzerDebug", "Release"]'


onebranch:
strategy:
matrix:
Expand Down Expand Up @@ -103,7 +102,7 @@ jobs:
# Exclude [processes] test that CodeCoverage can't work with.
test_command: .\unit_tests.exe -d yes ~[processes]
build_artifact: Build-x64
environment: windows-2022
environment: '["windows-2022"]'
code_coverage: true
gather_dumps: true
capture_etw: true
Expand All @@ -121,7 +120,7 @@ jobs:
# Exclude [processes] test that CodeCoverage can't work with.
test_command: .\unit_tests.exe -d yes ~[processes]
build_artifact: Build-x64
environment: windows-2022
environment: '["windows-2022"]'
code_coverage: true
gather_dumps: true
capture_etw: true
Expand All @@ -138,7 +137,7 @@ jobs:
# Exclude [processes] test that CodeCoverage can't work with.
test_command: .\unit_tests.exe -d yes ~[processes]
build_artifact: Build-x64-native-only
environment: windows-2022
environment: '["windows-2022"]'
code_coverage: true
gather_dumps: true
capture_etw: true
Expand All @@ -156,7 +155,7 @@ jobs:
pre_test: appverif -enable Exceptions Handles Heaps Leak Locks Memory SRWLock Threadpool TLS DangerousAPIs DirtyStacks TimeRollOver -for unit_tests.exe
test_command: .\netebpfext_unit.exe -d yes
build_artifact: Build-x64
environment: windows-2022
environment: '["windows-2022"]'
code_coverage: true
gather_dumps: true
capture_etw: true
Expand All @@ -172,7 +171,7 @@ jobs:
test_command: .\bpf2c_tests.exe -d yes
name: bpf2c
build_artifact: Build-x64
environment: windows-2022
environment: '["windows-2022"]'
vs_dev: true
code_coverage: true
gather_dumps: true
Expand All @@ -189,7 +188,7 @@ jobs:
test_command: .\bpf_conformance_runner.exe --test_file_directory %SOURCE_ROOT%\external\ebpf-verifier\external\bpf_conformance\tests --cpu_version v4 --plugin_path bpf2c_plugin.exe --debug true --plugin_options "--include %SOURCE_ROOT%\include"
name: bpf2c_conformance
build_artifact: Build-x64
environment: windows-2022
environment: '["windows-2022"]'
vs_dev: true
code_coverage: true
gather_dumps: true
Expand All @@ -208,7 +207,7 @@ jobs:
post_test: .\cleanup_ebpf_cicd_tests.ps1 -KmTracing $true
name: driver_ws2019
build_artifact: Build-x64
environment: ebpf_cicd_tests_ws2019
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 @@ -227,7 +226,7 @@ jobs:
post_test: .\cleanup_ebpf_cicd_tests.ps1 -KmTracing $true
name: driver_ws2022
build_artifact: Build-x64
environment: ebpf_cicd_tests_ws2022
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 @@ -246,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: ebpf_cicd_tests_ws2019
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 @@ -265,7 +264,7 @@ jobs:
post_test: .\cleanup_ebpf_cicd_tests.ps1 -KmTracing $true
name: driver_native_only_ws2022
build_artifact: Build-x64-native-only
environment: ebpf_cicd_tests_ws2022
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 @@ -285,7 +284,7 @@ jobs:
post_test: .\cleanup_ebpf_cicd_tests.ps1 -KmTracing $true
name: regression_driver_ws2022
build_artifact: Build-x64
environment: ebpf_cicd_tests_ws2022
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 Down Expand Up @@ -332,7 +331,7 @@ jobs:
name: bpf2c_fuzzer
test_command: .\bpf2c_fuzzer.exe bpf2c_fuzzer_corpus -use_value_profile=1 -max_total_time=300 -artifact_prefix=Artifacts\
build_artifact: Build-x64
environment: windows-2022
environment: '["windows-2022"]'
code_coverage: false
gather_dumps: true
configurations: '["FuzzerDebug"]'
Expand All @@ -345,7 +344,7 @@ jobs:
name: bpf2c_fuzzer
test_command: .\bpf2c_fuzzer.exe bpf2c_fuzzer_corpus -use_value_profile=1 -max_total_time=900 -artifact_prefix=Artifacts\
build_artifact: Build-x64
environment: windows-2022
environment: '["windows-2022"]'
code_coverage: false
gather_dumps: true
configurations: '["FuzzerDebug"]'
Expand All @@ -359,7 +358,7 @@ jobs:
name: execution_context_fuzzer
test_command: .\execution_context_fuzzer.exe execution_context_fuzzer_corpus -use_value_profile=1 -runs=3000 -artifact_prefix=Artifacts\
build_artifact: Build-x64
environment: windows-2022
environment: '["windows-2022"]'
code_coverage: false
gather_dumps: true
configurations: '["FuzzerDebug"]'
Expand All @@ -374,7 +373,7 @@ jobs:
name: verifier_fuzzer
test_command: .\verifier_fuzzer.exe verifier_corpus -use_value_profile=1 -max_total_time=300 -artifact_prefix=Artifacts\
build_artifact: Build-x64
environment: windows-2022
environment: '["windows-2022"]'
code_coverage: false
gather_dumps: true
configurations: '["FuzzerDebug"]'
Expand All @@ -388,7 +387,7 @@ jobs:
name: verifier_fuzzer
test_command: .\verifier_fuzzer.exe verifier_corpus -use_value_profile=1 -max_total_time=900 -artifact_prefix=Artifacts\
build_artifact: Build-x64
environment: windows-2022
environment: '["windows-2022"]'
code_coverage: false
gather_dumps: true
configurations: '["FuzzerDebug"]'
Expand All @@ -402,7 +401,7 @@ jobs:
name: core_helper_fuzzer
test_command: .\core_helper_fuzzer core_helper_corpus -max_len=139 -runs=1000 -use_value_profile=1 -artifact_prefix=Artifacts\
build_artifact: Build-x64
environment: windows-2022
environment: '["windows-2022"]'
code_coverage: false
gather_dumps: true
configurations: '["FuzzerDebug"]'
Expand All @@ -416,7 +415,7 @@ jobs:
name: netebpfext_fuzzer
test_command: .\netebpfext_fuzzer netebpfext_corpus -max_len=12 -runs=1000 -use_value_profile=1 -artifact_prefix=Artifacts\
build_artifact: Build-x64
environment: windows-2022
environment: '["windows-2022"]'
code_coverage: false
gather_dumps: true
configurations: '["FuzzerDebug"]'
Expand All @@ -431,7 +430,7 @@ jobs:
name: cilium_tests
test_command: .\cilium_tests.exe -d yes
build_artifact: Build-x64
environment: windows-2022
environment: '["windows-2022"]'
code_coverage: false
gather_dumps: true

Expand All @@ -446,7 +445,7 @@ jobs:
# Until there is a dedicated stress test, re-use the perf test.
test_command: .\ebpf_performance.exe -d yes
build_artifact: Build-x64
environment: windows-2022
environment: '["windows-2022"]'
# No code coverage on stress.
code_coverage: false
gather_dumps: true
Expand All @@ -461,7 +460,7 @@ jobs:
# Exclude [processes] test that ASAN can't work with.
test_command: .\unit_tests.exe -d yes ~[processes]
build_artifact: Build-x64-Sanitize
environment: windows-2022
environment: '["windows-2022"]'
code_coverage: false
gather_dumps: true
capture_etw: true
Expand All @@ -475,7 +474,7 @@ jobs:
name: fault_injection
test_command: .\unit_tests.exe
build_artifact: Build-x64
environment: windows-2022
environment: '["windows-2022"]'
code_coverage: true
gather_dumps: true
fault_injection: true
Expand All @@ -490,7 +489,7 @@ jobs:
name: netebpfext_fault_injection
test_command: .\netebpfext_unit.exe
build_artifact: Build-x64
environment: windows-2022
environment: '["windows-2022"]'
code_coverage: true
gather_dumps: true
fault_injection: true
Expand All @@ -506,7 +505,7 @@ jobs:
name: quick_user_mode_multi_threaded_stress
test_command: .\ebpf_stress_tests_um -tt=8 -td=2
build_artifact: Build-x64
environment: windows-2022
environment: '["windows-2022"]'
code_coverage: false
leak_detection: false
gather_dumps: true
Expand Down Expand Up @@ -535,7 +534,7 @@ jobs:
name: fault_injection_full
test_command: .\unit_tests.exe
build_artifact: Build-x64
environment: windows-2022
environment: '["windows-2022"]'
code_coverage: false
gather_dumps: true
fault_injection: true
Expand All @@ -551,7 +550,7 @@ jobs:
name: netebpfext_fault_injection_full
test_command: .\netebpfext_unit.exe
build_artifact: Build-x64
environment: windows-2022
environment: '["windows-2022"]'
code_coverage: false
gather_dumps: true
fault_injection: true
Expand All @@ -565,7 +564,7 @@ jobs:
name: user_mode_multi_threaded_stress
test_command: .\ebpf_stress_tests_um -tt=8 -td=10
build_artifact: Build-x64
environment: windows-2022
environment: '["windows-2022"]'
code_coverage: false
leak_detection: false
gather_dumps: true
Expand All @@ -575,15 +574,17 @@ jobs:
# against the kernel mode eBPF sub-system.
km_mt_stress_tests:
needs: regular
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
# TODO - revert this back
# if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
if: 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:
name: km_mt_stress_tests
pre_test: .\setup_ebpf_cicd_tests.ps1 -KmTracing $true -KmTraceType "memory"
test_command: .\execute_ebpf_cicd_tests.ps1 -TestMode "Stress"
post_test: .\cleanup_ebpf_cicd_tests.ps1 -KmTracing $true
build_artifact: Build-x64
environment: ebpf_cicd_tests_ws2019
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 @@ -592,19 +593,23 @@ jobs:
# against the kernel mode eBPF sub-system.
km_mt_stress_tests_restart_extension:
needs: regular
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
# TODO - revert this back
# if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
if: 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:
name: km_mt_stress_tests_restart_extension
pre_test: .\setup_ebpf_cicd_tests.ps1 -KmTracing $true -KmTraceType "memory"
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: ebpf_cicd_tests_ws2019
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

# TODO - figure this out...
# Not sure what perf is - probably selfhosted runner, but do we need to support this now?
performance:
needs: regular
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
Expand Down
Loading
Loading