continuo-python-runtime 0.13.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.13.0 → continuo_python_runtime-0.15.0}/.github/workflows/publish-pypi.yml +2 -2
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/CHANGELOG.md +141 -2
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/PKG-INFO +110 -27
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/README.md +107 -24
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/adapters/duckdb/continuo_duckdb_adapter/application/ports.py +1 -1
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/adapters/duckdb/continuo_duckdb_adapter/application/warehouse.py +2 -2
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/adapters/duckdb/continuo_duckdb_adapter/infrastructure/ddl.py +1 -1
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/adapters/duckdb/continuo_duckdb_adapter/infrastructure/session.py +2 -2
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/adapters/duckdb/pyproject.toml +2 -2
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/adapters/duckdb/tests/conftest.py +2 -2
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/adapters/duckdb/tests/test_adapter_duckdb_validation.py +5 -5
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/adapters/duckdb/tests/test_infra_duckdb_settings_ddl.py +1 -1
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/adapters/duckdb/tests/test_integration_duckdb_entrypoint.py +7 -7
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/adapters/duckdb/tests/test_integration_duckdb_validation.py +2 -2
- continuo_python_runtime-0.13.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.13.0 → continuo_python_runtime-0.15.0}/adapters/postgres/README.md +1 -1
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/adapters/postgres/continuo_postgres_adapter/adapter.py +5 -5
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/adapters/postgres/pyproject.toml +2 -2
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/adapters/postgres/tests/test_adapter_postgres_validation.py +1 -1
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/adapters/postgres/tests/test_integration_postgres_entrypoint.py +9 -9
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/adapters/postgres/tests/test_integration_postgres_validation.py +3 -3
- continuo_python_runtime-0.13.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.13.0 → continuo_python_runtime-0.15.0}/adapters/trino/README.md +1 -1
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/adapters/trino/continuo_trino_adapter/adapter.py +4 -4
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/adapters/trino/pyproject.toml +2 -2
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/adapters/trino/tests/test_adapter_trino_validation.py +1 -1
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/adapters/trino/tests/test_integration_trino_entrypoint.py +8 -8
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/adapters/trino/tests/test_integration_trino_validation.py +3 -3
- continuo_python_runtime-0.13.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.13.0 → continuo_python_runtime-0.15.0}/continuo_python_runtime/cli.py +83 -11
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/continuo_python_runtime/contract/loader.py +43 -12
- continuo_python_runtime-0.15.0/continuo_python_runtime/contract/ontology_check.py +89 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/continuo_python_runtime/contract/pack.py +9 -9
- {continuo_python_runtime-0.13.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.13.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.13.0 → continuo_python_runtime-0.15.0}/contract/README.md +1 -1
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/contract/continuo_engine_contract/port.py +2 -2
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/contract/pyproject.toml +1 -1
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/contract/tests/test_conformance_suite.py +1 -1
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/contract/tests/test_port.py +6 -6
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/docs/boundary-contract.md +84 -28
- 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.13.0 → continuo_python_runtime-0.15.0}/pyproject.toml +3 -3
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/template/.github/workflows/release.yml +12 -12
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/template/Dockerfile +1 -1
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/template/README.md +11 -11
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/template/contracts/example.odcs.yaml +1 -1
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/tests/conftest.py +46 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/tests/contract/test_loader.py +133 -2
- continuo_python_runtime-0.15.0/tests/contract/test_ontology_check.py +191 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/tests/contract/test_pack.py +30 -11
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/tests/contract/test_read_tables.py +1 -1
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/tests/fixtures/demo/service-py/old/py_daily_kpis.yml +2 -2
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/tests/odcs_builder.py +28 -15
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/tests/test_cli.py +221 -23
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/tests/test_contract_pin_consistency.py +3 -3
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/tests/test_harness.py +13 -1
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/tests/test_harness_write_modes.py +2 -2
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/tests/test_image_smoke_validation.py +1 -1
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/tests/test_packages.py +2 -2
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/tests/test_template.py +18 -18
- 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.13.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.13.0 → continuo_python_runtime-0.15.0}/uv.lock +9 -9
- continuo_python_runtime-0.13.0/continuo_python_runtime/validation/preflight.py +0 -410
- continuo_python_runtime-0.13.0/image-requirements-duckdb.txt +0 -3
- continuo_python_runtime-0.13.0/image-requirements-postgres.txt +0 -3
- continuo_python_runtime-0.13.0/image-requirements-trino.txt +0 -3
- continuo_python_runtime-0.13.0/tests/test_validation_preflight.py +0 -524
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/.claude/agents/ddd-architecture-auditor.md +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/.dockerignore +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/.github/CODEOWNERS +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/.github/ISSUE_TEMPLATE/bug_report.yml +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/.github/ISSUE_TEMPLATE/config.yml +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/.github/ISSUE_TEMPLATE/feature_request.yml +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/.github/dependabot.yml +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/.github/workflows/ci.yml +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/.github/workflows/dco.yml +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/.github/workflows/image-build.yml +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/.github/workflows/image-smoke.yml +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/.github/workflows/images.yml +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/.github/workflows/release.yml +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/.github/workflows/security.yml +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/.github/workflows/verify-packages.yml +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/.gitignore +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/.gitleaks.toml +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/.python-version +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/CLAUDE.md +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/CODE_OF_CONDUCT.md +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/CONTRIBUTING.md +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/DCO +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/Dockerfile.duckdb +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/Dockerfile.postgres +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/Dockerfile.trino +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/LICENSE +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/NOTICE +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/SECURITY.md +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/adapters/duckdb/README.md +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/adapters/duckdb/continuo_duckdb_adapter/__init__.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/adapters/duckdb/continuo_duckdb_adapter/adapter.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/adapters/duckdb/continuo_duckdb_adapter/application/__init__.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/adapters/duckdb/continuo_duckdb_adapter/domain/__init__.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/adapters/duckdb/continuo_duckdb_adapter/domain/columns.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/adapters/duckdb/continuo_duckdb_adapter/domain/identifiers.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/adapters/duckdb/continuo_duckdb_adapter/domain/layout.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/adapters/duckdb/continuo_duckdb_adapter/infrastructure/__init__.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/adapters/duckdb/continuo_duckdb_adapter/infrastructure/extensions.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/adapters/duckdb/continuo_duckdb_adapter/infrastructure/passfile.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/adapters/duckdb/continuo_duckdb_adapter/infrastructure/settings.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/adapters/duckdb/tests/__init__.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/adapters/duckdb/tests/test_adapter_duckdb_proxy.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/adapters/duckdb/tests/test_adapter_duckdb_runtime.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/adapters/duckdb/tests/test_adapter_duckdb_wiring.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/adapters/duckdb/tests/test_domain_duckdb_columns.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/adapters/duckdb/tests/test_domain_duckdb_identifiers.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/adapters/duckdb/tests/test_domain_duckdb_layout.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/adapters/duckdb/tests/test_infra_duckdb_session.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/adapters/duckdb/tests/test_integration_duckdb_conformance.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/adapters/duckdb/tests/test_integration_duckdb_layout.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/adapters/duckdb/tests/test_integration_duckdb_nullability_probe.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/adapters/duckdb/tests/test_integration_duckdb_runtime.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/adapters/duckdb/tests/test_integration_duckdb_stack.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/adapters/postgres/continuo_postgres_adapter/__init__.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/adapters/postgres/tests/__init__.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/adapters/postgres/tests/conftest.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/adapters/postgres/tests/test_adapter_postgres_connect.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/adapters/postgres/tests/test_adapter_runtime_postgres.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/adapters/postgres/tests/test_integration_postgres_conformance.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/adapters/postgres/tests/test_integration_postgres_dependents.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/adapters/postgres/tests/test_integration_runtime_postgres.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/adapters/trino/continuo_trino_adapter/__init__.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/adapters/trino/tests/__init__.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/adapters/trino/tests/test_adapter_runtime_trino.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/adapters/trino/tests/test_adapter_trino_connect.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/adapters/trino/tests/test_adapter_trino_dependents.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/adapters/trino/tests/test_adapter_trino_writes.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/adapters/trino/tests/test_integration_runtime_trino.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/adapters/trino/tests/test_integration_trino_conformance.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/adapters/trino/tests/test_integration_trino_merge_probe.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/conftest.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/continuo_python_runtime/__init__.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/continuo_python_runtime/closure.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/continuo_python_runtime/conform.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/continuo_python_runtime/content_check.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/continuo_python_runtime/context.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/continuo_python_runtime/contract/__init__.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/continuo_python_runtime/contract/kinds.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/continuo_python_runtime/contract/model.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/continuo_python_runtime/contract/paths.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/continuo_python_runtime/contract/read_tables.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/continuo_python_runtime/csv_loader.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/continuo_python_runtime/csv_readers/__init__.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/continuo_python_runtime/csv_readers/https.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/continuo_python_runtime/csv_readers/s3.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/continuo_python_runtime/csv_source.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/continuo_python_runtime/errors.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/continuo_python_runtime/harness.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/continuo_python_runtime/hash_inputs.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/continuo_python_runtime/hashing.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/continuo_python_runtime/lint.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/continuo_python_runtime/shape.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/continuo_python_runtime/types.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/continuo_python_runtime/validation/__init__.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/continuo_python_runtime/validation/s3.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/contract/LICENSE +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/contract/NOTICE +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/contract/continuo_engine_contract/__init__.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/contract/continuo_engine_contract/config.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/contract/continuo_engine_contract/keys.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/contract/continuo_engine_contract/result.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/contract/continuo_engine_contract/sql.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/contract/continuo_engine_contract/testing/__init__.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/contract/continuo_engine_contract/testing/conformance.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/contract/continuo_engine_contract/types.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/contract/tests/__init__.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/contract/tests/test_config.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/contract/tests/test_contract_keys.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/contract/tests/test_contract_packaging.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/contract/tests/test_contract_types.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/contract/tests/test_result.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/contract/tests/test_sql.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/contract/tests/test_startup_conformance.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/scripts/apply_rehearsal_version.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/scripts/bake_duckdb_extensions.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/scripts/check_version_bumps.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/scripts/install_image_pins.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/scripts/security-scan.sh +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/scripts/verify_installed_packages.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/template/Dockerfile.pip +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/template/contracts/example_csv.odcs.yaml +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/template/requirements.lock +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/template/scripts/example.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/tests/__init__.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/tests/contract/__init__.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/tests/contract/test_kinds.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/tests/contract/test_model.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/tests/contract/test_write_modes.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/tests/fixtures/demo/service-py/contracts/demo_orders_csv.odcs.yaml +0 -0
- {continuo_python_runtime-0.13.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.13.0 → continuo_python_runtime-0.15.0}/tests/fixtures/demo/service-py/contracts/py_daily_kpis.odcs.yaml +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/tests/fixtures/demo/service-py/old/demo_orders_csv.yml +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/tests/fixtures/demo/service-py/old/fx_eur_usd_rates.yml +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/tests/fixtures/write_modes/append_node.odcs.yaml +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/tests/fixtures/write_modes/assets_node.odcs.yaml +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/tests/fixtures/write_modes/replace_node.odcs.yaml +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/tests/fixtures/write_modes/upsert_node.odcs.yaml +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/tests/smoke/duckdb-stack/docker-compose.yml +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/tests/smoke/node_smoke/contracts/smoke.odcs.yaml +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/tests/smoke/node_smoke/scripts/smoke.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/tests/smoke/postgres-stack/docker-compose.yml +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/tests/smoke/trino-stack/catalog/iceberg.properties +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/tests/smoke/trino-stack/docker-compose.yml +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/tests/test_adapter_naming.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/tests/test_check_version_bumps_tags.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/tests/test_ci_test_coverage.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/tests/test_closure.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/tests/test_conform.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/tests/test_context.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/tests/test_contract_loader.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/tests/test_csv_loader.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/tests/test_csv_readers_https.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/tests/test_csv_readers_integration.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/tests/test_csv_source.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/tests/test_entrypoint_shims.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/tests/test_errors.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/tests/test_harness_content_check.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/tests/test_hashing.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/tests/test_hashing_vectors.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/tests/test_image_requirements_sync.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/tests/test_install_image_pins.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/tests/test_kind_registries.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/tests/test_lint.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/tests/test_no_legacy_names.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/tests/test_package.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/tests/test_projection_vectors.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/tests/test_python_version_consistency.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/tests/test_rehearsal_version.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/tests/test_release_pipeline_structure.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/tests/test_shape.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/tests/test_types.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/tests/test_validation_s3.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/tests/test_verify_installed_packages.py +0 -0
- {continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/tests/test_write_contract_fixture.py +0 -0
{continuo_python_runtime-0.13.0 → continuo_python_runtime-0.15.0}/.github/workflows/publish-pypi.yml
RENAMED
|
@@ -250,7 +250,7 @@ jobs:
|
|
|
250
250
|
# Pinned to a commit SHA. release/v1 is a moving branch, and this job
|
|
251
251
|
# holds id-token: write for PyPI Trusted Publishing — a compromised
|
|
252
252
|
# revision could mint a token and publish under this project's name.
|
|
253
|
-
uses: pypa/gh-action-pypi-publish@
|
|
253
|
+
uses: pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086 # release/v1
|
|
254
254
|
with:
|
|
255
255
|
repository-url: https://test.pypi.org/legacy/
|
|
256
256
|
packages-dir: dist
|
|
@@ -263,7 +263,7 @@ jobs:
|
|
|
263
263
|
# guard in `prepare` is what catches that case.
|
|
264
264
|
- name: Publish to PyPI
|
|
265
265
|
if: needs.prepare.outputs.mode == 'real'
|
|
266
|
-
uses: pypa/gh-action-pypi-publish@
|
|
266
|
+
uses: pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086 # release/v1
|
|
267
267
|
with:
|
|
268
268
|
packages-dir: dist
|
|
269
269
|
skip-existing: true
|
|
@@ -5,6 +5,145 @@ 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
|
+
|
|
80
|
+
## [0.14.0] - 2026-11-21
|
|
81
|
+
|
|
82
|
+
**TL;DR**
|
|
83
|
+
|
|
84
|
+
- The runtime pins continuo-contracts 0.4.1. A Python contract may carry the
|
|
85
|
+
ontology's binding properties (`entity`, `grain`, `fixed` and `filter` on the
|
|
86
|
+
table, `property`, `local` and `aggregate` on a column). A binding of the
|
|
87
|
+
wrong shape is refused, naming the file.
|
|
88
|
+
- `continuo-runtime validate --service <name> --ontology <file>` checks a
|
|
89
|
+
service's contracts against the company's ontology file with the rules a
|
|
90
|
+
release runs over one service, and refuses an ontology file that the
|
|
91
|
+
library's own ontology rule rejects. `--service` alone refuses a contract
|
|
92
|
+
that names another service.
|
|
93
|
+
- A node's hashes are the same with or without bindings. No node changes its
|
|
94
|
+
`content_hash` by moving to 0.14.0.
|
|
95
|
+
|
|
96
|
+
**Upgrade**
|
|
97
|
+
|
|
98
|
+
1. Nothing is required. To move a service, build its image `FROM` the `v0.14.0`
|
|
99
|
+
engine image; CI installs `continuo-python-runtime==0.14.0` from the `FROM`
|
|
100
|
+
line.
|
|
101
|
+
2. Release a service on the `v0.14.0` image only to a continuo install that
|
|
102
|
+
runs continuo-contracts 0.4.1 or later. `pack` records the library version
|
|
103
|
+
in the bundle, and continuo refuses a bundle written by a newer library than
|
|
104
|
+
its own. continuo accepts it from the first chart release whose CHANGELOG
|
|
105
|
+
names continuo-contracts 0.4.1.
|
|
106
|
+
3. To check bindings in CI, see "Checking against the ontology" in the README.
|
|
107
|
+
A company that does not use the ontology changes nothing.
|
|
108
|
+
|
|
109
|
+
Versions: runtime 0.14.0 (pins continuo-contracts 0.4.1), engine contract 0.10.0, postgres adapter 0.4.0, trino adapter 0.5.0, duckdb adapter 0.3.0.
|
|
110
|
+
|
|
111
|
+
### Added
|
|
112
|
+
|
|
113
|
+
- `continuo-runtime validate` takes `--service <name>` and `--ontology <file>`.
|
|
114
|
+
With `--service`, a contract whose `service` property names another service is
|
|
115
|
+
refused, as `pack` refuses it. `--ontology` needs `--service`: it checks every
|
|
116
|
+
contract of the folder against the company's ontology file with the rules a
|
|
117
|
+
release runs over one service. Each finding is logged as
|
|
118
|
+
`<severity> [<rule>] <subject>: <message>`, at the level of its severity,
|
|
119
|
+
followed by one INFO line that counts them, and the command exits 1 when any
|
|
120
|
+
finding is an error. A service the ontology does not declare gets one
|
|
121
|
+
information line and one warning for each contract that writes bindings, and
|
|
122
|
+
exits 0. An ontology file that cannot be read, is not an ontology, or is one
|
|
123
|
+
the library's `ontology` rule refuses (a thing owned by a domain the file does
|
|
124
|
+
not declare, for example) gives one error line and exit 1, whatever the
|
|
125
|
+
service; the line of a refused file points to
|
|
126
|
+
`continuo-contracts ontology check`. Without the two flags `validate` is
|
|
127
|
+
unchanged, and it prints nothing to stdout.
|
|
128
|
+
|
|
129
|
+
### Changed
|
|
130
|
+
|
|
131
|
+
- The runtime pins `continuo-contracts==0.4.1`. A Python contract may now carry
|
|
132
|
+
the ontology's binding properties: `entity`, `grain`, `fixed` and `filter` on
|
|
133
|
+
the table, `property`, `local` and `aggregate` on a column. The loader,
|
|
134
|
+
`validate`, `pack` and the harness accept them, `pack` writes them into the
|
|
135
|
+
bundle as the file has them, and a node's hashes are the same with or without
|
|
136
|
+
them. A binding whose value has the wrong shape is refused with a `value`
|
|
137
|
+
issue that names the file, by `validate`, `pack` and the harness at start,
|
|
138
|
+
whatever the flags say.
|
|
139
|
+
- The README's engine examples and the template's `Dockerfile` build on the
|
|
140
|
+
`v0.14.0` engine images, the first with `validate --service` and
|
|
141
|
+
`validate --ontology`. The README says how a team adds the ontology check to
|
|
142
|
+
its CI, with a copy of the company's ontology file kept in the team's own
|
|
143
|
+
repository; the boundary-contract guide lists the bindings a contract may
|
|
144
|
+
carry and points to the README for the check. The template's workflow is
|
|
145
|
+
unchanged: a company without an ontology adds nothing.
|
|
146
|
+
|
|
8
147
|
## [0.13.0] - 2026-11-16
|
|
9
148
|
|
|
10
149
|
**TL;DR**
|
|
@@ -29,8 +168,8 @@ follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
|
|
|
29
168
|
`continuo-runtime pack contracts/ --service <name> --repo-root . --image <pushed image> --out odcs-bundle.json`.
|
|
30
169
|
4. Upload `odcs-bundle.json` to
|
|
31
170
|
`s3://<bucket>/<service>/<release_id>/odcs-bundle.json` and post the release
|
|
32
|
-
with kind `python-odcs
|
|
33
|
-
|
|
171
|
+
with kind `python-odcs`. continuo accepts that kind from the first chart
|
|
172
|
+
release whose CHANGELOG names it.
|
|
34
173
|
|
|
35
174
|
Versions: runtime 0.13.0 (pins continuo-contracts 0.2.0), engine contract 0.10.0, postgres adapter 0.4.0, trino adapter 0.5.0, duckdb adapter 0.3.0.
|
|
36
175
|
|
|
@@ -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,8 +196,11 @@ 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`
|
|
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
|
+
- A contract may also bind its table and its columns to the company's ontology
|
|
203
|
+
(see "Checking against the ontology" below).
|
|
201
204
|
- The contract has exactly one schema object, `physicalType: table`. Its
|
|
202
205
|
`properties` are the table's columns, in order: each has a `name`, a
|
|
203
206
|
`physicalType` (`BIGINT`, `INTEGER` or `INT`, `DOUBLE PRECISION`,
|
|
@@ -236,6 +239,86 @@ The harness does not run these read checks again when a node starts, so a
|
|
|
236
239
|
read that passes here is not judged again under a different grammar in
|
|
237
240
|
production. See `docs/boundary-contract.md` §13.1.
|
|
238
241
|
|
|
242
|
+
### Checking against the ontology
|
|
243
|
+
|
|
244
|
+
A company that keeps an ontology file, the things its data is about and the
|
|
245
|
+
projects that own them, can have each contract bind its table and its columns
|
|
246
|
+
to it. The bindings are optional `continuo` properties: `entity`, `grain`,
|
|
247
|
+
`fixed` and `filter` on the schema object, and `property`, `local` and
|
|
248
|
+
`aggregate` on a column (`docs/boundary-contract.md` gives their values):
|
|
249
|
+
|
|
250
|
+
```yaml
|
|
251
|
+
schema:
|
|
252
|
+
- name: example
|
|
253
|
+
physicalType: table
|
|
254
|
+
customProperties:
|
|
255
|
+
- {vendor: continuo, property: entity, value: Order}
|
|
256
|
+
properties:
|
|
257
|
+
- name: order_id
|
|
258
|
+
physicalType: INTEGER
|
|
259
|
+
required: true
|
|
260
|
+
customProperties:
|
|
261
|
+
- {vendor: continuo, property: property, value: Order.order_id}
|
|
262
|
+
- name: note
|
|
263
|
+
physicalType: "VARCHAR(64)"
|
|
264
|
+
customProperties:
|
|
265
|
+
- {vendor: continuo, property: local, value: true}
|
|
266
|
+
```
|
|
267
|
+
|
|
268
|
+
If `Order` has a key part or a property named `order_id`, the check would bind
|
|
269
|
+
that column itself; the binding is written out for clarity.
|
|
270
|
+
|
|
271
|
+
A contract with bindings loads, validates, packs and runs like any other, and
|
|
272
|
+
its `content_hash` is the one it has without them. To check the bindings in your
|
|
273
|
+
CI, keep a copy of the company's ontology file in your own repository, for
|
|
274
|
+
example at `ontology/ontology.yaml`, and give `validate` the name of your
|
|
275
|
+
project and the path of that copy:
|
|
276
|
+
|
|
277
|
+
```bash
|
|
278
|
+
continuo-runtime validate contracts --project <name> --ontology ontology/ontology.yaml
|
|
279
|
+
```
|
|
280
|
+
|
|
281
|
+
Copy the file from the company's ontology repository, never from continuo, and
|
|
282
|
+
keep it outside `contracts/`, where `validate` refuses any other YAML file. The
|
|
283
|
+
copy is yours to keep current: when the ontology changes, you update it. A copy
|
|
284
|
+
that is behind the ontology can pass here and still be refused by the release,
|
|
285
|
+
which checks against the ontology the install runs. The library's dbt check,
|
|
286
|
+
`continuo-contracts dbt check`, takes the same file with `--ontology`.
|
|
287
|
+
|
|
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
|
+
`quality` and `privacy`. The rules that read the whole estate (`access`,
|
|
293
|
+
`order` and `drift`) cannot run on one project's contracts and are not run
|
|
294
|
+
here. `validate` logs, on stderr and at the level of its severity (ERROR,
|
|
295
|
+
WARNING or INFO), one line for each finding,
|
|
296
|
+
`<severity> [<rule>] <subject>: <message>`, then one INFO line that counts them,
|
|
297
|
+
`<e> error(s), <w> warning(s), <i> info: <name>`. It exits 1 when any finding is
|
|
298
|
+
an error and 0 otherwise, and it prints nothing to stdout.
|
|
299
|
+
|
|
300
|
+
- When the ontology declares the project, each contract names exactly one of
|
|
301
|
+
`entity` or `grain`, so a contract that names neither, or both, is an error.
|
|
302
|
+
A column that carries no binding is a warning, unless its name is a key part
|
|
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 project, none of its contracts is
|
|
305
|
+
checked: `validate` logs one INFO line, `not declared in the ontology: none
|
|
306
|
+
of this project's contracts is checked`, and one WARNING for each contract
|
|
307
|
+
that writes bindings, and exits 0.
|
|
308
|
+
- A file that cannot be read, is not UTF-8 text or is not an ontology is one
|
|
309
|
+
ERROR line, `<file>: <reason>`, and exit 1. The reason of an invalid
|
|
310
|
+
ontology is the library's, with the path to the first fault.
|
|
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 project of a domain it
|
|
313
|
+
does not declare, a personal property no access rule names) is refused the
|
|
314
|
+
same way, whatever the project, and no contract is checked against it: one
|
|
315
|
+
ERROR line, `<file>: the ontology file has <n> error(s): run
|
|
316
|
+
continuo-contracts ontology check <file>`, and exit 1. That command lists the
|
|
317
|
+
errors. Findings of that rule that are not errors do not stop the check.
|
|
318
|
+
|
|
319
|
+
A company without an ontology adds nothing: without the two flags `validate`
|
|
320
|
+
runs the checks above and no others.
|
|
321
|
+
|
|
239
322
|
## Node kinds
|
|
240
323
|
|
|
241
324
|
The `kind` property (a `customProperties` item, not the contract's root
|
|
@@ -471,11 +554,11 @@ A domain repo picks its warehouse engine by which base image it builds
|
|
|
471
554
|
`FROM`:
|
|
472
555
|
|
|
473
556
|
```dockerfile
|
|
474
|
-
FROM ghcr.io/carolsimone/continuo-python-runtime-postgres:v0.
|
|
557
|
+
FROM ghcr.io/carolsimone/continuo-python-runtime-postgres:v0.15.0
|
|
475
558
|
# or
|
|
476
|
-
FROM ghcr.io/carolsimone/continuo-python-runtime-trino:v0.
|
|
559
|
+
FROM ghcr.io/carolsimone/continuo-python-runtime-trino:v0.15.0
|
|
477
560
|
# or
|
|
478
|
-
FROM ghcr.io/carolsimone/continuo-python-runtime-duckdb:v0.
|
|
561
|
+
FROM ghcr.io/carolsimone/continuo-python-runtime-duckdb:v0.15.0
|
|
479
562
|
```
|
|
480
563
|
|
|
481
564
|
The engine is part of the image **name**; the tag is the bare version, so
|
|
@@ -488,7 +571,7 @@ repo's `adapters/postgres/`, `adapters/trino/` or `adapters/duckdb/` source
|
|
|
488
571
|
(see the table above) — registered under the
|
|
489
572
|
`continuo_engine.adapters` entry-point group (entry names `postgres` /
|
|
490
573
|
`trino` / `duckdb`). The runtime discovers it via `discover_adapter()` at run time, so a
|
|
491
|
-
single image serves every node in the
|
|
574
|
+
single image serves every node in the project and the release-time
|
|
492
575
|
validation Job for it. The executor injects the warehouse connection as
|
|
493
576
|
environment variables (engine-native, e.g.
|
|
494
577
|
`POSTGRES_HOST`/`POSTGRES_DB`/`POSTGRES_USER`) plus the node-selection
|
|
@@ -516,7 +599,7 @@ Both shapes end up running the same runtime and the same adapter version;
|
|
|
516
599
|
which one you pick only changes who controls the base OS layer underneath
|
|
517
600
|
them.
|
|
518
601
|
|
|
519
|
-
##
|
|
602
|
+
## Dependents check and view probe
|
|
520
603
|
|
|
521
604
|
Two validation ops read the warehouse and change nothing. They run through the
|
|
522
605
|
same runner image as the other validation ops (`VALIDATION_OP`), need no
|
|
@@ -527,32 +610,32 @@ a drop destroys the objects that read the table (`drop_semantics` `cascade`,
|
|
|
527
610
|
postgres) that takes every view, function and constraint built on the seed with
|
|
528
611
|
it, including objects continuo does not own. On an engine where those objects
|
|
529
612
|
survive and fail on their next read (`late_binding`, trino and duckdb) they
|
|
530
|
-
may go stale. `
|
|
613
|
+
may go stale. `dependents_check` lists what a reload would touch and compares it
|
|
531
614
|
with what the operator has allowed or acknowledged; `probe_views` tries named
|
|
532
615
|
views after a reload and says which no longer bind.
|
|
533
616
|
|
|
534
|
-
`
|
|
617
|
+
`dependents_check` runs in two places. `check` runs in the seed task's own pod just
|
|
535
618
|
before dbt and stops the reload with exit 1 when the check concludes it must.
|
|
536
619
|
`report` runs in the release's seed-build Job and only reports what a `check`
|
|
537
620
|
would conclude; it exits 0 whatever it finds.
|
|
538
621
|
|
|
539
|
-
### `
|
|
622
|
+
### `dependents_check` inputs
|
|
540
623
|
|
|
541
624
|
| Variable | Meaning |
|
|
542
625
|
|---|---|
|
|
543
|
-
| `
|
|
544
|
-
| `
|
|
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. |
|
|
545
628
|
| `PROD_SCHEMA`, `TABLE_NAME` | The seed's production relation. |
|
|
546
|
-
| `
|
|
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). |
|
|
547
630
|
| `NODE_ID` | Optional; the block's `unique_id`. Default `<PROD_SCHEMA>.<TABLE_NAME>`. |
|
|
548
631
|
|
|
549
632
|
The adapter's own variables (`POSTGRES_*`, `TRINO_*`, ...) are needed as for any
|
|
550
633
|
other op. An adapter's family is `schema_bound` when its `drop_semantics` is
|
|
551
634
|
`cascade`, and `late_binding` when it is `late_binding`.
|
|
552
635
|
|
|
553
|
-
### `
|
|
636
|
+
### `dependents_check` block
|
|
554
637
|
|
|
555
|
-
After the standard keys (and `reason` when one applies): `op` (`
|
|
638
|
+
After the standard keys (and `reason` when one applies): `op` (`dependents_check`),
|
|
556
639
|
`mode`, `checked` (the warehouse was asked and its listing came back), `engine_family` (as given),
|
|
557
640
|
`drop_semantics` (the adapter's), `completeness` (`exact`, `best_effort`, or
|
|
558
641
|
`none` when nothing was listed) and `dependents`, a list of
|
|
@@ -565,7 +648,7 @@ After the standard keys (and `reason` when one applies): `op` (`seed_preflight`)
|
|
|
565
648
|
| Situation | `reason` | `check` | `report` |
|
|
566
649
|
|---|---|---|---|
|
|
567
650
|
| a missing or malformed input, no adapter, missing adapter env | none | exit 2 | exit 2 |
|
|
568
|
-
| 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 |
|
|
569
652
|
| the adapter cannot list dependents, `schema_bound` | `unowned_dependents` | exit 1 | exit 0 |
|
|
570
653
|
| the adapter cannot list dependents, `late_binding` | none | exit 0 | exit 0 |
|
|
571
654
|
| the connection fails | `warehouse_unreachable` | exit 1 | exit 0 |
|