Repository navigation
test(reprocess): drive the explicit-app failure through the real processor - #24930
Merged
Git-on-my-level merged 1 commit intoNov 8, 2026
Conversation
…essor The failing-app test raised ExplicitAppSelectionFailedError from a stub of trigger_conversation_apps and never passed an app_id, so it never reached the processor's explicit-selection branch. The test now passes the selected app through the router, stubs only the external boundaries (app validation and catalog, the app model call, and the Firestore timezone read the prompt needs), and lets the processor's real explicit-selection check raise. The failure test asserts the HTTP error is chained to ExplicitAppSelectionFailedError. Both tests pass on the fixed code. On the pre-fix code the failure test fails (the row is left visible); the success test still passes.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
No issues found across 1 file
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
You’re at about 98% of the monthly reviewed-line limit. You may want to disable incremental reviews to conserve quota. Reviews will continue until that limit is exceeded. If you need help avoiding interruptions, please contact [email protected].
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by David · project thread
What changed and why
Test-only follow-up to #24927 (merged). This responds to cubic comment 4506407770 on #24927, which said the failing-app test in
tests/unit/test_reprocess_restore_visibility.pynever reached the explicit selected-app path.That was valid. The test never passed an
app_id, and it replacedtrigger_conversation_appswith a stub that raisedExplicitAppSelectionFailedErrordirectly. The only raise site of that error is insideif app_id:in the processor, so the test was not exercising the explicit branch.The test now:
app_id);get_app_result), and the Firestore user timezone read that the app prompt needs;ExplicitAppSelectionFailedError.No production code changes.
Product invariants affected
How it was verified
assert False is True, meaning the row was left visible. The success test still passes there. So the corrected test catches the bug it was meant to catch.scripts/pr-preflight: see the result below.Tests
tests/unit/test_reprocess_restore_visibility.py, two tests:record_pendingjob exists.UI evidence
UI-Evidence: none -- backend change only