From e02124e2f892d4ce774d7d9517ba40070a43df47 Mon Sep 17 00:00:00 2001 From: Saurabh Misra Date: Tue, 29 Apr 2025 00:21:36 -0700 Subject: [PATCH 1/2] run args config --- .../pytest_new_process_trace_benchmarks.py | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/codeflash/benchmarking/pytest_new_process_trace_benchmarks.py b/codeflash/benchmarking/pytest_new_process_trace_benchmarks.py index 232c39fa7..a4afb0678 100644 --- a/codeflash/benchmarking/pytest_new_process_trace_benchmarks.py +++ b/codeflash/benchmarking/pytest_new_process_trace_benchmarks.py @@ -16,8 +16,22 @@ codeflash_benchmark_plugin.setup(trace_file, project_root) codeflash_trace.setup(trace_file) exitcode = pytest.main( - [benchmarks_root, "--codeflash-trace", "-p", "no:benchmark","-p", "no:codspeed","-p", "no:cov-s", "-o", "addopts="], plugins=[codeflash_benchmark_plugin] - ) # Errors will be printed to stdout, not stderr + [ + benchmarks_root, + "--codeflash-trace", + "-p", + "no:benchmark", + "-p", + "no:codspeed", + "-p", + "no:cov", + "-p", + "no:profiling", + "-s", + "-o", + ], + plugins=[codeflash_benchmark_plugin], + ) # Errors will be printed to stdout, not stderr except Exception as e: print(f"Failed to collect tests: {e!s}", file=sys.stderr) From b0ec783badceaedd4fd7aeb40259e21f3aafeb2d Mon Sep 17 00:00:00 2001 From: Saurabh Misra Date: Tue, 29 Apr 2025 18:23:49 -0700 Subject: [PATCH 2/2] fix bug --- codeflash/benchmarking/pytest_new_process_trace_benchmarks.py | 1 + 1 file changed, 1 insertion(+) diff --git a/codeflash/benchmarking/pytest_new_process_trace_benchmarks.py b/codeflash/benchmarking/pytest_new_process_trace_benchmarks.py index a4afb0678..f8650d9fb 100644 --- a/codeflash/benchmarking/pytest_new_process_trace_benchmarks.py +++ b/codeflash/benchmarking/pytest_new_process_trace_benchmarks.py @@ -29,6 +29,7 @@ "no:profiling", "-s", "-o", + "addopts=", ], plugins=[codeflash_benchmark_plugin], ) # Errors will be printed to stdout, not stderr