From 40e31cbe4a60da5acfffdb8d9ac9516f14ee0a83 Mon Sep 17 00:00:00 2001 From: Kevin Longe <273747162+kvlonge@users.noreply.github.com> Date: Wed, 18 Nov 2026 05:26:28 +0000 Subject: [PATCH] test(location): show the location log when a replan report is wrong The replan-after-sync check failed once in CI with every model reported changed after a rebuild and a requested sync, and the failure carried no log. Include the location log in both report assertions so a recurrence shows which sync the plan followed and what each sync read. --- .../compiled_project/publication/test_plan_preview.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/integration/src/sqlbuild/compiler/compiled_project/publication/test_plan_preview.py b/tests/integration/src/sqlbuild/compiler/compiled_project/publication/test_plan_preview.py index 7409df00d4..1b1718ca42 100644 --- a/tests/integration/src/sqlbuild/compiler/compiled_project/publication/test_plan_preview.py +++ b/tests/integration/src/sqlbuild/compiler/compiled_project/publication/test_plan_preview.py @@ -425,7 +425,7 @@ def changed_build() -> dict[str, list[str]]: assert first.index(_SYNCED) < first.index(_PLANNED), ( "a publication plans what changed once its sync completes, not from the old copy" ) - assert changed_build() == test_case.expected_published + assert changed_build() == test_case.expected_published, log.read_text() _ = wait_for_location_work(api, request_warehouse_sync(control), location, log) _ = wait_for_log_count(location, log, _SYNCED, 2) @@ -439,8 +439,9 @@ def changed_build() -> dict[str, list[str]]: assert rebuilt.returncode == 0, rebuilt.stderr _ = wait_for_location_work(api, request_warehouse_sync(control), location, log) _ = wait_for_log_count(location, log, _PLANNED, 2) + # The log shows which sync the second plan followed and what each sync read. assert changed_build() == test_case.expected_rebuilt, ( - "a sync that mirrored the new build plans again" + f"a sync that mirrored the new build plans again\n{log.read_text()}" )