Skip to content

Commit a52b7d6

Browse files
committed
add documentation for verify-bazel script
1 parent 5560498 commit a52b7d6

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

contributors/devel/sig-testing/verify-tests.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,3 +105,30 @@ Finally the script checks that all external group versions
105105
(e.g. `foobar/v1`) are defined in `hack/lib/init.sh` in either the
106106
`KUBE_AVAILABLE_GROUP_VERSIONS` or `KUBE_NONSERVER_GROUP_VERSIONS`
107107
bash variables.
108+
109+
### `verify-bazel`
110+
111+
This verification script validates whehter the removal of `bazel`
112+
related files is still needed or not. This script after setting the
113+
temporary directories for gopath and kube-related path, runs
114+
`[update-bazel.sh]()`. And once executed, `update-bazel` deletes all
115+
the bazel related files which are either not there in vendor and some
116+
additional one-off files. After execution, the `verify-bazel` script
117+
again calculates diff to check the earlier output. And if the diff
118+
result is non-zero then script `update-bazel.sh` is run again for the
119+
files that might be left.
120+
121+
Following are the files that are searched for deletion as part of this
122+
script:
123+
124+
```bash
125+
"${KUBE_ROOT}/build/root/BUILD.root" \
126+
"${KUBE_ROOT}/WORKSPACE" \
127+
"${KUBE_ROOT}/build/root/WORKSPACE" \
128+
"${KUBE_ROOT}/.bazelrc" \
129+
"${KUBE_ROOT}/build/root/.bazelrc" \
130+
"${KUBE_ROOT}/.bazelversion" \
131+
"${KUBE_ROOT}/build/root/.bazelversion" \
132+
"${KUBE_ROOT}/.kazelcfg.json" \
133+
"${KUBE_ROOT}/build/root/.kazelcfg.json"
134+
```

0 commit comments

Comments
 (0)