-
Notifications
You must be signed in to change notification settings - Fork 22
Add Triage agent testsuite #367
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this 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.
0cd910d to
03b8d89
Compare
cc2660b to
b0c835f
Compare
b0c835f to
65199d8
Compare
nforro
left a comment
There was a problem hiding this 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.
65199d8 to
c74d0f1
Compare
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. |
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