Skip to content

test(sync): fix receipts/wait deletion test after #26390 renamed the poll helper (SCA-4464) - #26483

Merged
Git-on-my-level merged 1 commit into
mainfrom
lane/sca4464-test-fix
Nov 27, 2026
Merged

Git-on-my-level merged 1 commit into
mainfrom
lane/sca4464-test-fix

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Nov 27, 2026 •

Copy link
Copy Markdown
Member

Summary

This fixes a semantic merge conflict that is failing Backend Unit Tests shard 2 on main. The fix is test only.

  • SCA-4464: Retire the sync poll-backoff experiment; keep legacy polling #26390 (SCA-4464) replaced routers.sync.sync_job_poll_response(status, uid, surface_open) with with_custody_hold_poll_hint(status).
  • The receipts/wait account-deletion test from SCA-4084 (test_sync_receipts_wait_account_deletion.py) still monkeypatched the old name. On main carrier d7d76281, 6 cases fail with AttributeError: module 'routers.sync' has no attribute 'sync_job_poll_response'.
  • The test now patches with_custody_hold_poll_hint with an identity function, the same stand-in it used before. No production code changes.

Verification (m1, backend/test.sh)

  • tests/unit/test_sync_receipts_wait_account_deletion.py: 6 passed.
  • tests/unit/test_terminal_relevance.py: 101 passed. It also failed in that shard and passes on current main.

Product invariants affected

none

🤖 Generated with Claude Code

View guided diff Turn on auto-fix

…letion test

#26390 (SCA-4464) replaced routers.sync.sync_job_poll_response with
with_custody_hold_poll_hint; the account-deletion receipt test added by
SCA-4084 still patched the old name, so main shard 2 failed with AttributeError.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-27T03:24:55.662969Z 08bfc10 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Git-on-my-level
Git-on-my-level merged commit 2af7b99 into main Nov 27, 2026
73 checks passed
@Git-on-my-level
Git-on-my-level deleted the lane/sca4464-test-fix branch November 27, 2026 04:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant