Skip to content

Conversation

@TomasKorbar
Copy link
Collaborator

This pull request is the initial proposal for test suite of triage agent and mechanism for gathering of metrics from agent runs.

Related: https://github.com/packit/jotnar/issues/233

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces a test suite for the triage agent and a mechanism for gathering metrics from agent runs. The changes are well-structured, with a new MetricsMiddleware for collecting performance data and a comprehensive e2e test suite using pytest. The refactoring of the triage agent to extract the workflow logic into a separate run_workflow function is a great improvement for testability. My review includes suggestions to improve the robustness and completeness of the new tests, along with a minor cleanup in the metrics middleware.

@TomasKorbar TomasKorbar force-pushed the triage_testsuite branch 3 times, most recently from cc2660b to b0c835f Compare December 1, 2025 08:39
@TomasKorbar TomasKorbar requested a review from nforro December 1, 2025 08:48
Copy link
Member

@nforro nforro left a comment

Choose a reason for hiding this comment

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

I haven't been able to run the tests successfully, still getting Error while writing mock up Jira issue [Errno 13] Permission denied: 'mcp_server/tests/data/RHEL-XXXXX' despite running with DRY_RUN=true.

Can be executed by `make run-triage-agent-e2e-tests`

Currently none of the tests reliably passes, but each of them
provides insight into portion of process that is not working.
@TomasKorbar
Copy link
Collaborator Author

I haven't been able to run the tests successfully, still getting Error while writing mock up Jira issue [Errno 13] Permission denied: 'mcp_server/tests/data/RHEL-XXXXX' despite running with DRY_RUN=true.

Very nice catch, i changed the permissions and then did not test the suite without them in place. Should work now. I also fixed dry run application in add_jira_comment tool.

@TomasKorbar TomasKorbar merged commit cc301ad into packit:main Dec 2, 2025
7 checks passed
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.

2 participants