Skip to content

Conversation

noahsmartin
Copy link
Contributor

@noahsmartin noahsmartin commented Oct 2, 2025

Rolls out hang tracker v2 for sdk v9
#skip-changelog

Closes #6335

Copy link

codecov bot commented Oct 2, 2025

❌ 15 Tests Failed:

Tests completed Failed Passed Skipped
3913 15 3898 13
View the top 3 failed test(s) by shortest run time
SentryTests.SentryANRTrackingIntegrationTests::testANRDetectedV1_Unknown_EventCaptured
Stack Traces | 0s run time
.../Tests/SentryTests/SentrySDKIntegrationTestsBase.swift:51 - XCTAssertEqual failed: ("1") is not equal to ("0") - More than one `Event` captured.
SentryTests.SentryANRTrackingIntegrationTests::testANRDetected_DetectingPausedResumed_EventCaptured
Stack Traces | 0s run time
.../Tests/SentryTests/SentrySDKIntegrationTestsBase.swift:51 - XCTAssertEqual failed: ("1") is not equal to ("0") - More than one `Event` captured.
SentryTests.SentryANRTrackingIntegrationTests::testANRDetected_EventCaptured
Stack Traces | 0s run time
.../Tests/SentryTests/SentrySDKIntegrationTestsBase.swift:51 - XCTAssertEqual failed: ("1") is not equal to ("0") - More than one `Event` captured.
SentryTests.SentryANRTrackingIntegrationTests::testANRDetected_FullyBlocking_EventCaptured
Stack Traces | 0s run time
.../Tests/SentryTests/SentrySDKIntegrationTestsBase.swift:51 - XCTAssertEqual failed: ("1") is not equal to ("0") - More than one `Event` captured.
SentryTests.SentryANRTrackingIntegrationTests::testANRDetected_NonFullyBlocked_EventCaptured
Stack Traces | 0s run time
.../Tests/SentryTests/SentrySDKIntegrationTestsBase.swift:51 - XCTAssertEqual failed: ("1") is not equal to ("0") - More than one `Event` captured.
SentryTests.SentryANRTrackingIntegrationTests::testWhenNoDebuggerAttached_TrackerInitialized
Stack Traces | 0s run time
.../Integrations/ANR/SentryANRTrackingIntegrationTests.swift:56 - XCTAssertTrue failed
SentryTests.SentryClientTests::testSetSDKIntegrations
Stack Traces | 0s run time
.../SentryTests/TestUtils/SentryAssertions.swift:14 - XCTAssertEqual failed: ("Optional(["ANRTracking", "AutoBreadcrumbTracking", "AutoSessionTracking", "Crash", "NetworkTracking"])") is not equal to ("Optional(["ANRTracking", "AutoBreadcrumbTracking", "AutoSessionTracking", "Crash", "FramesTracking", "NetworkTracking"])")
SentryTests.SentryClientTests::testTrackPreWarmedAppStartTracking
Stack Traces | 0s run time
.../SentryTests/TestUtils/SentryAssertions.swift:14 - XCTAssertEqual failed: ("Optional(["ANRTracking", "AutoBreadcrumbTracking", "AutoSessionTracking", "Crash", "NetworkTracking", "PreWarmedAppStartTracing"])") is not equal to ("Optional(["ANRTracking", "AutoBreadcrumbTracking", "AutoSessionTracking", "Crash", "FramesTracking", "NetworkTracking", "PreWarmedAppStartTracing"])")
SentryTests.SentryEnabledFeaturesBuilderTests::testEnableAllFeatures
Stack Traces | 0s run time
.../SentryTests/Helper/SentryEnabledFeaturesBuilderTests.swift:59 - XCTAssertTrue failed
SentryTests.SentryFramesTrackingIntegrationTests::testAppHangV2Enabled_ButIntervalZero_DoestNotMeasuresFrames
Stack Traces | 0s run time
.../Performance/FramesTracking/SentryFramesTrackingIntegrationTests.swift:62 - XCTAssertNil failed: "<SentryFramesTracker: 0x600002dc9180>"
SentryTests.SentryFramesTrackingIntegrationTests::testAutoPerformanceTrackingDisabled_DoesNotMeasureFrames
Stack Traces | 0s run time
.../Performance/FramesTracking/SentryFramesTrackingIntegrationTests.swift:79 - XCTAssertNil failed: "<SentryFramesTracker: 0x600002dc9280>"
SentryTests.SentryFramesTrackingIntegrationTests::testZeroTracesSampleRate_DoesNotMeasureFrames
Stack Traces | 0s run time
.../Performance/FramesTracking/SentryFramesTrackingIntegrationTests.swift:70 - XCTAssertNil failed: "<SentryFramesTracker: 0x600002dde900>"
SentryTests.SentryFramesTrackingIntegrationTests::test_FramesTracking_Disabled
Stack Traces | 0s run time
.../Performance/FramesTracking/SentryFramesTrackingIntegrationTests.swift:109 - XCTAssertFalse failed
SentryTests.SentrySDKTests::testStartWithConfigureOptions
Stack Traces | 0s run time
.../Tests/SentryTests/SentrySDKTests.swift:572 - XCTAssertEqual failed: ("5") is not equal to ("6")
View the full list of 1 ❄️ flaky test(s)
SentryTests.SentrySDKInternalTests::testResumeAndPauseAppHangTracking

Flake rate in main: 14.00% (Passed 43 times, Failed 7 times)

Stack Traces | 0s run time
.../Tests/SentryTests/SentrySDKInternalTests.swift:610 - XCTAssertEqual failed: ("1") is not equal to ("0") - The SDK should capture an AppHang after resuming the tracking, but it didn't.

To view more test analytics, go to the Test Analytics Dashboard
📋 Got 3 mins? Take this short survey to help us improve Test Analytics.

Comment on lines -665 to -682
# if !SDK_V9
/**
* AppHangTrackingV2 can differentiate between fully-blocking and non-fully blocking app hangs.
* fully-blocking app hang is when the main thread is stuck completely, and the app can't render a
* single frame. A non-fully-blocking app hang is when the app appears stuck to the user but can
still
* render a few frames. Fully-blocking app hangs are more actionable because the stacktrace shows
the
* exact blocking location on the main thread. As the main thread isn't completely blocked,
* non-fully-blocking app hangs can have a stacktrace that doesn't highlight the exact blocking
* location.
*
* You can use @c enableReportNonFullyBlockingAppHangs to ignore non-fully-blocking app hangs.
*
* @note This flag wins over enableAppHangTracking. When enabling both enableAppHangTracking and
enableAppHangTrackingV2, the SDK only enables enableAppHangTrackingV2 and disables
enableAppHangTracking.
*/
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

h: We must migrate this info to the enableAppHangTracking option. Now macOS uses V1 and iOS/tvOS V2.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By this you mean the comment right? I can update that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chore: Remove hang tracker sdk v9 checks

2 participants