-
Notifications
You must be signed in to change notification settings - Fork 22
CF-928 remove test_framework from pyproject.toml #955
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
PR Reviewer Guide 🔍(Review updated until commit b90b9f5)Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Latest suggestions up to b90b9f5
Previous suggestionsSuggestions up to commit 4a33966
|
This reverts commit f4bb907.
Revert "debug" This reverts commit fc36551. fix(discover): Fix pytest discovery for futurehouse structure Revert "fix(discover): Fix pytest discovery for futurehouse structure" This reverts commit 40c48882b7413f5876af0e2e08d8f17a65bab091. Reapply "debug" This reverts commit c8297e5. Revert "not needed here" This reverts commit dd2c5cd. Revert "lower threshold and cleanup comments" This reverts commit 0e2f57e. Reapply "lower threshold and cleanup comments" This reverts commit e3b24f4a2967551eca8a19f96bf6647b23acdbbc. Reapply "not needed here" This reverts commit aec32103c931ff6d57dfa0d012113c2cec5d37a7. Revert "Reapply "debug"" This reverts commit 77ab9f34f858a17fb29764c544769a0eb72ce7f0. Reapply "fix(discover): Fix pytest discovery for futurehouse structure" This reverts commit 506b94ab4fe17a7c8e0d458253812758cced3f22. feat(futurehouse): Make futurehouse structure pytest compatible
16beb02 to
ac29b6b
Compare
|
Persistent review updated to latest commit b90b9f5 |
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.
why is this changing if pyproject.toml is not changing @KRRT7
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.
refreshing the lock file, mainly pytest and xarray are being upgraded, but doesn't affect the PR
| ] | ||
| if pytest_timeout is not None: | ||
| common_pytest_args.insert(1, f"--timeout={pytest_timeout}") | ||
| common_pytest_args.append(f"--timeout={pytest_timeout}") |
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.
lets revert this. i probably did it for some reason
| ] | ||
| if pytest_timeout is not None: | ||
| pytest_args.insert(1, f"--timeout={pytest_timeout}") | ||
| pytest_args.append(f"--timeout={pytest_timeout}") |
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.
revert
| ] | ||
| if pytest_timeout is not None: | ||
| pytest_args.insert(1, f"--timeout={pytest_timeout}") | ||
| pytest_args.append(f"--timeout={pytest_timeout}") |
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.
revert
| file_path="src/aviary/common_tags.py", | ||
| expected_unit_tests=1, | ||
| min_improvement_x=0.1, | ||
| expected_unit_tests=0, # todo: fix bug https://linear.app/codeflash-ai/issue/CF-921/test-discovery-does-not-work-properly-for-e2e-futurehouse-example for context |
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.
how is this failing now if it was not failing earlier?
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 believe the complicated way we run our end to end tests hides failures silently, i went back all the way to v16 and it was still broken, even though it was passing CI.
| module-root = "codeflash" | ||
| tests-root = "tests" | ||
| benchmarks-root = "tests/benchmarks" | ||
| test-framework = "pytest" |
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.
does codeflash crash if the toml has test-framwork present? we should just ignore this config param for now
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.
doesn't crash, it's just ignored
misrasaurabh1
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.
have a few comments but approving.
PR Type
Enhancement, Tests
Description
Remove unittest support, standardize on pytest
Simplify config: drop
test-frameworkUpdate instrumentation and optimizer to pytest-only
Adjust tests, workflows, and defaults
Diagram Walkthrough
File Walkthrough
12 files
Remove CLI arg and config support for test frameworkDrop framework prompts, detection, and TOML writingRemove validation of test-framework in configRemove framework parameter from instrumentation APIsVSCode config suggestions and writing without frameworkAssume pytest coverage; remove framework branchingTestConfig defaults to pytest and creates concolic dirCoverage critic simplified to pytest-onlyGenerate tests with pytest-only TestConfigAdjust pytest flags, timeout placement, minor guardsTestConfig now pytest-only with property accessorBuild command and test root default to pytest13 files
Remove framework from TestConfig usageDrop explicit framework; rely on pytest defaultRemove unittest selection from configLower expectations and unit test countRemove framework, keep coverage expectationsRemove framework flag from E2E configUpdate instrumentation calls without framework argUpdate expectations removing test-framework in TOMLUpdate coverage_critic calls to pytest-onlyRemove framework from injection testsAdjust async injection tests to new signatureMany call site updates; drop unittest branchesUpdate optimizer args and injection without framework3 files
Remove unused dependency installationLower expected improvement threshold to 5%Remove test-framework key from tool.codeflash