Skip to content

Commit 5dc178c

Browse files
simple markdown table
1 parent 3c5c706 commit 5dc178c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

codeflash/lsp/helpers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ def report_to_markdown_table(report: dict[TestType, dict[str, int]], title: str)
3535
continue
3636
passed = report[test_type]["passed"]
3737
failed = report[test_type]["failed"]
38-
# if passed == 0 and failed == 0:
39-
# continue
38+
if passed == 0 and failed == 0:
39+
continue
4040
lines.append(f"| {test_type.to_name()} | {passed} | {failed} |")
4141
table = "\n".join(lines)
4242
return f"### {title}\n{table}"

codeflash/optimization/function_optimizer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ def determine_best_candidate(
504504
candidate_index += 1
505505
get_run_tmp_file(Path(f"test_return_values_{candidate_index}.bin")).unlink(missing_ok=True)
506506
get_run_tmp_file(Path(f"test_return_values_{candidate_index}.sqlite")).unlink(missing_ok=True)
507-
logger.info(f"Optimization candidate {candidate_index}/{processor.candidate_len}:")
507+
logger.info(f"h3|tags|Optimization candidate {candidate_index}/{processor.candidate_len}:")
508508
code_print(candidate.source_code.flat, file_name=f"candidate_{candidate_index}.py")
509509
# map ast normalized code to diff len, unnormalized code
510510
# map opt id to the shortest unnormalized code
@@ -1586,7 +1586,7 @@ def run_optimized_candidate(
15861586
console.rule()
15871587
return Failure("Test results did not match the test results of the original code.")
15881588

1589-
logger.info(f"loading|tags|Running performance tests for candidate {optimization_candidate_index}.")
1589+
logger.info(f"loading|tags|Running performance tests for candidate {optimization_candidate_index}. ⚡️")
15901590

15911591
if test_framework == "pytest":
15921592
candidate_benchmarking_results, _ = self.run_and_parse_tests(

0 commit comments

Comments
 (0)