-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Description
Description
UserEvents tests introduced in #122430 are flakey and sometimes don't capture the expected .NET events.
The error will ultimately contains Trace file <trace_file> does not contain expected events. with a preceding message specific to the scenario. (e.g. The trace did not contain two WorkStart events with ActivityIds for RequestA and RequestB. for testing ActivityIDs)
The test output looks like
Tracee process started with PID: 29998
Waiting for tracee process to exit...
Stopping record-trace with SIGINT.
Waiting for record-trace to exit...
[record-trace] Recording started. Press CTRL+C to stop.
[record-trace] Recording stopped.
[record-trace] Resolving symbols.
[record-trace] Finished recording trace.
[record-trace] Trace written to /datadisks/disk1/work/AABC0977/t/tmpDnj9kx.nettrace
Uploading trace file to Helix work item directory: /datadisks/disk1/work/AABC0977/w/AF9D0976/uploads/activity.nettrace
Expected: 100
Actual: 255
Reproduction Steps
https://github.com/dotnet/runtime/tree/main/src/tests/tracing/userevents
Expected behavior
The nettrace contains the expected events
Actual behavior
Missing events
Regression?
No, this feature was introduced in .NET 10 and these are the first functional tests added.
Known Workarounds
No response
Configuration
No response
Other information
No response
Known Issue Error Message
Fill the error message using step by step known issues guidance.
{
"ErrorMessage": "does not contain expected events",
"ErrorPattern": "",
"BuildRetry": false,
"ExcludeConsoleLog": false
}Known issue validation
Build: 🔎
Result validation:
Validation performed at: 1/22/2026 11:26:04 AM UTC
Report
Summary
| 24-Hour Hit Count | 7-Day Hit Count | 1-Month Count |
|---|---|---|
| 10 | 24 | 24 |