54 lines
2.4 KiB
Python
54 lines
2.4 KiB
Python
"""
|
|
Honest documentation of two of the seven requested failure-test categories
|
|
that are NOT implemented as real fault-injection tests in this pass, and
|
|
why — matching this repo's established convention of stating a gap in code
|
|
(BEFORE_STATE.md, docs/P0_DATASET_QUALITY_FLOW.md) rather than silently
|
|
dropping it or faking coverage. These are `pytest.skip` markers, not
|
|
disguised passes, so they show up in the test report as explicitly
|
|
unaddressed rather than vanishing from view.
|
|
|
|
* CDC-interruption: this repo has NO change-data-capture pipeline
|
|
anywhere — no Debezium/WAL-slot consumer, no CDC producer, no
|
|
replication-slot code, confirmed by a full-repo search
|
|
(`grep -rn "debezium\\|wal_level\\|replication.slot\\|cdc" services/ src/`
|
|
finds nothing on this topic). A "CDC-interruption" fault-injection
|
|
test needs a CDC stream to interrupt; fabricating one to have
|
|
something to test would be building fictional infrastructure and
|
|
testing the fiction, not this codebase — the exact failure mode this
|
|
project's CLAUDE.md and BEFORE_STATE.md explicitly warn against
|
|
("never fabricate").
|
|
* True backfill idempotency (dedup against a delivery store): the
|
|
pipeline has no persistence layer at all (see workers/pipeline.py —
|
|
every run_job() call recomputes from scratch, nothing is written to a
|
|
database). "Backfill doesn't create duplicate deliveries" requires a
|
|
delivery store to check duplicates against, which doesn't exist.
|
|
test_pipeline_fault_injection.py::TestBackfillReplay covers the
|
|
narrower, real property that DOES hold today (replaying an identical
|
|
order config is compute-idempotent — byte-identical output, no drift)
|
|
and documents this exact distinction inline.
|
|
"""
|
|
import pytest
|
|
|
|
|
|
@pytest.mark.skip(
|
|
reason=(
|
|
"No CDC pipeline exists anywhere in this repo (verified by full-repo "
|
|
"search) — nothing to interrupt without inventing fictional "
|
|
"infrastructure. See this file's module docstring."
|
|
)
|
|
)
|
|
def test_cdc_interruption_not_implementable_against_real_code():
|
|
pass
|
|
|
|
|
|
@pytest.mark.skip(
|
|
reason=(
|
|
"No delivery-store persistence layer exists to dedupe a backfill "
|
|
"against — the compute-idempotency property that DOES exist is "
|
|
"covered for real in test_pipeline_fault_injection.py::"
|
|
"TestBackfillReplay. See this file's module docstring."
|
|
)
|
|
)
|
|
def test_true_backfill_idempotency_not_implementable_against_real_code():
|
|
pass
|