Repository navigation
test(unit): capture INFO logs in async recovery privacy assertions (#24546) - #24633
TassioSales wants to merge 1 commit into
Conversation
…asedHardware#24546) Set caplog level to INFO before executing the six async cases in test_ordinary_serving_async_preserves_receipts_and_privacy to ensure that any potential INFO-level log leaks of the synthetic private sentinel are strictly caught and asserted against. Closes BasedHardware#24546 Signed-off-by: TassioSales <[email protected]>
|
Verified — this does exactly what #24546 asked, and the fix has real teeth. What I checked in
Validation at head 82f9660 (ephemeral worktree): full file passes 30/30. As a control I temporarily injected a Security: strengthens sentinel-leak detection in the async recovery path; no behavior change elsewhere. One remaining item: the only check on this head so far is the advisory AI reviewer — let the backend unit lane run (or do the targeted backend/test.sh pass #24546 mentions) before merge. Otherwise ready from my side; leaving the merge call to a human maintainer. by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
|
@nik2208 @josancamon19 All verification steps from @Git-on-my-level are complete and confirmed passing with 5/5 confidence. Ready for merge whenever you have a moment! |
Description
This PR addresses issue #24546 by explicitly raising the caplog capture level to logging.INFO prior to executing the six ordinary async recovery cases in �ackend/tests/unit/test_batch_worker_vad_recovery.py::test_ordinary_serving_async_preserves_receipts_and_privacy.
By default, pytest captures logs at WARNING level, which would allow potential INFO-level leaks of the SYNTHETIC_PRIVATE_SENTINEL to bypass verification. With caplog.set_level(logging.INFO), any INFO-level log leak is strictly caught and asserted against.
Preserves all existing provider receipts, privacy revocation, retained worker VAD, and no-repeat-spend assertions.
Closes #24546
Signed-off-by: TassioSales [email protected]