Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to build chart #5

Open
yujunz opened this issue Jul 29, 2019 · 1 comment
Open

Failed to build chart #5

yujunz opened this issue Jul 29, 2019 · 1 comment

Comments

@yujunz
Copy link

yujunz commented Jul 29, 2019

❯ ./bazel build //charts/ambassador --sandbox_debug
DEBUG: Rule 'helm_tiller' modified arguments {"shallow_since": "1556633566 +0300"}
INFO: Analysed target //charts/ambassador:ambassador (0 packages loaded, 0 targets configured).
INFO: Found 1 target...
ERROR: /Users/yujunz/Code/code.nvda.ai/nucleus/devops/clusters/erica.nvda.dev/helm/charts/ambassador/BUILD:5:1: Executing genrule //charts/ambassador:ambassador failed (Exit 1) sandbox-exec failed: error executing command
  (cd /private/var/tmp/_bazel_yujunz/97b934e4ff9ba842077d328c454b94e4/sandbox/darwin-sandbox/1/execroot/erica_helm && \
  exec env - \
    PATH=/Users/yujunz/.pyenv/shims:/Users/yujunz/.local/bin:/Users/yujunz/bin:/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/go/bin:/Users/yujunz/go/bin:/Users/yujunz/Library/Python/2.7/bin \
    TMPDIR=/var/folders/yg/b9s479_51fg8lx95k3kk2p1c0000gn/T/ \
  /usr/bin/sandbox-exec -f /private/var/tmp/_bazel_yujunz/97b934e4ff9ba842077d328c454b94e4/sandbox/darwin-sandbox/1/sandbox.sb /var/tmp/_bazel_yujunz/install/a134bf748a9bb448b9801b24812c57ec/_embedded_binaries/process-wrapper '--timeout=0' '--kill_delay=15' /bin/bash -c 'source external/bazel_tools/tools/genrule/genrule-setup.sh;
# find Chart.yaml in the filegroup
CHARTLOC=missing
for s in charts/ambassador/.helmignore charts/ambassador/BUILD charts/ambassador/CHANGELOG.md charts/ambassador/Chart.yaml charts/ambassador/README.md charts/ambassador/ci/ci-values.yaml charts/ambassador/ci/default-values.yaml charts/ambassador/templates/NOTES.txt charts/ambassador/templates/_helpers.tpl charts/ambassador/templates/admin-service.yaml charts/ambassador/templates/ambassador-pro-crd.yaml charts/ambassador/templates/ambassador-pro-license-key-secret.yaml charts/ambassador/templates/ambassador-pro-redis.yaml charts/ambassador/templates/ambassador-pro-service.yaml charts/ambassador/templates/config.yaml charts/ambassador/templates/crds.yaml charts/ambassador/templates/deployment.yaml charts/ambassador/templates/exporter-config.yaml charts/ambassador/templates/hpa.yaml charts/ambassador/templates/rbac.yaml charts/ambassador/templates/service.yaml charts/ambassador/templates/serviceaccount.yaml charts/ambassador/templates/tests/test-ready.yaml charts/ambassador/values.yaml; do
  if [[ $s =~ .*Chart.yaml ]]; then
    CHARTLOC=$(dirname $s)
    break
  fi
done
bazel-out/host/bin/external/com_github_tmc_rules_helm/helm package  $CHARTLOC
mv *tgz bazel-out/darwin-fastbuild/genfiles/charts/ambassador/ambassador_chart.tar.gz
')
usage: dirname path
Error: This command needs 1 argument: plugin
Target //charts/ambassador:ambassador failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 2.242s, Critical Path: 2.11s
INFO: 0 processes.
FAILED: Build did NOT complete successfully
@yujunz
Copy link
Author

yujunz commented Jul 29, 2019

It seems failed in rlocation

+ grep -qc tiller
+++ rlocation __main__/external/helm_tiller/WORKSPACE
+++ [[ '' == 1 ]]
+++ [[ __main__/external/helm_tiller/WORKSPACE =~ ^/[^/].* ]]
+++ [[ __main__/external/helm_tiller/WORKSPACE == ../* ]]
+++ [[ __main__/external/helm_tiller/WORKSPACE == */.. ]]
+++ [[ __main__/external/helm_tiller/WORKSPACE == ./* ]]
+++ [[ __main__/external/helm_tiller/WORKSPACE == */./* ]]
+++ [[ __main__/external/helm_tiller/WORKSPACE == \*\/\. ]]
+++ [[ __main__/external/helm_tiller/WORKSPACE == *//* ]]
+++ [[ __main__/external/helm_tiller/WORKSPACE == \\* ]]
+++ [[ -e /dev/null/__main__/external/helm_tiller/WORKSPACE ]]
+++ [[ -f bazel-out/host/bin/external/com_github_tmc_rules_helm/helm.runfiles_manifest ]]
+++ [[ '' == 1 ]]
++++ grep -m1 '^__main__/external/helm_tiller/WORKSPACE ' bazel-out/host/bin/external/com_github_tmc_rules_helm/helm.runfiles_manifest
++++ cut -d ' ' -f 2-
+++ local -r result=
+++ [[ -e /dev/null ]]
+++ [[ '' == 1 ]]
+++ echo ''
++ dirname
usage: dirname path

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant