Loading
Read AI summaries from results.xml
The log-detective module (gluetool-modules!1091 (merged)) writes its analysis into results.xml as ai-summary elements: one per failed testcase, or one on the plan when no testcase failed. results.html now renders them in place and stops requesting the api-ai.json and results-ai.xml prototype files.
- Reads
testcase > ai-summaryandtestsuite > ai-summary:explanation,solution, theno-issue-foundattribute andsnippets > snippetwith optionalsource-fileandline-number. - Renders model output as plain text through Lit escaping. The old code passed it to
unsafeHTML. - Drops the request-level AI box. The Testing Farm API has no
ai_summaryfield, so onlyapi-ai.jsonever filled it. - Keeps summaries opt-in. The toggle appears only when
results.xmlcontains anai-summary. tmt-single-fail-ainow carries a testcase-level summary, including a snippet with<4>to check escaping. The newtmt-failed-prepare-aiscenario covers the plan-level case.
Live example from a run of gluetool-modules!1091 (merged): https://artifacts.dev.testing-farm.io/f2d12b90-2fed-4fb3-adbf-7dcb805fe1ee/
Generated-by: Claude Code
Edited by Miroslav Vadkerti