Name:
[Campaign] Brain v17 Complete: v1.4 + v2.0 Foundation — WI-1..WI-11
State:
Failed
finished in 140m
PR State:
merged
PR Author:
David Tran
PR Author Email:
PR:
#22
Committer:
David Tran
Committer Email:
davidtran.hp@gmail.com
Commit:
9eabf767bfd1ffa3c1889f6e223fd499b2acbcb4
Description:
[FIX] viin_ai_agent,viin_ai_search: mute expected warnings in negative-path tests
Four post-install tests intentionally exercise error paths to verify
graceful handling, but lack a @mute_logger wrapper, so runbot logs
their expected warnings as test-suite noise:
- test_run_ai_prompt_missing_model_skips_gracefully and
test_run_ai_prompt_missing_prompt_skips_gracefully create server
actions named 'WI17 No Model' / 'WI17 No Prompt' to drive
ir_actions_server._run_action_ai_prompt down its skip branch, which
logs at WARNING from
odoo.addons.viin_ai_agent.models.ir_actions_server.
- test_missing_model_name_raises_error and
test_unknown_model_raises_error post a JSON-RPC request with no /
invalid model_name; the controller raises ValidationError, which
Odoo's HTTP dispatcher logs at WARNING from odoo.http.
Wrap each test with the canonical @mute_logger pattern from commit
7d34381 (viin_ai_chat: mute expected log output in negative-path
controller tests). Production behaviour is unchanged — the warning
still fires when an admin actually misconfigures a server action or a
caller passes a bad model_name; the decorator only suppresses the line
within the test scope so the runbot output stays signal-rich.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Branch:
17.0
Instance ID:
0
Age:
Up-time: