getsentry / getsentry/sentry

Flaky test: tests/sentry/workflow_engine/test_integration.py::TestWorkflowEngineIntegrationFromErrorPostProcess::test_slow_condition_workflow_with_conditions

Open
#108,909 1 comment 0 reactions 0 assignees View on GitHub
flaky-test Tests
Dominant language
Python
Stars
44.8k
Forks
4.9k
Avg merge
21h 10m
Merged PRs (30d)
635

Description

Failing test: `tests/sentry/workflow_engine/test_integration.py::TestWorkflowEngineIntegrationFromErrorPostProcess::test_slow_condition_workflow_with_conditions`
Sentry sha: 4a8dadc9c184ad93a761561c5f57437a29cd3300
Run: https://github.com/getsentry/sentry/actions/runs/22283662803

```
tests/sentry/workflow_engine/test_integration.py:379: in test_slow_condition_workflow_with_conditions
mock_trigger.assert_called_once()
/opt/hostedtoolcache/Python/3.13.1/x64/lib/python3.13/unittest/mock.py:956: in assert_called_once
raise AssertionError(msg)
E AssertionError: Expected 'apply_async' to have been called once. Called 0 times.
```

Contributor guide

Open the contributing guide

Research direction

Start with tests/sentry/workflow_engine/test_integration.py, especially test_slow_condition_workflow_with_conditions around the failing mock_trigger.assert_called_once() at line 379. Run the named test and inspect the surrounding workflow integration setup to determine why apply_async is called zero times. Done means the test passes reliably with the expected call.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
testing-qa
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.