Fix a Test Failure
Resolve a single test failure end-to-end.
Preconditions
- Tomcat is running (required for
Java Integration,Playwright, andPoshi). Start it if it is not.
Input
The failure identifier is everything in ${ARGUMENTS} before the first -- option.
Bug Key
When the failure identifier is a Jira Bug key (LPD-<number>) or its browse URL, the run starts from an already filed Bug instead of a Testray case result. Read the Bug through the Jira REST API (.claude/rules/jira.md): its description, comments, links, component, and assignee, the tests it names, and its steps to reproduce. Nothing is fetched from Testray. Start From a Bug lists what changes in the workflow.
Case Result ID
When the failure identifier is a positive integer, use it directly as the Testray case result ID.
Testray Build URL
When the failure identifier is a URL of the form https://testray.liferay.com/#/project/<projectId>/routines/<routineId>/build/<buildId>?filter=<urlencoded-json>, resolve it to a case result ID by following