# # Use of this software is governed by the Business Source License # included in the LICENSE file at the root of this repository. # # As of the Change Date specified in that file, in accordance with # the Business Source License, use of this software will be governed # by the Apache License, Version 2.0. from materialize.mzcompose import Composition from materialize.mzcompose.services import Service SERVICES = [ Service( "maelstrom-persist", { "mzbuild": "maelstrom-persist", "volumes": ["./maelstrom:/store"] }, ), ] def workflow_default(c: Composition) -> None: """Run the nemesis for 5 seconds as a smoke test.""" c.run( "maelstrom-persist", "--time-limit=5", "--node-count=1", "--concurrency=2", "--rate=100", "--",
# the Business Source License, use of this software will be governed # by the Apache License, Version 2.0. from dataclasses import dataclass from typing import Dict, List, Optional from materialize.mzcompose import Composition, WorkflowArgumentParser from materialize.mzcompose.services import Materialized, Service, TestCerts SERVICES = [ TestCerts(), Materialized(), Service( "dbt-test", { "mzbuild": "dbt-materialize", "depends_on": ["test-certs"], "volumes": ["secrets:/secrets"], }, ), ] @dataclass class TestCase: name: str dbt_env: Dict[str, str] materialized_options: List[str] materialized_image: Optional[str] = None test_cases = [
# included in the LICENSE file at the root of this repository. # # As of the Change Date specified in that file, in accordance with # the Business Source License, use of this software will be governed # by the Apache License, Version 2.0. from materialize.mzcompose import Composition from materialize.mzcompose.services import Materialized, Service SERVICES = [ Materialized(), Service( "java-smoketest", { "mzbuild": "ci-java-smoketest", "working_dir": "/workdir", "volumes": ["./smoketest:/workdir"], "environment": [ "PGHOST=materialized", "PGPORT=6875", ], }, ), ] def workflow_default(c: Composition) -> None: c.up("materialized") c.wait_for_materialized() c.run("java-smoketest", "mvn", "test")
# # Use of this software is governed by the Business Source License # included in the LICENSE file at the root of this repository. # # As of the Change Date specified in that file, in accordance with # the Business Source License, use of this software will be governed # by the Apache License, Version 2.0. from materialize.mzcompose.services import Service SERVICES = [ Service( "jaeger", { "image": "jaegertracing/all-in-one:1.36", "ports": ["16686:16686", 14268, 14250], "command": "--collector.grpc-server.max-message-size=16777216", "allow_host_ports": True, }, ), Service( "otel-collector", { "image": "otel/opentelemetry-collector:0.56.0", "command": "--config=/etc/otel-collector-config.yaml", "ports": [ 1888, # pprof 13133, # health_check "4317:4317", # otlp grpc
from typing import Dict, List, Optional from materialize.mzcompose import Composition, WorkflowArgumentParser from materialize.mzcompose.services import Materialized, Redpanda, Service, TestCerts SERVICES = [ TestCerts(), Materialized(), Redpanda(), Service( "dbt-test", { "mzbuild": "dbt-materialize", "depends_on": ["test-certs"], "environment": [ "TMPDIR=/share/tmp", ], "volumes": [ "secrets:/secrets", "tmp:/share/tmp", ], }, ), ] @dataclass class TestCase: name: str dbt_env: Dict[str, str] materialized_options: List[str] materialized_image: Optional[str] = None