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

Concurrent helm dependency build fail due to race condition #13110

Closed
hanikesn opened this issue Jun 14, 2024 · 0 comments · Fixed by #13120
Closed

Concurrent helm dependency build fail due to race condition #13110

hanikesn opened this issue Jun 14, 2024 · 0 comments · Fixed by #13120
Labels
bug Categorizes issue or PR as related to a bug.
Milestone

Comments

@hanikesn
Copy link

We're building and templating a lot of Helm charts in parallel, when some of them share a subchart using symlinks it's possible the build fails due to a race condition: Both build try to download to the same location, one of them finishes first and deletes the file and then the second build crashes as the file is missing:

Error: Error rendering ops/k8s/ingress-nginx-public/Chart.yaml: Error running 'helm dependency build --repository-config /tmp/tmpnb8ufin2.yaml ops/k8s/ingress-nginx-public/charts/ingress-nginx':
Hang tight while we grab the latest from your chart repositories...
...Successfully got an update from the "f6d59f60" chart repository
Update Complete. ⎈Happy Helming!⎈
Saving 1 charts
Downloading ingress-nginx from repo https://kubernetes.github.io/ingress-nginx
Save error occurred:  could not download https://github.com/kubernetes/ingress-nginx/releases/download/helm-chart-4.10.1/ingress-nginx-4.10.1.tgz: open ops/k8s/ingress-nginx-public/charts/ingress-nginx/tmpcharts/ingress-nginx-4.10.1.tgz3661314739: no such file or directory
Error: could not download https://github.com/kubernetes/ingress-nginx/releases/download/helm-chart-4.10.1/ingress-nginx-4.10.1.tgz: open ops/k8s/ingress-nginx-public/charts/ingress-nginx/tmpcharts/ingress-nginx-4.10.1.tgz3661314739: no such file or directory

Output of helm version:

version.BuildInfo{Version:"v3.14.3", GitCommit:"f03cc04caaa8f6d7c3e67cf918929150cf6f3f12", GitTreeState:"clean", GoVersion:"go1.22.1"}

@mattfarina mattfarina added the bug Categorizes issue or PR as related to a bug. label Jun 17, 2024
@mattfarina mattfarina added this to the 3.15.3 milestone Jun 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants