Flaky test: tests/sentry/api/serializers/test_rule.py::WorkflowRuleSerializerTest::test_generate_rule_conditions_filters
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 44.8k
- Forks
- 4.9k
- Avg merge
- 21h 23m
- Merged PRs (30d)
- 607
Description
Failing test: tests/sentry/api/serializers/test_rule.py::WorkflowRuleSerializerTest::test_generate_rule_conditions_filters
Sentry sha: 4a8dadc9c184ad93a761561c5f57437a29cd3300
Run: https://github.com/getsentry/sentry/actions/runs/22283663167
[1m[31mtests/sentry/api/serializers/test_rule.py[0m:263: in test_generate_rule_conditions_filters
assert conditions == serialized_rule["conditions"]
[1m[31mE assert [{'id': 'sent... unresolved'}] == [{'id': 'sent...ls bar", ...}][0m
[1m[31mE [0m
[1m[31mE At index 0 diff: {'id': 'sentry.rules.conditions.tagged_event.TaggedEventCondition', 'match': 'eq', 'value': 'bar', 'key': 'foo', 'name': "The event's tags match foo equals bar"} != {'id': 'sentry.rules.conditions.reappeared_event.ReappearedEventCondition', 'name': 'The issue changes state from archived to escalating'}[0m
[1m[31mE [0m
[1m[31mE Full diff:[0m
[1m[31mE [[0m
[1m[31mE + {[0m
[1m[31mE + 'id': 'sentry.rules.conditions.tagged_event.TaggedEventCondition',[0m
[1m[31mE + 'key': 'foo',[0m
[1m[31mE + 'match': 'eq',[0m
[1m[31mE + 'name': "The event's tags match foo equals bar",[0m
[1m[31mE + 'value': 'bar',[0m
[1m[31mE + },[0m
[1m[31mE {[0m
[1m[31mE 'id': 'sentry.rules.conditions.reappeared_event.ReappearedEventCondition',[0m
[1m[31mE 'name': 'The issue changes state from archived to escalating',[0m
[1m[31mE },[0m
[1m[31mE {[0m
[1m[31mE 'id': 'sentry.rules.conditions.regression_event.RegressionEventCondition',[0m
[1m[31mE 'name': 'The issue changes state from resolved to unresolved',[0m
[1m[31mE },[0m
[1m[31mE - {[0m
[1m[31mE - 'id': 'sentry.rules.conditions.tagged_event.TaggedEventCondition',[0m
[1m[31mE - 'key': 'foo',[0m
[1m[31mE - 'match': 'eq',[0m
[1m[31mE - 'name': "The event's tags match foo equals bar",[0m
[1m[31mE - 'value': 'bar',[0m
[1m[31mE - },[0m
[1m[31mE ][0m
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by running tests/sentry/api/serializers/test_rule.py::WorkflowRuleSerializerTest::test_generate_rule_conditions_filters at Sentry sha 4a8dadc9c184ad93a761561c5f57437a29cd3300. Inspect the failure around line 263 and the serialized condition ordering shown in the report. Done means the test passes reliably across repeated runs without changing its intended condition coverage.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- testing-qa
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100