Commit 6bfacb2
authored
build: fix unexpected bazel cache discarding (#19291)
A long-standing issue with our Bazel setup was that the switch
between `ibazel` and `bazel` always resulted a slow down.
It was difficult to debug this because Bazel did not print
anything about what is going on. i.e. it was not clear whether
the analysis cache, or repositories have been discarded. After
investigation it turns out that we set Bazel starlark semantic options
that are applied on to `build` while technically this option also is
relevant for Bazel's first processing phase (i.e. `loading phase`).
Hence Bazel discarded cache for the first processing phase, and node
modules had to be re-instaled and other repositories were fetched again.
This is now fixed by removing these options as they aren't needed
anymore. Alternatively, we could have changed the option target to
`common` so that they also apply to `query`.1 parent 449caec commit 6bfacb2
1 file changed
+0
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
0 commit comments