continuo-python-runtime 0.14.0__tar.gz → 0.15.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/CHANGELOG.md +72 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/PKG-INFO +41 -41
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/README.md +38 -38
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/adapters/duckdb/continuo_duckdb_adapter/application/ports.py +1 -1
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/adapters/duckdb/continuo_duckdb_adapter/application/warehouse.py +2 -2
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/adapters/duckdb/continuo_duckdb_adapter/infrastructure/ddl.py +1 -1
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/adapters/duckdb/continuo_duckdb_adapter/infrastructure/session.py +2 -2
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/adapters/duckdb/pyproject.toml +2 -2
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/adapters/duckdb/tests/conftest.py +2 -2
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/adapters/duckdb/tests/test_adapter_duckdb_validation.py +5 -5
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/adapters/duckdb/tests/test_infra_duckdb_settings_ddl.py +1 -1
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/adapters/duckdb/tests/test_integration_duckdb_entrypoint.py +7 -7
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/adapters/duckdb/tests/test_integration_duckdb_validation.py +2 -2
- continuo_python_runtime-0.14.0/adapters/duckdb/tests/test_integration_duckdb_seed_preflight.py → continuo_python_runtime-0.15.0/adapters/duckdb/tests/test_integration_duckdb_warehouse_read.py +5 -5
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/adapters/postgres/README.md +1 -1
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/adapters/postgres/continuo_postgres_adapter/adapter.py +5 -5
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/adapters/postgres/pyproject.toml +2 -2
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/adapters/postgres/tests/test_adapter_postgres_validation.py +1 -1
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/adapters/postgres/tests/test_integration_postgres_entrypoint.py +9 -9
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/adapters/postgres/tests/test_integration_postgres_validation.py +3 -3
- continuo_python_runtime-0.14.0/adapters/postgres/tests/test_integration_postgres_seed_preflight.py → continuo_python_runtime-0.15.0/adapters/postgres/tests/test_integration_postgres_warehouse_read.py +6 -6
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/adapters/trino/README.md +1 -1
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/adapters/trino/continuo_trino_adapter/adapter.py +4 -4
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/adapters/trino/pyproject.toml +2 -2
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/adapters/trino/tests/test_adapter_trino_validation.py +1 -1
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/adapters/trino/tests/test_integration_trino_entrypoint.py +8 -8
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/adapters/trino/tests/test_integration_trino_validation.py +3 -3
- continuo_python_runtime-0.14.0/adapters/trino/tests/test_integration_trino_seed_preflight.py → continuo_python_runtime-0.15.0/adapters/trino/tests/test_integration_trino_warehouse_read.py +6 -6
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/continuo_python_runtime/cli.py +23 -23
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/continuo_python_runtime/contract/loader.py +11 -11
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/continuo_python_runtime/contract/ontology_check.py +14 -14
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/continuo_python_runtime/contract/pack.py +9 -9
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/continuo_python_runtime/packages.py +1 -1
- continuo_python_runtime-0.15.0/continuo_python_runtime/validation/dependents_check.py +265 -0
- continuo_python_runtime-0.15.0/continuo_python_runtime/validation/probe_views.py +99 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/continuo_python_runtime/validation/runner.py +24 -22
- continuo_python_runtime-0.15.0/continuo_python_runtime/validation/warehouse_read.py +89 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/contract/README.md +1 -1
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/contract/continuo_engine_contract/port.py +2 -2
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/contract/pyproject.toml +1 -1
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/contract/tests/test_conformance_suite.py +1 -1
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/contract/tests/test_port.py +6 -6
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/docs/boundary-contract.md +30 -30
- continuo_python_runtime-0.15.0/image-requirements-duckdb.txt +3 -0
- continuo_python_runtime-0.15.0/image-requirements-postgres.txt +3 -0
- continuo_python_runtime-0.15.0/image-requirements-trino.txt +3 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/pyproject.toml +3 -3
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/template/.github/workflows/release.yml +12 -12
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/template/Dockerfile +1 -1
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/template/README.md +11 -11
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/template/contracts/example.odcs.yaml +1 -1
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/tests/conftest.py +4 -4
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/tests/contract/test_loader.py +10 -10
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/tests/contract/test_ontology_check.py +22 -22
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/tests/contract/test_pack.py +11 -11
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/tests/contract/test_read_tables.py +1 -1
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/tests/fixtures/demo/service-py/old/py_daily_kpis.yml +2 -2
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/tests/odcs_builder.py +4 -4
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/tests/test_cli.py +64 -64
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/tests/test_contract_pin_consistency.py +3 -3
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/tests/test_harness_write_modes.py +2 -2
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/tests/test_image_smoke_validation.py +1 -1
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/tests/test_packages.py +2 -2
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/tests/test_template.py +17 -17
- continuo_python_runtime-0.15.0/tests/test_validation_dependents_check.py +340 -0
- continuo_python_runtime-0.15.0/tests/test_validation_probe_views.py +132 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/tests/test_validation_runner.py +64 -25
- continuo_python_runtime-0.15.0/tests/warehouse_read_fakes.py +80 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/uv.lock +9 -9
- continuo_python_runtime-0.14.0/continuo_python_runtime/validation/preflight.py +0 -410
- continuo_python_runtime-0.14.0/image-requirements-duckdb.txt +0 -3
- continuo_python_runtime-0.14.0/image-requirements-postgres.txt +0 -3
- continuo_python_runtime-0.14.0/image-requirements-trino.txt +0 -3
- continuo_python_runtime-0.14.0/tests/test_validation_preflight.py +0 -524
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/.claude/agents/ddd-architecture-auditor.md +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/.dockerignore +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/.github/CODEOWNERS +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/.github/ISSUE_TEMPLATE/bug_report.yml +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/.github/ISSUE_TEMPLATE/config.yml +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/.github/ISSUE_TEMPLATE/feature_request.yml +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/.github/dependabot.yml +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/.github/workflows/ci.yml +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/.github/workflows/dco.yml +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/.github/workflows/image-build.yml +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/.github/workflows/image-smoke.yml +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/.github/workflows/images.yml +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/.github/workflows/publish-pypi.yml +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/.github/workflows/release.yml +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/.github/workflows/security.yml +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/.github/workflows/verify-packages.yml +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/.gitignore +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/.gitleaks.toml +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/.python-version +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/CLAUDE.md +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/CODE_OF_CONDUCT.md +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/CONTRIBUTING.md +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/DCO +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/Dockerfile.duckdb +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/Dockerfile.postgres +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/Dockerfile.trino +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/LICENSE +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/NOTICE +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/SECURITY.md +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/adapters/duckdb/README.md +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/adapters/duckdb/continuo_duckdb_adapter/__init__.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/adapters/duckdb/continuo_duckdb_adapter/adapter.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/adapters/duckdb/continuo_duckdb_adapter/application/__init__.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/adapters/duckdb/continuo_duckdb_adapter/domain/__init__.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/adapters/duckdb/continuo_duckdb_adapter/domain/columns.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/adapters/duckdb/continuo_duckdb_adapter/domain/identifiers.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/adapters/duckdb/continuo_duckdb_adapter/domain/layout.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/adapters/duckdb/continuo_duckdb_adapter/infrastructure/__init__.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/adapters/duckdb/continuo_duckdb_adapter/infrastructure/extensions.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/adapters/duckdb/continuo_duckdb_adapter/infrastructure/passfile.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/adapters/duckdb/continuo_duckdb_adapter/infrastructure/settings.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/adapters/duckdb/tests/__init__.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/adapters/duckdb/tests/test_adapter_duckdb_proxy.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/adapters/duckdb/tests/test_adapter_duckdb_runtime.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/adapters/duckdb/tests/test_adapter_duckdb_wiring.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/adapters/duckdb/tests/test_domain_duckdb_columns.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/adapters/duckdb/tests/test_domain_duckdb_identifiers.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/adapters/duckdb/tests/test_domain_duckdb_layout.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/adapters/duckdb/tests/test_infra_duckdb_session.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/adapters/duckdb/tests/test_integration_duckdb_conformance.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/adapters/duckdb/tests/test_integration_duckdb_layout.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/adapters/duckdb/tests/test_integration_duckdb_nullability_probe.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/adapters/duckdb/tests/test_integration_duckdb_runtime.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/adapters/duckdb/tests/test_integration_duckdb_stack.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/adapters/postgres/continuo_postgres_adapter/__init__.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/adapters/postgres/tests/__init__.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/adapters/postgres/tests/conftest.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/adapters/postgres/tests/test_adapter_postgres_connect.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/adapters/postgres/tests/test_adapter_runtime_postgres.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/adapters/postgres/tests/test_integration_postgres_conformance.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/adapters/postgres/tests/test_integration_postgres_dependents.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/adapters/postgres/tests/test_integration_runtime_postgres.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/adapters/trino/continuo_trino_adapter/__init__.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/adapters/trino/tests/__init__.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/adapters/trino/tests/test_adapter_runtime_trino.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/adapters/trino/tests/test_adapter_trino_connect.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/adapters/trino/tests/test_adapter_trino_dependents.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/adapters/trino/tests/test_adapter_trino_writes.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/adapters/trino/tests/test_integration_runtime_trino.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/adapters/trino/tests/test_integration_trino_conformance.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/adapters/trino/tests/test_integration_trino_merge_probe.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/conftest.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/continuo_python_runtime/__init__.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/continuo_python_runtime/closure.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/continuo_python_runtime/conform.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/continuo_python_runtime/content_check.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/continuo_python_runtime/context.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/continuo_python_runtime/contract/__init__.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/continuo_python_runtime/contract/kinds.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/continuo_python_runtime/contract/model.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/continuo_python_runtime/contract/paths.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/continuo_python_runtime/contract/read_tables.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/continuo_python_runtime/csv_loader.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/continuo_python_runtime/csv_readers/__init__.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/continuo_python_runtime/csv_readers/https.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/continuo_python_runtime/csv_readers/s3.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/continuo_python_runtime/csv_source.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/continuo_python_runtime/errors.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/continuo_python_runtime/harness.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/continuo_python_runtime/hash_inputs.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/continuo_python_runtime/hashing.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/continuo_python_runtime/lint.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/continuo_python_runtime/shape.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/continuo_python_runtime/types.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/continuo_python_runtime/validation/__init__.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/continuo_python_runtime/validation/s3.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/contract/LICENSE +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/contract/NOTICE +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/contract/continuo_engine_contract/__init__.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/contract/continuo_engine_contract/config.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/contract/continuo_engine_contract/keys.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/contract/continuo_engine_contract/result.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/contract/continuo_engine_contract/sql.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/contract/continuo_engine_contract/testing/__init__.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/contract/continuo_engine_contract/testing/conformance.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/contract/continuo_engine_contract/types.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/contract/tests/__init__.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/contract/tests/test_config.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/contract/tests/test_contract_keys.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/contract/tests/test_contract_packaging.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/contract/tests/test_contract_types.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/contract/tests/test_result.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/contract/tests/test_sql.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/contract/tests/test_startup_conformance.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/scripts/apply_rehearsal_version.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/scripts/bake_duckdb_extensions.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/scripts/check_version_bumps.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/scripts/install_image_pins.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/scripts/security-scan.sh +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/scripts/verify_installed_packages.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/template/Dockerfile.pip +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/template/contracts/example_csv.odcs.yaml +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/template/requirements.lock +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/template/scripts/example.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/tests/__init__.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/tests/contract/__init__.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/tests/contract/test_kinds.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/tests/contract/test_model.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/tests/contract/test_write_modes.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/tests/fixtures/demo/service-py/contracts/demo_orders_csv.odcs.yaml +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/tests/fixtures/demo/service-py/contracts/fx_eur_usd_rates.odcs.yaml +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/tests/fixtures/demo/service-py/contracts/py_daily_kpis.odcs.yaml +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/tests/fixtures/demo/service-py/old/demo_orders_csv.yml +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/tests/fixtures/demo/service-py/old/fx_eur_usd_rates.yml +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/tests/fixtures/write_modes/append_node.odcs.yaml +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/tests/fixtures/write_modes/assets_node.odcs.yaml +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/tests/fixtures/write_modes/replace_node.odcs.yaml +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/tests/fixtures/write_modes/upsert_node.odcs.yaml +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/tests/smoke/duckdb-stack/docker-compose.yml +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/tests/smoke/node_smoke/contracts/smoke.odcs.yaml +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/tests/smoke/node_smoke/scripts/smoke.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/tests/smoke/postgres-stack/docker-compose.yml +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/tests/smoke/trino-stack/catalog/iceberg.properties +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/tests/smoke/trino-stack/docker-compose.yml +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/tests/test_adapter_naming.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/tests/test_check_version_bumps_tags.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/tests/test_ci_test_coverage.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/tests/test_closure.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/tests/test_conform.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/tests/test_context.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/tests/test_contract_loader.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/tests/test_csv_loader.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/tests/test_csv_readers_https.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/tests/test_csv_readers_integration.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/tests/test_csv_source.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/tests/test_entrypoint_shims.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/tests/test_errors.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/tests/test_harness.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/tests/test_harness_content_check.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/tests/test_hashing.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/tests/test_hashing_vectors.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/tests/test_image_requirements_sync.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/tests/test_install_image_pins.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/tests/test_kind_registries.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/tests/test_lint.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/tests/test_no_legacy_names.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/tests/test_package.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/tests/test_projection_vectors.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/tests/test_python_version_consistency.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/tests/test_rehearsal_version.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/tests/test_release_pipeline_structure.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/tests/test_shape.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/tests/test_types.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/tests/test_validation_s3.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/tests/test_verify_installed_packages.py +0 -0
- {continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/tests/test_write_contract_fixture.py +0 -0
|
@@ -5,6 +5,78 @@ follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
|
|
|
5
5
|
|
|
6
6
|
## [Unreleased]
|
|
7
7
|
|
|
8
|
+
## [0.15.0] - 2026-11-25
|
|
9
|
+
|
|
10
|
+
**TL;DR**
|
|
11
|
+
|
|
12
|
+
- The runtime uses continuo's glossary words. A team's releasable unit is a
|
|
13
|
+
**project**: `pack --project`, a `project` key in the bundle, and a release
|
|
14
|
+
posted with `project` and kind `python`.
|
|
15
|
+
- The seed preflight is now the **dependents check** (`VALIDATION_OP=dependents_check`,
|
|
16
|
+
`DEPENDENTS_CHECK_*`), and `clone_from_prod` is now `build_from_prod`.
|
|
17
|
+
- It pins continuo-contracts 0.5.0: a contract's `service` property is now
|
|
18
|
+
`project`. No node changes its `content_hash`.
|
|
19
|
+
- You must act: this release works only with a continuo install that uses the
|
|
20
|
+
same words. Change each project's CI as below.
|
|
21
|
+
|
|
22
|
+
**Upgrade**
|
|
23
|
+
|
|
24
|
+
1. Move to 0.15.0 only together with a continuo install whose chart CHANGELOG
|
|
25
|
+
names the kind `python` and the dependents check. The install's validation
|
|
26
|
+
image and its execution-controller must agree on the op names, so an older
|
|
27
|
+
install cannot run this image, and this install cannot run an older one.
|
|
28
|
+
2. In each project's release workflow: rename `SERVICE` to `PROJECT`, run
|
|
29
|
+
`continuo-runtime pack contracts/ --project "$PROJECT" ...`, upload to
|
|
30
|
+
`s3://<bucket>/<project>/<release_id>/odcs-bundle.json`, and post
|
|
31
|
+
`{"project": ..., "kind": "python", ...}`. `template/.github/workflows/release.yml`
|
|
32
|
+
shows each line.
|
|
33
|
+
3. In each contract that writes the `continuo` property `service`, rename it to
|
|
34
|
+
`project`. In the ontology file, rename `principals.services` to
|
|
35
|
+
`principals.projects`.
|
|
36
|
+
4. Build each project's image `FROM` the `v0.15.0` engine image. CI installs
|
|
37
|
+
`continuo-python-runtime==0.15.0` from the `FROM` line.
|
|
38
|
+
5. Adapter authors: rename `clone_empty_from_prod` to `build_empty_from_prod`.
|
|
39
|
+
|
|
40
|
+
Versions: runtime 0.15.0 (pins continuo-contracts 0.5.0), engine contract 0.11.0, postgres adapter 0.5.0, trino adapter 0.6.0, duckdb adapter 0.4.0.
|
|
41
|
+
|
|
42
|
+
### Breaking
|
|
43
|
+
|
|
44
|
+
- The code a team releases as one unit is a **project**, the word continuo's
|
|
45
|
+
glossary uses. `continuo-runtime pack` and `continuo-runtime validate` take
|
|
46
|
+
`--project <name>` instead of `--service`, `validate --ontology` needs
|
|
47
|
+
`--project`, and the bundle names the project in a `project` key instead of
|
|
48
|
+
`service`.
|
|
49
|
+
- The runtime pins `continuo-contracts==0.5.0`. A contract's optional
|
|
50
|
+
`continuo` property `service` is now `project`, and a contract that still
|
|
51
|
+
writes `service` is refused, naming the file. The ontology file declares its
|
|
52
|
+
projects under `principals.projects`. A node's `content_hash` does not change.
|
|
53
|
+
- The template's release workflow sets `PROJECT` instead of `SERVICE`, uploads
|
|
54
|
+
the bundle to `s3://<bucket>/<project>/<release_id>/odcs-bundle.json` and
|
|
55
|
+
posts the release with `project` and kind `python` (it was `python-odcs`).
|
|
56
|
+
continuo accepts that body from the first chart release whose CHANGELOG names
|
|
57
|
+
the kind `python`.
|
|
58
|
+
- The validation op `seed_preflight` is now the **dependents check**:
|
|
59
|
+
`VALIDATION_OP=dependents_check`, its inputs `DEPENDENTS_CHECK_MODE`,
|
|
60
|
+
`DEPENDENTS_CHECK_ENGINE_FAMILY`, `DEPENDENTS_CHECK_ALLOWED` and
|
|
61
|
+
`DEPENDENTS_CHECK_ACKNOWLEDGED`, and its result block's `op` is
|
|
62
|
+
`dependents_check`. The block's other keys do not change.
|
|
63
|
+
- The validation op `clone_from_prod` is now `build_from_prod`, and the engine
|
|
64
|
+
contract's `WarehouseAdapter.clone_empty_from_prod` is now
|
|
65
|
+
`build_empty_from_prod`, in the port and in the postgres, trino and duckdb
|
|
66
|
+
adapters. The op builds an empty table shaped like the production table and
|
|
67
|
+
copies no rows. The three node ops now say where the empty table's columns
|
|
68
|
+
come from: `build_from_sql`, `build_from_columns`, `build_from_prod`.
|
|
69
|
+
**Breaking for adapter authors:** rename the method.
|
|
70
|
+
|
|
71
|
+
### Changed
|
|
72
|
+
|
|
73
|
+
- The validation runner refuses an unknown `VALIDATION_OP` before it reads any
|
|
74
|
+
other input, with exit 2 and the message `unknown VALIDATION_OP '<op>'`. A
|
|
75
|
+
caller that still sends `seed_preflight` or `clone_from_prod` gets that
|
|
76
|
+
message, not a missing `DBT_TARGET_SCHEMA`.
|
|
77
|
+
- The template's Dockerfile and the README's engine examples build on the
|
|
78
|
+
`v0.15.0` engine images, the first whose `pack` takes `--project`.
|
|
79
|
+
|
|
8
80
|
## [0.14.0] - 2026-11-21
|
|
9
81
|
|
|
10
82
|
**TL;DR**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: continuo-python-runtime
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.15.0
|
|
4
4
|
Summary: Runtime harness, contract tooling, and CI lint for Continuo python nodes.
|
|
5
5
|
Author: Simone Carolini
|
|
6
6
|
Maintainer: Simone Carolini
|
|
@@ -12,8 +12,8 @@ Classifier: Intended Audience :: Developers
|
|
|
12
12
|
Classifier: Programming Language :: Python :: 3.14
|
|
13
13
|
Requires-Python: >=3.14
|
|
14
14
|
Requires-Dist: boto3==1.43.114
|
|
15
|
-
Requires-Dist: continuo-contracts==0.
|
|
16
|
-
Requires-Dist: continuo-engine-contract==0.
|
|
15
|
+
Requires-Dist: continuo-contracts==0.5.0
|
|
16
|
+
Requires-Dist: continuo-engine-contract==0.11.0
|
|
17
17
|
Requires-Dist: pyarrow==26.0.0
|
|
18
18
|
Requires-Dist: pyyaml==6.0.3
|
|
19
19
|
Requires-Dist: sqlglot==30.23.0
|
|
@@ -76,7 +76,7 @@ separate validation-side port, adapter class, entry-point group or image: one
|
|
|
76
76
|
`WarehouseAdapter` per engine serves both the data plane (`fetch` /
|
|
77
77
|
`ensure_table` / `load`, plus the opt-in `table_columns` / `append` / `upsert`
|
|
78
78
|
capabilities) and validation (`ensure_schema` / `drop_schema` /
|
|
79
|
-
`build_empty_from_sql` / `build_empty_from_columns` / `
|
|
79
|
+
`build_empty_from_sql` / `build_empty_from_columns` / `build_empty_from_prod` /
|
|
80
80
|
`check_binds`), and one image per engine runs both roles.
|
|
81
81
|
|
|
82
82
|
| Package (distribution name) | Module | Lives in | Role |
|
|
@@ -115,7 +115,7 @@ last line of stdout, and Continuo's Go side parses it byte-for-byte
|
|
|
115
115
|
sentinel markers, the framing, and the field names inside the block — is
|
|
116
116
|
**frozen**. The additions are an optional `reason` key, written after
|
|
117
117
|
`unique_id` only when an outcome has a machine-readable code (for example
|
|
118
|
-
`image_contract_mismatch`), and the op's own keys that the `
|
|
118
|
+
`image_contract_mismatch`), and the op's own keys that the `dependents_check` and
|
|
119
119
|
`probe_views` ops write after `reason`; a block without either keeps its bytes,
|
|
120
120
|
and the sentinels, `schema_version` and the five standard keys do not change. Reuse
|
|
121
121
|
it; never change it from this side alone. A change here that
|
|
@@ -124,17 +124,17 @@ the Go parser has not been taught is a production outage, not a refactor.
|
|
|
124
124
|
## Quickstart for domain teams
|
|
125
125
|
|
|
126
126
|
1. Copy `template/` into a new repository.
|
|
127
|
-
2. Edit `template/.github/workflows/release.yml` and set `
|
|
128
|
-
|
|
127
|
+
2. Edit `template/.github/workflows/release.yml` and set `PROJECT` to the
|
|
128
|
+
name of the project this repository releases.
|
|
129
129
|
3. Configure repository variables in GitHub (Settings → Secrets and
|
|
130
130
|
variables → Actions): `REGISTRY` (your Docker registry), `BUCKET` (your
|
|
131
131
|
S3 bucket for the contract bundle), `RELEASE_ENDPOINT` (the base
|
|
132
132
|
URL of your continuo install, `scheme://host[:port]` with no path, the origin of continuo's
|
|
133
133
|
`auth.publicUrl`). The
|
|
134
134
|
workflow calls `<RELEASE_ENDPOINT>/api/v1/releases` with its GitHub Actions
|
|
135
|
-
OIDC token, so the repository must be bound to your
|
|
135
|
+
OIDC token, so the repository must be bound to your project in continuo's
|
|
136
136
|
`ciAuth.bindings` (see [Releasing from CI](https://github.com/carolsimone/continuo/blob/main/deploy/README.md#releasing-from-ci-github-actions)),
|
|
137
|
-
and an operator bootstraps the
|
|
137
|
+
and an operator bootstraps the project's first release.
|
|
138
138
|
4. Configure repository secrets: `AWS_ACCESS_KEY_ID` and
|
|
139
139
|
`AWS_SECRET_ACCESS_KEY` for the S3 upload. The template workflow pushes
|
|
140
140
|
the built image to GHCR using the workflow's own `GITHUB_TOKEN` (granted
|
|
@@ -150,13 +150,13 @@ the Go parser has not been taught is a production outage, not a refactor.
|
|
|
150
150
|
6. Push to `main`. The `release.yml` workflow lints the scripts, validates
|
|
151
151
|
the contracts, builds and pushes the image, packs the contracts into
|
|
152
152
|
`odcs-bundle.json`, uploads it to S3, and POSTs the release with
|
|
153
|
-
`"kind": "python
|
|
153
|
+
`"kind": "python"`.
|
|
154
154
|
|
|
155
155
|
## Contract files
|
|
156
156
|
|
|
157
157
|
Each node has one contract: an ODCS v3.2.0 data contract in `contracts/`,
|
|
158
158
|
named after its table, `<table>.odcs.yaml`, or `<schema>.<table>.odcs.yaml`
|
|
159
|
-
when two nodes of one
|
|
159
|
+
when two nodes of one project share a table name. The `continuo-contracts`
|
|
160
160
|
library reads each file strictly (YAML 1.2 core, with no aliases, no duplicate
|
|
161
161
|
keys and one document per file) and checks it. `validate`, `pack`, `hash` and
|
|
162
162
|
the harness load the folder the same way; the harness skips the read-query
|
|
@@ -196,9 +196,9 @@ schema:
|
|
|
196
196
|
- continuo's own settings are `customProperties` items with
|
|
197
197
|
`vendor: continuo`. Every node sets `schedule` and `criticality`
|
|
198
198
|
(`REGULATORY`, `CORE` or `SECONDARY`); the node's kind decides the rest
|
|
199
|
-
(see "Node kinds" below). An optional `
|
|
200
|
-
and `pack` and `validate --
|
|
201
|
-
their `--
|
|
199
|
+
(see "Node kinds" below). An optional `project` names the node's project,
|
|
200
|
+
and `pack` and `validate --project` refuse a contract whose `project` is not
|
|
201
|
+
their `--project`.
|
|
202
202
|
- A contract may also bind its table and its columns to the company's ontology
|
|
203
203
|
(see "Checking against the ontology" below).
|
|
204
204
|
- The contract has exactly one schema object, `physicalType: table`. Its
|
|
@@ -242,7 +242,7 @@ production. See `docs/boundary-contract.md` §13.1.
|
|
|
242
242
|
### Checking against the ontology
|
|
243
243
|
|
|
244
244
|
A company that keeps an ontology file, the things its data is about and the
|
|
245
|
-
|
|
245
|
+
projects that own them, can have each contract bind its table and its columns
|
|
246
246
|
to it. The bindings are optional `continuo` properties: `entity`, `grain`,
|
|
247
247
|
`fixed` and `filter` on the schema object, and `property`, `local` and
|
|
248
248
|
`aggregate` on a column (`docs/boundary-contract.md` gives their values):
|
|
@@ -272,10 +272,10 @@ A contract with bindings loads, validates, packs and runs like any other, and
|
|
|
272
272
|
its `content_hash` is the one it has without them. To check the bindings in your
|
|
273
273
|
CI, keep a copy of the company's ontology file in your own repository, for
|
|
274
274
|
example at `ontology/ontology.yaml`, and give `validate` the name of your
|
|
275
|
-
|
|
275
|
+
project and the path of that copy:
|
|
276
276
|
|
|
277
277
|
```bash
|
|
278
|
-
continuo-runtime validate contracts --
|
|
278
|
+
continuo-runtime validate contracts --project <name> --ontology ontology/ontology.yaml
|
|
279
279
|
```
|
|
280
280
|
|
|
281
281
|
Copy the file from the company's ontology repository, never from continuo, and
|
|
@@ -285,33 +285,33 @@ that is behind the ontology can pass here and still be refused by the release,
|
|
|
285
285
|
which checks against the ontology the install runs. The library's dbt check,
|
|
286
286
|
`continuo-contracts dbt check`, takes the same file with `--ontology`.
|
|
287
287
|
|
|
288
|
-
`--
|
|
289
|
-
|
|
290
|
-
both, every contract is checked as a contract of that
|
|
291
|
-
`continuo-contracts` that need no other
|
|
288
|
+
`--project` alone refuses a contract whose `project` property names another
|
|
289
|
+
project. `--ontology` needs `--project`; without it `validate` exits 2. With
|
|
290
|
+
both, every contract is checked as a contract of that project by the rules of
|
|
291
|
+
`continuo-contracts` that need no other project: `contract`, `coverage`,
|
|
292
292
|
`quality` and `privacy`. The rules that read the whole estate (`access`,
|
|
293
|
-
`order` and `drift`) cannot run on one
|
|
293
|
+
`order` and `drift`) cannot run on one project's contracts and are not run
|
|
294
294
|
here. `validate` logs, on stderr and at the level of its severity (ERROR,
|
|
295
295
|
WARNING or INFO), one line for each finding,
|
|
296
296
|
`<severity> [<rule>] <subject>: <message>`, then one INFO line that counts them,
|
|
297
297
|
`<e> error(s), <w> warning(s), <i> info: <name>`. It exits 1 when any finding is
|
|
298
298
|
an error and 0 otherwise, and it prints nothing to stdout.
|
|
299
299
|
|
|
300
|
-
- When the ontology declares the
|
|
300
|
+
- When the ontology declares the project, each contract names exactly one of
|
|
301
301
|
`entity` or `grain`, so a contract that names neither, or both, is an error.
|
|
302
302
|
A column that carries no binding is a warning, unless its name is a key part
|
|
303
303
|
or a property of the table's entity, in which case the check binds it itself.
|
|
304
|
-
- When the ontology does not declare the
|
|
304
|
+
- When the ontology does not declare the project, none of its contracts is
|
|
305
305
|
checked: `validate` logs one INFO line, `not declared in the ontology: none
|
|
306
|
-
of this
|
|
306
|
+
of this project's contracts is checked`, and one WARNING for each contract
|
|
307
307
|
that writes bindings, and exits 0.
|
|
308
308
|
- A file that cannot be read, is not UTF-8 text or is not an ontology is one
|
|
309
309
|
ERROR line, `<file>: <reason>`, and exit 1. The reason of an invalid
|
|
310
310
|
ontology is the library's, with the path to the first fault.
|
|
311
311
|
- A file that is an ontology but that the library's `ontology` rule refuses (a
|
|
312
|
-
thing owned by a domain the file does not declare, a
|
|
312
|
+
thing owned by a domain the file does not declare, a project of a domain it
|
|
313
313
|
does not declare, a personal property no access rule names) is refused the
|
|
314
|
-
same way, whatever the
|
|
314
|
+
same way, whatever the project, and no contract is checked against it: one
|
|
315
315
|
ERROR line, `<file>: the ontology file has <n> error(s): run
|
|
316
316
|
continuo-contracts ontology check <file>`, and exit 1. That command lists the
|
|
317
317
|
errors. Findings of that rule that are not errors do not stop the check.
|
|
@@ -554,11 +554,11 @@ A domain repo picks its warehouse engine by which base image it builds
|
|
|
554
554
|
`FROM`:
|
|
555
555
|
|
|
556
556
|
```dockerfile
|
|
557
|
-
FROM ghcr.io/carolsimone/continuo-python-runtime-postgres:v0.
|
|
557
|
+
FROM ghcr.io/carolsimone/continuo-python-runtime-postgres:v0.15.0
|
|
558
558
|
# or
|
|
559
|
-
FROM ghcr.io/carolsimone/continuo-python-runtime-trino:v0.
|
|
559
|
+
FROM ghcr.io/carolsimone/continuo-python-runtime-trino:v0.15.0
|
|
560
560
|
# or
|
|
561
|
-
FROM ghcr.io/carolsimone/continuo-python-runtime-duckdb:v0.
|
|
561
|
+
FROM ghcr.io/carolsimone/continuo-python-runtime-duckdb:v0.15.0
|
|
562
562
|
```
|
|
563
563
|
|
|
564
564
|
The engine is part of the image **name**; the tag is the bare version, so
|
|
@@ -571,7 +571,7 @@ repo's `adapters/postgres/`, `adapters/trino/` or `adapters/duckdb/` source
|
|
|
571
571
|
(see the table above) — registered under the
|
|
572
572
|
`continuo_engine.adapters` entry-point group (entry names `postgres` /
|
|
573
573
|
`trino` / `duckdb`). The runtime discovers it via `discover_adapter()` at run time, so a
|
|
574
|
-
single image serves every node in the
|
|
574
|
+
single image serves every node in the project and the release-time
|
|
575
575
|
validation Job for it. The executor injects the warehouse connection as
|
|
576
576
|
environment variables (engine-native, e.g.
|
|
577
577
|
`POSTGRES_HOST`/`POSTGRES_DB`/`POSTGRES_USER`) plus the node-selection
|
|
@@ -599,7 +599,7 @@ Both shapes end up running the same runtime and the same adapter version;
|
|
|
599
599
|
which one you pick only changes who controls the base OS layer underneath
|
|
600
600
|
them.
|
|
601
601
|
|
|
602
|
-
##
|
|
602
|
+
## Dependents check and view probe
|
|
603
603
|
|
|
604
604
|
Two validation ops read the warehouse and change nothing. They run through the
|
|
605
605
|
same runner image as the other validation ops (`VALIDATION_OP`), need no
|
|
@@ -610,32 +610,32 @@ a drop destroys the objects that read the table (`drop_semantics` `cascade`,
|
|
|
610
610
|
postgres) that takes every view, function and constraint built on the seed with
|
|
611
611
|
it, including objects continuo does not own. On an engine where those objects
|
|
612
612
|
survive and fail on their next read (`late_binding`, trino and duckdb) they
|
|
613
|
-
may go stale. `
|
|
613
|
+
may go stale. `dependents_check` lists what a reload would touch and compares it
|
|
614
614
|
with what the operator has allowed or acknowledged; `probe_views` tries named
|
|
615
615
|
views after a reload and says which no longer bind.
|
|
616
616
|
|
|
617
|
-
`
|
|
617
|
+
`dependents_check` runs in two places. `check` runs in the seed task's own pod just
|
|
618
618
|
before dbt and stops the reload with exit 1 when the check concludes it must.
|
|
619
619
|
`report` runs in the release's seed-build Job and only reports what a `check`
|
|
620
620
|
would conclude; it exits 0 whatever it finds.
|
|
621
621
|
|
|
622
|
-
### `
|
|
622
|
+
### `dependents_check` inputs
|
|
623
623
|
|
|
624
624
|
| Variable | Meaning |
|
|
625
625
|
|---|---|
|
|
626
|
-
| `
|
|
627
|
-
| `
|
|
626
|
+
| `DEPENDENTS_CHECK_MODE` | `check` or `report`. |
|
|
627
|
+
| `DEPENDENTS_CHECK_ENGINE_FAMILY` | `schema_bound` or `late_binding`, the family the release plan expects of the engine. |
|
|
628
628
|
| `PROD_SCHEMA`, `TABLE_NAME` | The seed's production relation. |
|
|
629
|
-
| `
|
|
629
|
+
| `DEPENDENTS_CHECK_ALLOWED`, `DEPENDENTS_CHECK_ACKNOWLEDGED` | JSON arrays of `"<schema>.<name>"`, default `[]`. An object is allowed when `<schema>.<name>`, in lower case, is in either list (entries are trimmed and lower-cased). |
|
|
630
630
|
| `NODE_ID` | Optional; the block's `unique_id`. Default `<PROD_SCHEMA>.<TABLE_NAME>`. |
|
|
631
631
|
|
|
632
632
|
The adapter's own variables (`POSTGRES_*`, `TRINO_*`, ...) are needed as for any
|
|
633
633
|
other op. An adapter's family is `schema_bound` when its `drop_semantics` is
|
|
634
634
|
`cascade`, and `late_binding` when it is `late_binding`.
|
|
635
635
|
|
|
636
|
-
### `
|
|
636
|
+
### `dependents_check` block
|
|
637
637
|
|
|
638
|
-
After the standard keys (and `reason` when one applies): `op` (`
|
|
638
|
+
After the standard keys (and `reason` when one applies): `op` (`dependents_check`),
|
|
639
639
|
`mode`, `checked` (the warehouse was asked and its listing came back), `engine_family` (as given),
|
|
640
640
|
`drop_semantics` (the adapter's), `completeness` (`exact`, `best_effort`, or
|
|
641
641
|
`none` when nothing was listed) and `dependents`, a list of
|
|
@@ -648,7 +648,7 @@ After the standard keys (and `reason` when one applies): `op` (`seed_preflight`)
|
|
|
648
648
|
| Situation | `reason` | `check` | `report` |
|
|
649
649
|
|---|---|---|---|
|
|
650
650
|
| a missing or malformed input, no adapter, missing adapter env | none | exit 2 | exit 2 |
|
|
651
|
-
| the adapter's family differs from `
|
|
651
|
+
| the adapter's family differs from `DEPENDENTS_CHECK_ENGINE_FAMILY`, or it declares none | `engine_mismatch` | exit 1 | exit 0 |
|
|
652
652
|
| the adapter cannot list dependents, `schema_bound` | `unowned_dependents` | exit 1 | exit 0 |
|
|
653
653
|
| the adapter cannot list dependents, `late_binding` | none | exit 0 | exit 0 |
|
|
654
654
|
| the connection fails | `warehouse_unreachable` | exit 1 | exit 0 |
|
|
@@ -55,7 +55,7 @@ separate validation-side port, adapter class, entry-point group or image: one
|
|
|
55
55
|
`WarehouseAdapter` per engine serves both the data plane (`fetch` /
|
|
56
56
|
`ensure_table` / `load`, plus the opt-in `table_columns` / `append` / `upsert`
|
|
57
57
|
capabilities) and validation (`ensure_schema` / `drop_schema` /
|
|
58
|
-
`build_empty_from_sql` / `build_empty_from_columns` / `
|
|
58
|
+
`build_empty_from_sql` / `build_empty_from_columns` / `build_empty_from_prod` /
|
|
59
59
|
`check_binds`), and one image per engine runs both roles.
|
|
60
60
|
|
|
61
61
|
| Package (distribution name) | Module | Lives in | Role |
|
|
@@ -94,7 +94,7 @@ last line of stdout, and Continuo's Go side parses it byte-for-byte
|
|
|
94
94
|
sentinel markers, the framing, and the field names inside the block — is
|
|
95
95
|
**frozen**. The additions are an optional `reason` key, written after
|
|
96
96
|
`unique_id` only when an outcome has a machine-readable code (for example
|
|
97
|
-
`image_contract_mismatch`), and the op's own keys that the `
|
|
97
|
+
`image_contract_mismatch`), and the op's own keys that the `dependents_check` and
|
|
98
98
|
`probe_views` ops write after `reason`; a block without either keeps its bytes,
|
|
99
99
|
and the sentinels, `schema_version` and the five standard keys do not change. Reuse
|
|
100
100
|
it; never change it from this side alone. A change here that
|
|
@@ -103,17 +103,17 @@ the Go parser has not been taught is a production outage, not a refactor.
|
|
|
103
103
|
## Quickstart for domain teams
|
|
104
104
|
|
|
105
105
|
1. Copy `template/` into a new repository.
|
|
106
|
-
2. Edit `template/.github/workflows/release.yml` and set `
|
|
107
|
-
|
|
106
|
+
2. Edit `template/.github/workflows/release.yml` and set `PROJECT` to the
|
|
107
|
+
name of the project this repository releases.
|
|
108
108
|
3. Configure repository variables in GitHub (Settings → Secrets and
|
|
109
109
|
variables → Actions): `REGISTRY` (your Docker registry), `BUCKET` (your
|
|
110
110
|
S3 bucket for the contract bundle), `RELEASE_ENDPOINT` (the base
|
|
111
111
|
URL of your continuo install, `scheme://host[:port]` with no path, the origin of continuo's
|
|
112
112
|
`auth.publicUrl`). The
|
|
113
113
|
workflow calls `<RELEASE_ENDPOINT>/api/v1/releases` with its GitHub Actions
|
|
114
|
-
OIDC token, so the repository must be bound to your
|
|
114
|
+
OIDC token, so the repository must be bound to your project in continuo's
|
|
115
115
|
`ciAuth.bindings` (see [Releasing from CI](https://github.com/carolsimone/continuo/blob/main/deploy/README.md#releasing-from-ci-github-actions)),
|
|
116
|
-
and an operator bootstraps the
|
|
116
|
+
and an operator bootstraps the project's first release.
|
|
117
117
|
4. Configure repository secrets: `AWS_ACCESS_KEY_ID` and
|
|
118
118
|
`AWS_SECRET_ACCESS_KEY` for the S3 upload. The template workflow pushes
|
|
119
119
|
the built image to GHCR using the workflow's own `GITHUB_TOKEN` (granted
|
|
@@ -129,13 +129,13 @@ the Go parser has not been taught is a production outage, not a refactor.
|
|
|
129
129
|
6. Push to `main`. The `release.yml` workflow lints the scripts, validates
|
|
130
130
|
the contracts, builds and pushes the image, packs the contracts into
|
|
131
131
|
`odcs-bundle.json`, uploads it to S3, and POSTs the release with
|
|
132
|
-
`"kind": "python
|
|
132
|
+
`"kind": "python"`.
|
|
133
133
|
|
|
134
134
|
## Contract files
|
|
135
135
|
|
|
136
136
|
Each node has one contract: an ODCS v3.2.0 data contract in `contracts/`,
|
|
137
137
|
named after its table, `<table>.odcs.yaml`, or `<schema>.<table>.odcs.yaml`
|
|
138
|
-
when two nodes of one
|
|
138
|
+
when two nodes of one project share a table name. The `continuo-contracts`
|
|
139
139
|
library reads each file strictly (YAML 1.2 core, with no aliases, no duplicate
|
|
140
140
|
keys and one document per file) and checks it. `validate`, `pack`, `hash` and
|
|
141
141
|
the harness load the folder the same way; the harness skips the read-query
|
|
@@ -175,9 +175,9 @@ schema:
|
|
|
175
175
|
- continuo's own settings are `customProperties` items with
|
|
176
176
|
`vendor: continuo`. Every node sets `schedule` and `criticality`
|
|
177
177
|
(`REGULATORY`, `CORE` or `SECONDARY`); the node's kind decides the rest
|
|
178
|
-
(see "Node kinds" below). An optional `
|
|
179
|
-
and `pack` and `validate --
|
|
180
|
-
their `--
|
|
178
|
+
(see "Node kinds" below). An optional `project` names the node's project,
|
|
179
|
+
and `pack` and `validate --project` refuse a contract whose `project` is not
|
|
180
|
+
their `--project`.
|
|
181
181
|
- A contract may also bind its table and its columns to the company's ontology
|
|
182
182
|
(see "Checking against the ontology" below).
|
|
183
183
|
- The contract has exactly one schema object, `physicalType: table`. Its
|
|
@@ -221,7 +221,7 @@ production. See `docs/boundary-contract.md` §13.1.
|
|
|
221
221
|
### Checking against the ontology
|
|
222
222
|
|
|
223
223
|
A company that keeps an ontology file, the things its data is about and the
|
|
224
|
-
|
|
224
|
+
projects that own them, can have each contract bind its table and its columns
|
|
225
225
|
to it. The bindings are optional `continuo` properties: `entity`, `grain`,
|
|
226
226
|
`fixed` and `filter` on the schema object, and `property`, `local` and
|
|
227
227
|
`aggregate` on a column (`docs/boundary-contract.md` gives their values):
|
|
@@ -251,10 +251,10 @@ A contract with bindings loads, validates, packs and runs like any other, and
|
|
|
251
251
|
its `content_hash` is the one it has without them. To check the bindings in your
|
|
252
252
|
CI, keep a copy of the company's ontology file in your own repository, for
|
|
253
253
|
example at `ontology/ontology.yaml`, and give `validate` the name of your
|
|
254
|
-
|
|
254
|
+
project and the path of that copy:
|
|
255
255
|
|
|
256
256
|
```bash
|
|
257
|
-
continuo-runtime validate contracts --
|
|
257
|
+
continuo-runtime validate contracts --project <name> --ontology ontology/ontology.yaml
|
|
258
258
|
```
|
|
259
259
|
|
|
260
260
|
Copy the file from the company's ontology repository, never from continuo, and
|
|
@@ -264,33 +264,33 @@ that is behind the ontology can pass here and still be refused by the release,
|
|
|
264
264
|
which checks against the ontology the install runs. The library's dbt check,
|
|
265
265
|
`continuo-contracts dbt check`, takes the same file with `--ontology`.
|
|
266
266
|
|
|
267
|
-
`--
|
|
268
|
-
|
|
269
|
-
both, every contract is checked as a contract of that
|
|
270
|
-
`continuo-contracts` that need no other
|
|
267
|
+
`--project` alone refuses a contract whose `project` property names another
|
|
268
|
+
project. `--ontology` needs `--project`; without it `validate` exits 2. With
|
|
269
|
+
both, every contract is checked as a contract of that project by the rules of
|
|
270
|
+
`continuo-contracts` that need no other project: `contract`, `coverage`,
|
|
271
271
|
`quality` and `privacy`. The rules that read the whole estate (`access`,
|
|
272
|
-
`order` and `drift`) cannot run on one
|
|
272
|
+
`order` and `drift`) cannot run on one project's contracts and are not run
|
|
273
273
|
here. `validate` logs, on stderr and at the level of its severity (ERROR,
|
|
274
274
|
WARNING or INFO), one line for each finding,
|
|
275
275
|
`<severity> [<rule>] <subject>: <message>`, then one INFO line that counts them,
|
|
276
276
|
`<e> error(s), <w> warning(s), <i> info: <name>`. It exits 1 when any finding is
|
|
277
277
|
an error and 0 otherwise, and it prints nothing to stdout.
|
|
278
278
|
|
|
279
|
-
- When the ontology declares the
|
|
279
|
+
- When the ontology declares the project, each contract names exactly one of
|
|
280
280
|
`entity` or `grain`, so a contract that names neither, or both, is an error.
|
|
281
281
|
A column that carries no binding is a warning, unless its name is a key part
|
|
282
282
|
or a property of the table's entity, in which case the check binds it itself.
|
|
283
|
-
- When the ontology does not declare the
|
|
283
|
+
- When the ontology does not declare the project, none of its contracts is
|
|
284
284
|
checked: `validate` logs one INFO line, `not declared in the ontology: none
|
|
285
|
-
of this
|
|
285
|
+
of this project's contracts is checked`, and one WARNING for each contract
|
|
286
286
|
that writes bindings, and exits 0.
|
|
287
287
|
- A file that cannot be read, is not UTF-8 text or is not an ontology is one
|
|
288
288
|
ERROR line, `<file>: <reason>`, and exit 1. The reason of an invalid
|
|
289
289
|
ontology is the library's, with the path to the first fault.
|
|
290
290
|
- A file that is an ontology but that the library's `ontology` rule refuses (a
|
|
291
|
-
thing owned by a domain the file does not declare, a
|
|
291
|
+
thing owned by a domain the file does not declare, a project of a domain it
|
|
292
292
|
does not declare, a personal property no access rule names) is refused the
|
|
293
|
-
same way, whatever the
|
|
293
|
+
same way, whatever the project, and no contract is checked against it: one
|
|
294
294
|
ERROR line, `<file>: the ontology file has <n> error(s): run
|
|
295
295
|
continuo-contracts ontology check <file>`, and exit 1. That command lists the
|
|
296
296
|
errors. Findings of that rule that are not errors do not stop the check.
|
|
@@ -533,11 +533,11 @@ A domain repo picks its warehouse engine by which base image it builds
|
|
|
533
533
|
`FROM`:
|
|
534
534
|
|
|
535
535
|
```dockerfile
|
|
536
|
-
FROM ghcr.io/carolsimone/continuo-python-runtime-postgres:v0.
|
|
536
|
+
FROM ghcr.io/carolsimone/continuo-python-runtime-postgres:v0.15.0
|
|
537
537
|
# or
|
|
538
|
-
FROM ghcr.io/carolsimone/continuo-python-runtime-trino:v0.
|
|
538
|
+
FROM ghcr.io/carolsimone/continuo-python-runtime-trino:v0.15.0
|
|
539
539
|
# or
|
|
540
|
-
FROM ghcr.io/carolsimone/continuo-python-runtime-duckdb:v0.
|
|
540
|
+
FROM ghcr.io/carolsimone/continuo-python-runtime-duckdb:v0.15.0
|
|
541
541
|
```
|
|
542
542
|
|
|
543
543
|
The engine is part of the image **name**; the tag is the bare version, so
|
|
@@ -550,7 +550,7 @@ repo's `adapters/postgres/`, `adapters/trino/` or `adapters/duckdb/` source
|
|
|
550
550
|
(see the table above) — registered under the
|
|
551
551
|
`continuo_engine.adapters` entry-point group (entry names `postgres` /
|
|
552
552
|
`trino` / `duckdb`). The runtime discovers it via `discover_adapter()` at run time, so a
|
|
553
|
-
single image serves every node in the
|
|
553
|
+
single image serves every node in the project and the release-time
|
|
554
554
|
validation Job for it. The executor injects the warehouse connection as
|
|
555
555
|
environment variables (engine-native, e.g.
|
|
556
556
|
`POSTGRES_HOST`/`POSTGRES_DB`/`POSTGRES_USER`) plus the node-selection
|
|
@@ -578,7 +578,7 @@ Both shapes end up running the same runtime and the same adapter version;
|
|
|
578
578
|
which one you pick only changes who controls the base OS layer underneath
|
|
579
579
|
them.
|
|
580
580
|
|
|
581
|
-
##
|
|
581
|
+
## Dependents check and view probe
|
|
582
582
|
|
|
583
583
|
Two validation ops read the warehouse and change nothing. They run through the
|
|
584
584
|
same runner image as the other validation ops (`VALIDATION_OP`), need no
|
|
@@ -589,32 +589,32 @@ a drop destroys the objects that read the table (`drop_semantics` `cascade`,
|
|
|
589
589
|
postgres) that takes every view, function and constraint built on the seed with
|
|
590
590
|
it, including objects continuo does not own. On an engine where those objects
|
|
591
591
|
survive and fail on their next read (`late_binding`, trino and duckdb) they
|
|
592
|
-
may go stale. `
|
|
592
|
+
may go stale. `dependents_check` lists what a reload would touch and compares it
|
|
593
593
|
with what the operator has allowed or acknowledged; `probe_views` tries named
|
|
594
594
|
views after a reload and says which no longer bind.
|
|
595
595
|
|
|
596
|
-
`
|
|
596
|
+
`dependents_check` runs in two places. `check` runs in the seed task's own pod just
|
|
597
597
|
before dbt and stops the reload with exit 1 when the check concludes it must.
|
|
598
598
|
`report` runs in the release's seed-build Job and only reports what a `check`
|
|
599
599
|
would conclude; it exits 0 whatever it finds.
|
|
600
600
|
|
|
601
|
-
### `
|
|
601
|
+
### `dependents_check` inputs
|
|
602
602
|
|
|
603
603
|
| Variable | Meaning |
|
|
604
604
|
|---|---|
|
|
605
|
-
| `
|
|
606
|
-
| `
|
|
605
|
+
| `DEPENDENTS_CHECK_MODE` | `check` or `report`. |
|
|
606
|
+
| `DEPENDENTS_CHECK_ENGINE_FAMILY` | `schema_bound` or `late_binding`, the family the release plan expects of the engine. |
|
|
607
607
|
| `PROD_SCHEMA`, `TABLE_NAME` | The seed's production relation. |
|
|
608
|
-
| `
|
|
608
|
+
| `DEPENDENTS_CHECK_ALLOWED`, `DEPENDENTS_CHECK_ACKNOWLEDGED` | JSON arrays of `"<schema>.<name>"`, default `[]`. An object is allowed when `<schema>.<name>`, in lower case, is in either list (entries are trimmed and lower-cased). |
|
|
609
609
|
| `NODE_ID` | Optional; the block's `unique_id`. Default `<PROD_SCHEMA>.<TABLE_NAME>`. |
|
|
610
610
|
|
|
611
611
|
The adapter's own variables (`POSTGRES_*`, `TRINO_*`, ...) are needed as for any
|
|
612
612
|
other op. An adapter's family is `schema_bound` when its `drop_semantics` is
|
|
613
613
|
`cascade`, and `late_binding` when it is `late_binding`.
|
|
614
614
|
|
|
615
|
-
### `
|
|
615
|
+
### `dependents_check` block
|
|
616
616
|
|
|
617
|
-
After the standard keys (and `reason` when one applies): `op` (`
|
|
617
|
+
After the standard keys (and `reason` when one applies): `op` (`dependents_check`),
|
|
618
618
|
`mode`, `checked` (the warehouse was asked and its listing came back), `engine_family` (as given),
|
|
619
619
|
`drop_semantics` (the adapter's), `completeness` (`exact`, `best_effort`, or
|
|
620
620
|
`none` when nothing was listed) and `dependents`, a list of
|
|
@@ -627,7 +627,7 @@ After the standard keys (and `reason` when one applies): `op` (`seed_preflight`)
|
|
|
627
627
|
| Situation | `reason` | `check` | `report` |
|
|
628
628
|
|---|---|---|---|
|
|
629
629
|
| a missing or malformed input, no adapter, missing adapter env | none | exit 2 | exit 2 |
|
|
630
|
-
| the adapter's family differs from `
|
|
630
|
+
| the adapter's family differs from `DEPENDENTS_CHECK_ENGINE_FAMILY`, or it declares none | `engine_mismatch` | exit 1 | exit 0 |
|
|
631
631
|
| the adapter cannot list dependents, `schema_bound` | `unowned_dependents` | exit 1 | exit 0 |
|
|
632
632
|
| the adapter cannot list dependents, `late_binding` | none | exit 0 | exit 0 |
|
|
633
633
|
| the connection fails | `warehouse_unreachable` | exit 1 | exit 0 |
|
|
@@ -58,7 +58,7 @@ class LakeGateway(ABC):
|
|
|
58
58
|
"""Create *table* empty, shaped by the SELECT (no terminator, single read)."""
|
|
59
59
|
|
|
60
60
|
@abstractmethod
|
|
61
|
-
def
|
|
61
|
+
def create_empty_like(self, target: QualifiedTable, source: QualifiedTable) -> None:
|
|
62
62
|
"""Create *target* empty with *source*'s shape."""
|
|
63
63
|
|
|
64
64
|
@abstractmethod
|
|
@@ -97,13 +97,13 @@ class LakeWarehouse(WarehouseAdapter, AppendCapable, UpsertCapable):
|
|
|
97
97
|
self._gateway.drop_table_if_exists(target)
|
|
98
98
|
self._gateway.create_empty_table_as(target, inner)
|
|
99
99
|
|
|
100
|
-
def
|
|
100
|
+
def build_empty_from_prod(self, candidate_schema: str, prod_schema: str, table: str) -> None:
|
|
101
101
|
"""Create ``candidate_schema.table`` empty, shaped like ``prod_schema.table``."""
|
|
102
102
|
target = QualifiedTable.of(candidate_schema, table)
|
|
103
103
|
source = QualifiedTable.of(prod_schema, table)
|
|
104
104
|
with self._gateway.transaction():
|
|
105
105
|
self._gateway.drop_table_if_exists(target)
|
|
106
|
-
self._gateway.
|
|
106
|
+
self._gateway.create_empty_like(target, source)
|
|
107
107
|
|
|
108
108
|
def build_empty_from_columns(
|
|
109
109
|
self, schema: str, table: str, columns: list[dict], config: dict
|
|
@@ -198,7 +198,7 @@ class DdlRenderer:
|
|
|
198
198
|
# swallowing the closing parenthesis.
|
|
199
199
|
return f"CREATE TABLE {self.table_ref(table)} AS (\n{select_sql}\n) WITH NO DATA"
|
|
200
200
|
|
|
201
|
-
def
|
|
201
|
+
def create_empty_like(self, target: QualifiedTable, source: QualifiedTable) -> str:
|
|
202
202
|
return (
|
|
203
203
|
f"CREATE TABLE {self.table_ref(target)} AS "
|
|
204
204
|
f"SELECT * FROM {self.table_ref(source)} WHERE false"
|
|
@@ -294,8 +294,8 @@ class DuckLakeSession(LakeGateway):
|
|
|
294
294
|
def create_empty_table_as(self, table: QualifiedTable, select_sql: str) -> None:
|
|
295
295
|
self._run(self._renderer.create_empty_table_as(table, select_sql))
|
|
296
296
|
|
|
297
|
-
def
|
|
298
|
-
self._run(self._renderer.
|
|
297
|
+
def create_empty_like(self, target: QualifiedTable, source: QualifiedTable) -> None:
|
|
298
|
+
self._run(self._renderer.create_empty_like(target, source))
|
|
299
299
|
|
|
300
300
|
def apply_layout(self, table: QualifiedTable, layout: TableLayout) -> None:
|
|
301
301
|
if layout.partition_keys:
|
{continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/adapters/duckdb/pyproject.toml
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
[project]
|
|
2
|
-
version = "0.
|
|
2
|
+
version = "0.4.0"
|
|
3
3
|
name = "continuo-duckdb-adapter"
|
|
4
4
|
description = "DuckDB (DuckLake) warehouse adapter for Continuo: validation and python-node runtime."
|
|
5
5
|
authors = [{ name = "Simone Carolini" }]
|
|
@@ -10,7 +10,7 @@ dependencies = [
|
|
|
10
10
|
# Pinned exactly for the same reason as the postgres adapter: the
|
|
11
11
|
# [tool.uv.sources] redirect below is uv-only and never reaches built
|
|
12
12
|
# metadata, and this adapter subclasses the contract's port directly.
|
|
13
|
-
"continuo-engine-contract==0.
|
|
13
|
+
"continuo-engine-contract==0.11.0",
|
|
14
14
|
"duckdb==1.5.6",
|
|
15
15
|
"pyarrow==26.0.0",
|
|
16
16
|
]
|
{continuo_python_runtime-0.14.0 → continuo_python_runtime-0.15.0}/adapters/duckdb/tests/conftest.py
RENAMED
|
@@ -81,8 +81,8 @@ class FakeLakeGateway(LakeGateway):
|
|
|
81
81
|
def create_empty_table_as(self, table, select_sql):
|
|
82
82
|
self._do("create_empty_table_as", table, select_sql)
|
|
83
83
|
|
|
84
|
-
def
|
|
85
|
-
self._do("
|
|
84
|
+
def create_empty_like(self, target, source):
|
|
85
|
+
self._do("create_empty_like", target, source)
|
|
86
86
|
|
|
87
87
|
def apply_layout(self, table, layout):
|
|
88
88
|
self._do("apply_layout", table, layout)
|
|
@@ -57,12 +57,12 @@ def test_build_empty_from_sql_rolls_back_on_failure(warehouse, gateway):
|
|
|
57
57
|
assert gateway.names()[-1] == "rollback"
|
|
58
58
|
|
|
59
59
|
|
|
60
|
-
def
|
|
61
|
-
warehouse.
|
|
60
|
+
def test_build_empty_from_prod_rebuilds_in_one_transaction(warehouse, gateway):
|
|
61
|
+
warehouse.build_empty_from_prod("cand", "prod", "t")
|
|
62
62
|
assert gateway.calls == [
|
|
63
63
|
("begin",),
|
|
64
64
|
("drop_table_if_exists", QualifiedTable.of("cand", "t")),
|
|
65
|
-
("
|
|
65
|
+
("create_empty_like", QualifiedTable.of("cand", "t"), QualifiedTable.of("prod", "t")),
|
|
66
66
|
("commit",),
|
|
67
67
|
]
|
|
68
68
|
|
|
@@ -144,7 +144,7 @@ def test_build_empty_from_sql_still_accepts_single_reads(warehouse, gateway, sql
|
|
|
144
144
|
assert ("create_empty_table_as", T, inner) in gateway.calls
|
|
145
145
|
|
|
146
146
|
|
|
147
|
-
def
|
|
147
|
+
def test_build_empty_from_prod_validates_both_tables_before_any_call(warehouse, gateway):
|
|
148
148
|
with pytest.raises(ValueError):
|
|
149
|
-
warehouse.
|
|
149
|
+
warehouse.build_empty_from_prod("cand", "", "t")
|
|
150
150
|
assert gateway.calls == []
|