Repository navigation
fix: finish Odoo previews whose data schedule ran and failed - #5829
Merged
3 commits merged intoNov 9, 2026
Merged
3 commits merged into
3 commits merged into
Conversation
A schedule the provider reports as failed is a known outcome. Record it as a completed failed preview with its reason so an unchanged build stops redeploying; unknown outcomes keep the guarded recovery. Template-inherited Website intent is no longer required on a preview.
Client-facing failure summaries now name only the exception type. The redacted line stays in the operation record and the worker log.
Contributor
Author
|
Review result: weighed Review by another model, weighed for head 6718b6c. Reviewer: OpenAI through the model-review helper (model not reported by the CLI), full change plus a focused re-review of the fix.
|
Contributor
Author
|
Ready for the merge train Head: 6718b6c |
Contributor
Author
|
Launchplane completed the merge-train step for this pull request.
Launchplane landed this pull request through protected batch PR #5832. Launchplane manages this comment and will update it as the train moves. |
shiny-code-app Bot
added a commit
that referenced
this pull request
Nov 9, 2026
…b4f6023d2101a94: merge PR #5829
This was referenced Nov 9, 2026
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.
Why
Odoo previews on open pull requests were stuck in
reconcile_requiredand re-deployed an unchanged head about every 30 minutes. Any driverfailafter a provider effect was treated as an unknown outcome, including a data schedule the provider had already reported as failed. That left CM previews with no finished state and no reason a Client could read.What changed
failedorerroris now a completed failed preview (502), throughOdooPostDeployScheduleFailedand the adapter inodoo_preview_apply_execution.py. The same build and binding replays the failure instead of applying again; a new build or changed binding tries again, using the existingpreview_build_failedwording.The data schedule failed with RuntimeError.). The bounded redacted log line stays on the operation record and in the worker log.LAUNCHPLANE_WEBSITE_BOOTSTRAP_REQUIREDon a preview, including through the import-source composition. Exact preview intent and every stable lane stay strict.Depends on cbusillo/odoo-devkit#415 for images that skip inherited Website intent. This PR is safe without it: an older image raises as it does today, and now ends as a finished failed preview instead of looping.
Refs #5828. Merging does not by itself prove the finish line on the current CM previews. The issue stays open until they either serve or show their failure on deployed Launchplane.
Verification
preview_operation_statuswasreconcile_required).tests.test_product_reconcile,tests.test_preview_reservation_recovery,tests.test_odoo_preview_apply_execution,tests.test_odoo_preview_runtime,tests.test_odoo_preview_import_source,tests.test_odoo_instance_overrides,tests.test_copy_readback_diagnostics,tests.test_odoo_post_deploy,tests.test_http_app_driver_odoo,tests.test_dokploy_schedule_trigger,tests.test_dokploy.ruff check,ruff format --check,mypy control_plane testspass.native_python_support_plugin_unavailable, native PyCharm, 10 files, no findings reported; tracked on Headless inspection workers: confirm project interpreter and Pydantic plugin so type findings stop being noise codex-skills#3363. Not a clean result.Review
OpenAI reviewed the change, then the fix, and returned one P1 and one P2.
customer.AliceSmith). It now needs anErrororExceptionsuffix orpsycopg2.errors.*.Removed: the unconditional unknown-outcome raise for a schedule the provider reports as failed, and the required flag on template-inherited preview Website intent.
Net lines: +437 (105 code and docs, 332 tests). Growth is the new failure path and its tests.