You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update setup_clang_toolchain and requirements (#1476)
One half of the local build/test issue reported by other maintainers.
- fixes _ci.yml to _append_ additional bazel build arguments rather than override the CI defaults. If it's running from _ci.yml, we always want those defaults.
- sets toplevel download option using current .bazelrc names for the release task.
- adds `--config=clang` to build and test Bazel execution options when setup_clang_toolchain is invoked in do_ci.sh. This worked on remote execution because remote execution included e.g. `config=docker-clang` which itself sets `config=clang` separately.
- adds `fix_requirements` to do_ci.sh - the requirements update step also uses Bazel and should be using the same Bazel configuration options we're applying for build and test (specifically, updating requirements is otherwise broken because running the bazel command directly omits `export CARGO_BAZEL_REPIN=true` and breaks on a hash mismatch in the lockfile)
- adds `fix_docs` to the do_ci.sh commands as docs, too, relies on Bazel building to re-generate.
- regenerates docs and requirements using new utilities
- updates the maintainer guide to point towards the do_ci.sh utilities instead of invoking the Bazel commands directly.
- deletes the obsolesced separate docs utility script.
- updates nighthawk_envoy_updater to use `fix_requirements` and `fix_docs` and adds a missing comma from the copied files list.
- also removes a chunk in .bazelrc that was previously submitted by mistake!
Signed-off-by: Elizabeth Byerly <ebyerly@google.com>
bazel run $BAZEL_BUILD_OPTIONS //tools:update_cli_readme_documentation -- --binary bazel-bin/nighthawk_client --readme README.md --mode=fix
303
+
bazel run $BAZEL_BUILD_OPTIONS //tools:update_cli_readme_documentation -- --binary bazel-bin/nighthawk_service --readme README.md --mode=fix
304
+
bazel run $BAZEL_BUILD_OPTIONS //tools:update_cli_readme_documentation -- --binary bazel-bin/nighthawk_output_transform --readme README.md --mode=fix
305
+
bazel run $BAZEL_BUILD_OPTIONS //tools:update_cli_readme_documentation -- --binary bazel-bin/nighthawk_test_server --readme source/server/README.md --mode=fix
306
+
}
307
+
289
308
if grep 'docker\|lxc' /proc/1/cgroup;then
290
309
export BUILD_DIR=/build
291
310
echo"Running in Docker, built binaries will be copied into ${BUILD_DIR}."
@@ -368,6 +387,16 @@ case "$1" in
368
387
do_fix_format
369
388
exit 0
370
389
;;
390
+
fix_requirements)
391
+
setup_clang_toolchain
392
+
do_fix_requirements
393
+
exit 0
394
+
;;
395
+
fix_docs)
396
+
setup_clang_toolchain
397
+
do_fix_docs
398
+
exit 0
399
+
;;
371
400
benchmark_with_own_binaries)
372
401
setup_clang_toolchain
373
402
do_benchmark_with_own_binaries
@@ -384,7 +413,7 @@ case "$1" in
384
413
exit 0
385
414
;;
386
415
*)
387
-
echo"must be one of [opt_build,build,test,clang_tidy,coverage,coverage_integration,asan,tsan,benchmark_with_own_binaries,docker,check_format,fix_format,test_gcc]"
416
+
echo"must be one of [opt_build,build,test,clang_tidy,coverage,coverage_integration,asan,tsan,benchmark_with_own_binaries,docker,check_format,fix_format,fix_requirements,fix_docs,test_gcc]"
0 commit comments