Skip to content

Commit 86790df

Browse files
committed
test(e2e): use the valid replay_on_change forward in microbatch lifecycle fixtures
1 parent 8ddb3f4 commit 86790df

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

‎tests/e2e/src/sqlbuild/cli/commands/main/build/test_microbatch_direct_lifecycle.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def test_given_serial_microbatch_when_building_then_state_table_is_not_used(
5959
"models/orders.sql": timestamp_microbatch_model_sql(
6060
value_expression="payload",
6161
batch_concurrency=1,
62-
replay_policy="forward_only",
62+
replay_policy="forward",
6363
),
6464
},
6565
)
@@ -217,7 +217,7 @@ def test_given_concurrent_ceiling_when_first_run_and_full_refresh_then_target_bo
217217
"models/orders.sql": timestamp_microbatch_model_sql(
218218
value_expression="payload",
219219
batch_concurrency=3,
220-
replay_policy="forward_only",
220+
replay_policy="forward",
221221
),
222222
},
223223
)
@@ -303,7 +303,7 @@ def test_given_recreated_target_when_building_then_old_completion_generation_is_
303303
"models/orders.sql": timestamp_microbatch_model_sql(
304304
value_expression="payload",
305305
batch_concurrency=2,
306-
replay_policy="forward_only",
306+
replay_policy="forward",
307307
),
308308
},
309309
)

‎tests/e2e/src/sqlbuild/cli/commands/main/build/test_microbatch_failure_windows.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def test_given_completion_write_failure_during_rebuild_when_retried_then_live_ta
5959
"models/orders.sql": timestamp_microbatch_model_sql(
6060
value_expression="payload",
6161
batch_concurrency=3,
62-
replay_policy="forward_only",
62+
replay_policy="forward",
6363
),
6464
"adapters/failing_microbatch_state_duckdb.py": (
6565
"import os\n"
@@ -166,7 +166,7 @@ def test_given_concurrent_delta_audit_failure_when_fixed_then_rejected_partition
166166
"models/orders.sql": timestamp_microbatch_model_sql(
167167
value_expression="CAST(payload AS INTEGER)",
168168
batch_concurrency=3,
169-
replay_policy="forward_only",
169+
replay_policy="forward",
170170
extra_config=(
171171
"audits [expression_is_true ("
172172
'name "positive_value", expression "value > 0", severity error, '
@@ -255,7 +255,7 @@ def test_given_concurrent_batches_when_audit_and_hooks_wrap_model_then_aggregate
255255
model_sql: str = timestamp_microbatch_model_sql(
256256
value_expression="payload",
257257
batch_concurrency=3,
258-
replay_policy="forward_only",
258+
replay_policy="forward",
259259
extra_config=(
260260
"pre_hooks [inline_sql(\"INSERT INTO main.hook_log VALUES ('pre')\")], "
261261
"post_hooks [inline_sql(\"INSERT INTO main.hook_log VALUES ('post')\")],"

‎tests/e2e/src/sqlbuild/cli/commands/main/build/test_microbatch_replay_backfill_lifecycle.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def test_given_ahead_of_frontier_partial_backfill_when_normal_run_resumes_then_l
3737
tmp_path=tmp_path,
3838
project_name="microbatch_future_backfill",
3939
database_name="future_backfill.duckdb",
40-
replay_policy="forward_only",
40+
replay_policy="forward",
4141
)
4242
execute_duckdb(
4343
db_path=db_path,
@@ -120,7 +120,7 @@ def test_given_failed_backfill_tail_when_source_tail_disappears_then_no_durable_
120120
tmp_path=tmp_path,
121121
project_name="microbatch_backfill_tail",
122122
database_name="backfill_tail.duckdb",
123-
replay_policy="forward_only",
123+
replay_policy="forward",
124124
)
125125
execute_duckdb(
126126
db_path=db_path,

0 commit comments

Comments
 (0)