MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / workflow_cdc

Function workflow_cdc

test/pg-cdc-old-syntax/mzcompose.py:353–380  ·  view source on GitHub ↗
(c: Composition, parser: WorkflowArgumentParser)

Source from the content-addressed store, hash-verified

351
352
353def workflow_cdc(c: Composition, parser: WorkflowArgumentParser) -> None:
354 pg_version = get_targeted_pg_version(parser)
355
356 parser.add_argument(
357 "filter",
358 nargs="*",
359 default=["*.td"],
360 help="limit to only the files matching filter",
361 )
362 args = parser.parse_args()
363
364 sharded_files = [
365 file for file in get_sharded_files(args.filter) if file != "exclude-columns.td"
366 ]
367 print(f"Files: {sharded_files}")
368 ssl_args_dict = get_testdrive_ssl_args(c)
369 testdrive_ssl_args = ssl_args_dict["testdrive_args"]
370
371 testdrive_args = testdrive_ssl_args + get_default_testdrive_size_args()
372 with c.override(create_postgres(pg_version=pg_version)):
373 c.up("materialized", "test-certs", "postgres")
374 c.test_parts(
375 sharded_files,
376 lambda file: c.run_testdrive_files(
377 *testdrive_args,
378 file,
379 ),
380 )
381
382
383def workflow_default(c: Composition, parser: WorkflowArgumentParser) -> None:

Callers

nothing calls this directly

Calls 9

get_sharded_filesFunction · 0.85
get_testdrive_ssl_argsFunction · 0.85
overrideMethod · 0.80
test_partsMethod · 0.80
run_testdrive_filesMethod · 0.80
get_targeted_pg_versionFunction · 0.70
create_postgresFunction · 0.70
upMethod · 0.45

Tested by

no test coverage detected