-
Notifications
You must be signed in to change notification settings - Fork 487
Feature-339: Accept --max-run-time-sec in test_with_docker.sh #340
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
base: main
Are you sure you want to change the base?
Feature-339: Accept --max-run-time-sec in test_with_docker.sh #340
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||
| self.logger.info( | ||
| f"Reached above target coverage of {desired_coverage}% " | ||
| f"(Current Coverage: {current_coverage}%) in {iteration_count} iterations." | ||
| f"(Current Coverage: {current_coverage}%) in {iteration_count + 1} iterations." |
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.
This fixes a situation where the desired coverage is reached during the first iteration, but it appears as if it was reached in 0 iterations.
| from pathlib import Path | ||
| from typing import AsyncIterator, List, Tuple, Optional | ||
| from cover_agent.AICaller import AICaller | ||
| from cover_agent.ai_caller import AICaller |
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.
Fix after an unintentional rollback.
PR Type
Enhancement
Description
Added
--max-run-time-secargument support totest_with_docker.shPassed
--max-run-time-secfrom integration test scriptUpdated command construction to include max run time
Changes walkthrough 📝
test_with_docker.sh
Add and handle --max-run-time-sec argument in test_with_docker.shtests_integration/test_with_docker.sh
MAX_RUN_TIME_SECvariable with default value--max-run-time-secargument in CLI options--max-run-time-secto agent command if settest_all.sh
Pass max run time argument to test_with_docker.shtests_integration/test_all.sh
--max-run-time-sec 240totest_with_docker.shinvocation