Skip to content

Commit

Permalink
[kcov] Adjust kcov build flags for Bazel 8 (#22325)
Browse files Browse the repository at this point in the history
When profiling Python, kcov leaves a pipe-typed file in the test outputs
tree. If Bazel 8 sees this file, it will complain, but if we instruct it
to zip the outputs, it is none the wiser.
  • Loading branch information
rpoyner-tri authored Dec 17, 2024
1 parent 3a99cb9 commit 147e334
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/dynamic_analysis/bazel.rc
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ build:kcov --run_under //tools/dynamic_analysis:kcov
build:kcov --local_test_jobs=HOST_CPUS*0.5
build:kcov --test_tag_filters=-lint,-gurobi,-mosek,-snopt,-no_kcov
build:kcov --nocache_test_results
build:kcov --zip_undeclared_test_outputs=true
# These increased timeouts were set through experimentation. Because kcov runs
# in a separate process from the main program, the OS has to context-switch
# between the processes every time a line is hit, slowing down execution
Expand All @@ -30,6 +31,7 @@ build:kcov_everything --run_under=//tools/dynamic_analysis:kcov
build:kcov_everything --local_test_jobs=HOST_CPUS*0.5
build:kcov_everything --test_tag_filters=-lint,-no_kcov
build:kcov_everything --nocache_test_results
build:kcov_everything --zip_undeclared_test_outputs=true
# See timeout note above.
build:kcov_everything --test_timeout=1200,6000,19000,72000

Expand Down

0 comments on commit 147e334

Please sign in to comment.