You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test: scrub stack frame line numbers from Verify snapshots #6085
Snapshot tests that capture stack traces record each frame's LineNumber, e.g. LineNumber: 54 in test/Sentry.Serilog.Tests/IntegrationTests.Simple.DotNet{8,9,10}_0.verified.txt. Any edit above the call site in the test file (a new using, a #pragma) shifts the number and churns the snapshot, with no change in behaviour. #6084 hit this: adding a file-level #pragma warning disable CS0618 moved the line 53 → 54 in three snapshots.
The .NET Framework and Mono snapshots already don't record line numbers, so the value isn't load-bearing.
Proposal
Scrub or ignore SentryStackFrame.LineNumber (and probably ColumnNumber) in the shared Verify settings in test/Sentry.Testing/VerifyExtensions.cs, next to the existing IgnoreMembers, then re-accept the affected snapshots with pwsh ./scripts/accept-verifier-changes.ps1.
If a test genuinely needs to check line numbers, it can assert on them directly rather than through a snapshot.
Activity
linear-code commentedon Dec 3, 2026
NET-986