-
Notifications
You must be signed in to change notification settings - Fork 22
Test cache revival #753
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
Test cache revival #753
Changes from 13 commits
d5fa1ef
28eee4a
bbc630f
c4b8a4b
caac361
fd34f8d
180c479
a891be4
924de86
119e8ec
49e44ee
ea9878d
a0c333c
bdc062a
b210ba4
1445c38
c3e2ec2
fd64a22
bb982cb
d8dd14d
b243158
2bead9c
1b58dd1
d5cf24b
e187f98
882a2e0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -239,15 +239,14 @@ def discover_tests( | |
| from codeflash.discovery.discover_unit_tests import discover_unit_tests | ||
|
|
||
| console.rule() | ||
| with progress_bar("Discovering existing function tests..."): | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. the progress_bar will also show the loading text animation in the extension, I think we should keep it. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Screen.Recording.2025-10-09.at.3.43.36.PM.movthis is the artifact There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Screen.Recording.2025-10-09.at.3.45.08.PM.movno artifact |
||
| start_time = time.time() | ||
| function_to_tests, num_discovered_tests, num_discovered_replay_tests = discover_unit_tests( | ||
| self.test_cfg, file_to_funcs_to_optimize=file_to_funcs_to_optimize | ||
| ) | ||
| console.rule() | ||
| logger.info( | ||
| f"Discovered {num_discovered_tests} existing unit tests and {num_discovered_replay_tests} replay tests in {(time.time() - start_time):.1f}s at {self.test_cfg.tests_root}" | ||
| ) | ||
| start_time = time.time() | ||
| function_to_tests, num_discovered_tests, num_discovered_replay_tests = discover_unit_tests( | ||
| self.test_cfg, file_to_funcs_to_optimize=file_to_funcs_to_optimize | ||
| ) | ||
| console.rule() | ||
| logger.info( | ||
| f"Discovered {num_discovered_tests} existing unit tests and {num_discovered_replay_tests} replay tests in {(time.time() - start_time):.1f}s at {self.test_cfg.tests_root}" | ||
| ) | ||
| console.rule() | ||
| ph("cli-optimize-discovered-tests", {"num_tests": num_discovered_tests}) | ||
| return function_to_tests, num_discovered_tests | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
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 won't create the project_root_path column if the table already created before, you should have a separate sql for adding the new column
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.
we actually need some kind of migration engine later, for these type of changes
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.
huh, that database should be empty, if not, I think only our team members would have it, but yes let me come up with a fix