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

Stall tracking tests look flaky #3904

Open
vaind opened this issue Jun 19, 2024 · 1 comment
Open

Stall tracking tests look flaky #3904

vaind opened this issue Jun 19, 2024 · 1 comment

Comments

@vaind
Copy link
Collaborator

vaind commented Jun 19, 2024

Description

https://github.com/getsentry/sentry-react-native/actions/runs/9582859697/job/26422794329?pr=3846

FAIL test/tracing/stalltracking.iteration.test.ts
  ● Iteration › Stall tracking should update _stallCount and _totalStallTime when timeout condition is met

    expect(received).toBeGreaterThanOrEqual(expected)

    Expected: >= 100
    Received:    99

      [44](https://github.com/getsentry/sentry-react-native/actions/runs/9582859697/job/26422794329?pr=3846#step:6:45) |     // Check if _stallCount and _totalStallTime have been updated as expected.
      [45](https://github.com/getsentry/sentry-react-native/actions/runs/9582859697/job/26422794329?pr=3846#step:6:46) |     expect(stallTracking['_stallCount']).toBe(1);
    > [46](https://github.com/getsentry/sentry-react-native/actions/runs/9582859697/job/26422794329?pr=3846#step:6:47) |     expect(stallTracking['_totalStallTime']).toBeGreaterThanOrEqual(
         |                                              ^
      [47](https://github.com/getsentry/sentry-react-native/actions/runs/9582859697/job/26422794329?pr=3846#step:6:48) |       Math.round(totalTimeTaken - LOOP_TIMEOUT_INTERVAL_MS),
      [48](https://github.com/getsentry/sentry-react-native/actions/runs/9582859697/job/26422794329?pr=3846#step:6:49) |     );
      [49](https://github.com/getsentry/sentry-react-native/actions/runs/9582859697/job/26422794329?pr=3846#step:6:50) |   });

      at Object.toBeGreaterThanOrEqual (test/tracing/stalltracking.iteration.test.ts:46:46)
@vaind
Copy link
Collaborator Author

vaind commented Jun 19, 2024

I haven't found a good label for this (tests, ci, debt, ...) so leaving unlabeled

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Backlog
Development

No branches or pull requests

2 participants