Skip to content

Commit

Permalink
Add User mode multi-threaded stress tests (microsoft#2195)
Browse files Browse the repository at this point in the history
* Add User mode multi-threaded stress tests

* Schedule nightly multi-threaded stress tests (user mode)

* Add missing event check
  • Loading branch information
dv-msft authored Mar 21, 2023
1 parent 0f773e1 commit f6bf814
Show file tree
Hide file tree
Showing 7 changed files with 723 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -391,3 +391,18 @@ jobs:
code_coverage: false
gather_dumps: true
fault_injection: true

# Run multi-threaded stress tests against the user mode 'mock' framework.
user_mode_multi_threaded_stress_test:
needs: regular
if: github.event_name == 'schedule'
uses: ./.github/workflows/reusable-test.yml
with:
name: user_mode_multi_threaded_stress
test_command: .\ebpf_stress_tests_um -jtt=32 -jtd=300
build_artifact: Build-x64
environment: windows-2022
code_coverage: false
leak_detection: false
gather_dumps: true
capture_etw: true
19 changes: 19 additions & 0 deletions ebpf-for-windows.sln
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "installer", "installer", "{
EndProject
Project("{930C7802-8A8C-48F9-8165-68863BCCD9DD}") = "ebpf-for-windows", "installer\ebpf-for-windows.wixproj", "{FE9B26CD-E885-4881-90D7-A096131C5C4A}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ebpf_stress_tests_um", "tests\stress\um\ebpf_stress_tests_um.vcxproj", "{E51A27F5-A1D5-40DA-A09B-850203D6B13D}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|ARM64 = Debug|ARM64
Expand Down Expand Up @@ -1025,6 +1027,22 @@ Global
{FE9B26CD-E885-4881-90D7-A096131C5C4A}.RelWithDebInfo|ARM64.Build.0 = Release|x64
{FE9B26CD-E885-4881-90D7-A096131C5C4A}.RelWithDebInfo|x64.ActiveCfg = Release|x64
{FE9B26CD-E885-4881-90D7-A096131C5C4A}.RelWithDebInfo|x64.Build.0 = Release|x64
{E51A27F5-A1D5-40DA-A09B-850203D6B13D}.Debug|ARM64.ActiveCfg = Debug|x64
{E51A27F5-A1D5-40DA-A09B-850203D6B13D}.Debug|ARM64.Build.0 = Debug|x64
{E51A27F5-A1D5-40DA-A09B-850203D6B13D}.Debug|x64.ActiveCfg = Debug|x64
{E51A27F5-A1D5-40DA-A09B-850203D6B13D}.Debug|x64.Build.0 = Debug|x64
{E51A27F5-A1D5-40DA-A09B-850203D6B13D}.MinSizeRel|ARM64.ActiveCfg = Debug|x64
{E51A27F5-A1D5-40DA-A09B-850203D6B13D}.MinSizeRel|ARM64.Build.0 = Debug|x64
{E51A27F5-A1D5-40DA-A09B-850203D6B13D}.MinSizeRel|x64.ActiveCfg = Debug|x64
{E51A27F5-A1D5-40DA-A09B-850203D6B13D}.MinSizeRel|x64.Build.0 = Debug|x64
{E51A27F5-A1D5-40DA-A09B-850203D6B13D}.Release|ARM64.ActiveCfg = Release|x64
{E51A27F5-A1D5-40DA-A09B-850203D6B13D}.Release|ARM64.Build.0 = Release|x64
{E51A27F5-A1D5-40DA-A09B-850203D6B13D}.Release|x64.ActiveCfg = Release|x64
{E51A27F5-A1D5-40DA-A09B-850203D6B13D}.Release|x64.Build.0 = Release|x64
{E51A27F5-A1D5-40DA-A09B-850203D6B13D}.RelWithDebInfo|ARM64.ActiveCfg = Release|x64
{E51A27F5-A1D5-40DA-A09B-850203D6B13D}.RelWithDebInfo|ARM64.Build.0 = Release|x64
{E51A27F5-A1D5-40DA-A09B-850203D6B13D}.RelWithDebInfo|x64.ActiveCfg = Release|x64
{E51A27F5-A1D5-40DA-A09B-850203D6B13D}.RelWithDebInfo|x64.Build.0 = Release|x64
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down Expand Up @@ -1087,6 +1105,7 @@ Global
{E619B985-44B3-4292-A585-5CD0C4315ED3} = {492C9B22-9237-4996-9E33-CA14D3533616}
{A71919AE-7F38-4515-AEB7-166DA98089D1} = {E184CBC2-4B62-499F-8A4A-F15A5A182259}
{FE9B26CD-E885-4881-90D7-A096131C5C4A} = {8CA48236-9B24-4841-B3E2-496C31ABBB23}
{E51A27F5-A1D5-40DA-A09B-850203D6B13D} = {492C9B22-9237-4996-9E33-CA14D3533616}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {3D5F862D-74C6-4357-9F95-0B152E33B7B8}
Expand Down
1 change: 1 addition & 0 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@ add_subdirectory("libs")
add_subdirectory("performance")
add_subdirectory("sample")
add_subdirectory("socket")
add_subdirectory("stress")
add_subdirectory("xdp")
add_subdirectory("unit")
4 changes: 4 additions & 0 deletions tests/stress/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Copyright (c) Microsoft Corporation
# SPDX-License-Identifier: MIT

add_subdirectory("um")
Loading

0 comments on commit f6bf814

Please sign in to comment.