-
Notifications
You must be signed in to change notification settings - Fork 22
Issue fetcher tests #133
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
Issue fetcher tests #133
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 significant amount of refactoring and new test coverage. Key changes include centralizing JiraLabels and RedisQueues into a common constants file, which greatly improves maintainability by removing magic strings across multiple agent files. It also adds a comprehensive suite of unit tests for the jira_issue_fetcher, enhancing the project's robustness. Additionally, the pyproject.toml is updated to properly handle test dependencies and package discovery.
My review focuses on a few areas for improvement: correcting a critical packaging configuration error, fixing a duplicate dependency in the test container, removing some redundant code in tests and application logic, and improving the accuracy and maintainability of the new tests. Overall, this is a valuable set of changes that moves the project in the right direction.
TomasTomecek
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.
very nice work, love the move to common
79d3f8c to
eb2d3aa
Compare
b968960 to
429f130
Compare
|
/gemini review |
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 unit tests for the JiraIssueFetcher and refactors constants for Redis queues and Jira labels into a common module for better maintainability. The changes are generally good, centralizing constants and improving code structure. However, I've found a critical bug in the JiraIssueFetcher's logic for parsing tasks from Redis, which would cause runtime failures. Additionally, the new tests for the fetcher contain incorrect mock data that doesn't align with the production code's expectations, and there's a minor issue in the Makefile where the .PHONY declaration has become incomplete. My review includes suggestions to fix these issues.
cfe3488 to
3f0617b
Compare
|
/gemini review |
3f0617b to
dfd4167
Compare
|
/gemini review |
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 new jira_issue_fetcher component, complete with unit tests, and executes a valuable refactoring. The centralization of Redis queue names and Jira labels into a new common/constants.py file is a significant improvement for maintainability, and the updated agents now correctly use these shared constants. The code is cleaner and more robust. However, I've identified a critical bug in how Redis queues are classified and parsed, which could lead to runtime failures. The specific comments below detail the issue and provide suggestions for a fix.
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 tests for the jira_issue_fetcher and refactors constants for Redis queues and Jira labels into shared Enum classes, which is a great improvement for maintainability. The changes are mostly solid, but I've found a critical bug in how clarification_needed_queue is processed, a missing dependency in pyproject.toml, and have a suggestion to improve Python dependency management in the test container.
dfd4167 to
205a7dc
Compare
|
/gemini review |
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 new jira_issue_fetcher component, complete with unit tests, and refactors constants for Redis queues and Jira labels into a shared common/constants.py module. This refactoring is a significant improvement for maintainability and consistency across the agents. The new component and its tests are well-structured. I've identified one issue in the new unit tests where the mock data for a specific queue is incorrect, which could prevent a part of the logic from being properly validated. Overall, this is a solid contribution.
4b78d94 to
cc998e1
Compare
|
/gemini review |
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 new jira_issue_fetcher component, complete with comprehensive unit tests. A significant and valuable part of this change is the refactoring of constants like Redis queue names and Jira labels into a centralized common/constants.py file, which greatly improves maintainability by eliminating magic strings across the agent implementations. The project's dependency management is also improved by separating test dependencies in pyproject.toml. Overall, these are solid changes that enhance the project's structure and test coverage. I've added a few suggestions to further improve code clarity and maintainability.
cc998e1 to
d90bfe1
Compare
| import sys | ||
| from jira_issue_fetcher import redis_client |
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.
What's the purpose of these imports?
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.
Probably something I forgot when playing with mocking things.
d90bfe1 to
e1b8df5
Compare
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
e1b8df5 to
b752372
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.
Thanks!
No description provided.