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

Function workflow_nightly

test/copy/mzcompose.py:91–201  ·  view source on GitHub ↗

Run only during the nightly

(c: Composition, parser: WorkflowArgumentParser)

Source from the content-addressed store, hash-verified

89
90
91def workflow_nightly(c: Composition, parser: WorkflowArgumentParser) -> None:
92 """
93 Run only during the nightly
94 """
95 parser.add_argument(
96 "--default-size",
97 type=int,
98 default=1, # Reduced memory
99 help="Use SIZE 'scale=N,workers=N' for replicas and SIZE 'scale=N,workers=1' for sources",
100 )
101
102 args = parser.parse_args()
103
104 dependencies = ["minio", "materialized"]
105
106 testdrive = Testdrive(
107 forward_buildkite_shard=True,
108 aws_region=None,
109 validate_catalog_store=True,
110 default_timeout="1800s",
111 volumes_extra=["mzdata:/mzdata"],
112 no_reset=True,
113 )
114
115 materialized = Materialized(
116 default_size=args.default_size,
117 additional_system_parameter_defaults={
118 "log_filter": "mz_storage_operators::s3_oneshot_sink=trace,info"
119 },
120 )
121
122 with c.override(testdrive, materialized):
123 c.up(*dependencies)
124
125 c.sql(
126 "ALTER SYSTEM SET max_clusters = 50;",
127 port=6877,
128 user="mz_system",
129 )
130
131 s3 = Minio(
132 f"127.0.0.1:{c.default_port('minio')}",
133 "minioadmin",
134 "minioadmin",
135 region="minio",
136 secure=False,
137 )
138 c.run_testdrive_files("nightly/setup.td")
139
140 for size in [
141 "tpch10mb",
142 "tpch1gb",
143 # "tpch10gb", # SELECT(*) in Mz is way too slow
144 ]:
145 c.run_testdrive_files(f"nightly/{size}.td")
146 for table in [
147 "customer",
148 "lineitem",

Callers

nothing calls this directly

Calls 15

TestdriveClass · 0.90
MaterializedClass · 0.90
MinioClass · 0.90
overrideMethod · 0.80
default_portMethod · 0.80
run_testdrive_filesMethod · 0.80
list_objectsMethod · 0.80
get_objectMethod · 0.80
sortMethod · 0.80
upMethod · 0.45
sqlMethod · 0.45
sql_queryMethod · 0.45

Tested by

no test coverage detected