diff options
| author | Pravar Agrawal <pravaag1@in.ibm.com> | 2021-06-29 14:32:50 +0530 |
|---|---|---|
| committer | Pravar Agrawal <pravaag1@in.ibm.com> | 2021-10-05 21:39:00 +0530 |
| commit | a52b7d6dd23479f8d8cfa88d33fb759b849c074f (patch) | |
| tree | 4658c9c4e2d3d66254e56f0de378e3b794f8ced1 | |
| parent | 556049876c25cec88dfb43adfb5f05f2e9c9e198 (diff) | |
add documentation for verify-bazel script
| -rw-r--r-- | contributors/devel/sig-testing/verify-tests.md | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/contributors/devel/sig-testing/verify-tests.md b/contributors/devel/sig-testing/verify-tests.md index 17943240..24ef6320 100644 --- a/contributors/devel/sig-testing/verify-tests.md +++ b/contributors/devel/sig-testing/verify-tests.md @@ -105,3 +105,30 @@ Finally the script checks that all external group versions (e.g. `foobar/v1`) are defined in `hack/lib/init.sh` in either the `KUBE_AVAILABLE_GROUP_VERSIONS` or `KUBE_NONSERVER_GROUP_VERSIONS` bash variables. + +### `verify-bazel` + +This verification script validates whehter the removal of `bazel` +related files is still needed or not. This script after setting the +temporary directories for gopath and kube-related path, runs +`[update-bazel.sh]()`. And once executed, `update-bazel` deletes all +the bazel related files which are either not there in vendor and some +additional one-off files. After execution, the `verify-bazel` script +again calculates diff to check the earlier output. And if the diff +result is non-zero then script `update-bazel.sh` is run again for the +files that might be left. + +Following are the files that are searched for deletion as part of this +script: + +```bash + "${KUBE_ROOT}/build/root/BUILD.root" \ + "${KUBE_ROOT}/WORKSPACE" \ + "${KUBE_ROOT}/build/root/WORKSPACE" \ + "${KUBE_ROOT}/.bazelrc" \ + "${KUBE_ROOT}/build/root/.bazelrc" \ + "${KUBE_ROOT}/.bazelversion" \ + "${KUBE_ROOT}/build/root/.bazelversion" \ + "${KUBE_ROOT}/.kazelcfg.json" \ + "${KUBE_ROOT}/build/root/.kazelcfg.json" +``` |
