-
Notifications
You must be signed in to change notification settings - Fork 13
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
[ci] Better solution for helm-chart bump pipeline #3988
Comments
My other proposed solution is to have a pipeline on a pull request that updates the Concerns about this solution: If this action runs, it would make changes to the current PR and tests would gave to run again. |
Was there no way to allow the app that commits to master to override the branch protection rules? or is that just a bad idea? |
I might be able to add a |
Here is the ruleSet documentation for github |
We have implemented a new ruleset to the |
We had added 3 required checks to our
master
branch protections to prevent accidental merges to the master when the pull request hasn't passed all tests.The issue now is that it breaks the
build-and-publish-helm-charts
ci pipeline:https://github.com/terascope/teraslice/actions/runs/13641561351/job/38132568786
This has been validated as the cause because we removed these required checks and re-ran the job and it passed. This is because this pipeline updates an
index.yaml
file and pushes it directly to the master branch.After looking into potential solutions, I thought I had a path forward but came to some other issues.
Solution 1:
We can instead update the
index.yaml
locally and have the change in the PR itself. Then thebuild-and-publish-helm-charts
pipeline would skip the step of updating theindex.yaml
and proceed to generate the chart tarball and publish it toghcr
.Problems with solution 1:
helm
installed when bumping the chart itself or when bumping teraslice.helm package
, it will always have a unique digest because of some creation timestamp. This ends up being displaced when we update theindex.yaml
with thehelm repo index
command. Here is a diff of theindex.yaml
when updating the chart locally:I then deleted the tarball and restored everything, then proceeded to regenerate the tarball and run
helm index
again, and the digest is in fact different. Meaning when we go to generate the tarball in ci and publish to ghcr, it will have a different digest than the one listed in theindex.yaml
The text was updated successfully, but these errors were encountered: