Unable to build manifests from main branch
TBurda opened this issue · comments
Tomáš Burda commented
What happened?
When attempting to build manifests from the main branch, the process fails with the following error. This error occurs consistently and prevents us from successfully completing the manifest build process.
+ set -o pipefail
++ pwd
+ PATH=/kube-prometheus/tmp/bin:/go/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
+ rm -rf manifests
+ mkdir -p manifests/setup
+ jsonnet -J vendor -m manifests example.jsonnet
+ xargs '-I{}' sh -c 'cat {} | gojsontoyaml > {}.yaml' -- '{}'
RUNTIME ERROR: Field does not exist: get
vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.3.0/custom/util/grid.libsonnet:119:25-32
vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.3.0/custom/util/grid.libsonnet:121:29-34
<std>:774:24-47 thunk from <function <aux>>
<std>:774:9-57 function <aux>
<std>:775:5-28 function <anonymous>
vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.3.0/custom/util/grid.libsonnet:(93:5)-(172:6)
vendor/github.com/kubernetes-monitoring/kubernetes-mixin/dashboards/apiserver.libsonnet:(320:11)-(345:10) thunk from <object <anonymous>>
vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.3.0/custom/dashboard.libsonnet:17:30-35 thunk from <object <anonymous>>
<std>:32:25-26 thunk from <function <anonymous>>
<std>:32:16-27 function <anonymous>
...
vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.3.0/custom/util/panel.libsonnet:(21:7)-(51:8)
vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.3.0/custom/util/panel.libsonnet:52:5-19 function <anonymous>
vendor/github.com/grafana/grafonnet/gen/grafonnet-v10.3.0/custom/dashboard.libsonnet:18:13-49 object <anonymous>
<std>:932:43-47 thunk from <thunk from <thunk from <thunk from <thunk <lines> from <function <aux>>>>>>
<std>:904:10-11 function <aux>
<std>:932:39-78 thunk from <thunk from <thunk from <thunk <lines> from <function <aux>>>>>
<std>:936:9-28 builtin function <join>
<std>:937:5-23 function <anonymous>
vendor/github.com/brancz/kubernetes-grafana/grafana/grafana.libsonnet:100:25-79 object <anonymous>
During manifestation
How to reproduce it (as minimally and precisely as possible):
- Clone main branch.
docker run --rm -v /Users/burda/Downloads/kube-prometheus-main:/kube-prometheus --workdir /kube-prometheus quay.io/coreos/jsonnet-ci jb update
docker run --rm -v /Users/burda/Downloads/kube-prometheus-main:/kube-prometheus --workdir /kube-prometheus quay.io/coreos/jsonnet-ci ./build.sh example.jsonnet
Philip Gough commented
@TBurda are you able to run make --always-make manifests
on main
?
Locally and in CI I see no issues generating manifests.
Could be a version mismatch since:
$ ./tmp/bin/jsonnet --version
Jsonnet commandline interpreter (Go implementation) v0.20.0
while
$ docker run quay.io/coreos/jsonnet-ci jsonnet --version
Jsonnet commandline interpreter v0.15.0
Tomáš Burda commented
Hi, @philipgough
thanks for your help. After updating Jsonnet to v0.20.0 the build is working.