Skip to content

Commit cf6fd2e

Browse files
committed
debug: add widget order/id dump to failing dashboard test
1 parent f634df7 commit cf6fd2e

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/backend-xdist.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,7 @@ jobs:
269269
PYTHONHASHSEED: '0'
270270
XDIST_PER_WORKER_SNUBA: '1'
271271
XDIST_WORKERS: '3'
272+
SENTRY_DEBUG_XDIST_DB: '1'
272273
SENTRY_SKIP_SELENIUM_PLUGIN: '1'
273274

274275
steps:

tests/sentry/dashboards/endpoints/test_organization_dashboard_details.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1848,7 +1848,8 @@ def test_remove_widget_and_add_new(self) -> None:
18481848

18491849
widgets = self.get_widgets(self.dashboard.id)
18501850
assert len(widgets) == 4
1851-
# Check ordering
1851+
for w in widgets:
1852+
print(f"DEBUG widget id={w.id} title={w.title!r} order={w.order}")
18521853
assert self.widget_1.id == widgets[0].id
18531854
assert self.widget_2.id == widgets[1].id
18541855
assert self.widget_4.id == widgets[2].id

0 commit comments

Comments
 (0)