Skip to content

test: capture INFO logs in async recovery privacy assertions #24546

Open

Description

@Git-on-my-level

The ordinary async recovery test in backend/tests/unit/test_batch_worker_vad_recovery.py asserts that its synthetic private exception sentinel is absent from caplog.text, but does not raise the capture level above pytest's default WARNING. An INFO-level log leak would escape that assertion.

The current exception logger in utils/batch_pipeline/recovery_disposition.py::stage_failure uses WARNING and bounded fields; the recovery INFO outcome logs also use bounded fields. No production log leak was identified. Luna classified this as a minor, nonblocking coverage improvement in round 2 of #24540 and returned SHIP at c572502.

Follow-up: set INFO capture before executing the six async cases and run the targeted file through backend/test.sh under omi-heavy. Keep provider receipts, privacy revocation, retained worker VAD and no-repeat-spend assertions. This issue deliberately avoids resetting the release-blocking PR's passing local validation and in-flight CI for a nonblocking coverage change.

Coordination owner: rollout lead after recov100b handoff. Track within card:recov100-recover-quarantine-audio-over under the transcription initiative. Requested next triage: 2026-11-04T12:00:00Z.
Evidence: /Volumes/Ephemeral/scratch/recov100b/report.md and review/review-24540-r2.md.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions