[FIX] viin_ai_agent: contain UNIQUE constraint test in cr.savepoint to prevent transaction poison
The test_tool_technical_name_unique negative-path test triggered a
psycopg2 IntegrityError without isolating it via cr.savepoint(). The
poisoned outer transaction surfaced an ERROR-level odoo.sql_db log line
that the runbot post-install sweep tagged as failure (PR #22 build
campaign-brain-v17-complete-...221679, "duplicate key value violates
unique constraint viin_ai_tool_viin_ai_tool_technical_name_unique").
Apply the canonical pattern already used in viin_brain test suites
(test_brain_property, test_brain_tag, test_brain_template): wrap the
violation in env.cr.savepoint() and silence the expected ERROR log via
mute_logger('odoo.sql_db'). Tighten the assertion from bare Exception
to psycopg2.IntegrityError.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
| Subbuilds | Name | State | Detail |
|---|---|---|---|
| Build 381312 | Check the quality with Pylint: from test_lint to test_pylint 18m | Killed | Log |
| Build 381313 | At install tests: from account to website_twitter | Killed | Log |
| Build 381314 | Post install tests: step install all modules | Killed | Log |
| Build 381315 | Post install tests: from account to payment_alipay | Killed | |
| Build 381316 | Post install tests: from payment_aps to test_viin_web_cohort | Killed | |
| Build 381317 | Post install tests: from test_website to to_website_apps_store | Killed | |
| Build 381318 | Post install tests: from to_website_apps_store_loc to viin_estimate_sale | Killed | |
| Build 381319 | Post install tests: from viin_event_checkin_website to viin_project_gantt | Killed | |
| Build 381320 | Post install tests: from viin_project_progress to website_twitter | Killed | |
| Build 381321 | Test install all modules without demo data: from account to website_twitter | Killed | Log |
| Create Date | Level | Message |
|---|---|---|
| 05/02/2026 10:50:37 | INFO |
Updated repository Viindoo-odoo
|
| 05/02/2026 10:50:37 | INFO |
Updated repository Viindoo-tvtmaaddons
|
| 05/02/2026 10:50:37 | INFO |
Updated repository Viindoo-erponline-enterprise
|
| 05/02/2026 10:50:37 | INFO |
Updated repository Viindoo-branding
|
| 05/02/2026 10:50:37 | INFO |
Cloned repository Viindoo-ai
|