Skip to content

feat: add /debug-test slash command for analyzing test failures#855

Merged
emmaaroche merged 1 commit intoKuadrant:mainfrom
emmaaroche:add-debug-slash-command
Feb 13, 2026
Merged

feat: add /debug-test slash command for analyzing test failures#855
emmaaroche merged 1 commit intoKuadrant:mainfrom
emmaaroche:add-debug-slash-command

Conversation

@emmaaroche
Copy link
Contributor

Description

This PR introduces a new /debug-test Claude Code slash command to help analyze test failures and suggest debugging steps and fixes. This was inspired by the recent increase of failures in the nightly pipeline.

While many failures are already familiar to debug, the command is intended as a lightweight guide, particularly useful when investigating failures in less familiar testing areas or when encountering new or uncommon issues, providing a quicker starting point for debugging.

Changes

  • Adds a structured 4-step workflow:
    • Extract the failing file path from the traceback
    • Trace test fixtures and imports
    • Categorize the failure type
    • Provide suggested debugging steps and fixes
  • Documents common failure patterns derived from an analysis of recent nightly test failure logs done by Claude
  • Defines a response output format for the slash command

Verification steps

To verify the /debug-test slash command:

  1. Check out this branch and confirm /debug-test is present in .claude/commands/
  2. Initialize Claude and run /debug-test, followed by a test failure output
  3. Verify that the command identifies failure patterns and suggests appropriate debugging steps

@emmaaroche emmaaroche force-pushed the add-debug-slash-command branch from 6b02c3d to 45096d4 Compare February 4, 2026 13:26
@emmaaroche emmaaroche requested a review from azgabur February 4, 2026 16:49
Signed-off-by: emmaaroche <eroche@redhat.com>
@emmaaroche emmaaroche force-pushed the add-debug-slash-command branch from 45096d4 to deacd55 Compare February 5, 2026 15:28
@emmaaroche emmaaroche requested a review from silvi-t February 6, 2026 15:59
Copy link
Contributor

@silvi-t silvi-t left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure to what extent Claude will be able to correctly determine the root cause if it's not a simple error in the fixture or test design. In any case, he can at least provide some additional context and guidance. So I am okay with approving this PR.

@emmaaroche emmaaroche merged commit ced8f66 into Kuadrant:main Feb 13, 2026
4 checks passed
@emmaaroche emmaaroche deleted the add-debug-slash-command branch February 13, 2026 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants