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

Helm chart are published before images are ready #3907

Closed
makkes opened this issue Aug 2, 2023 · 11 comments · Fixed by #3940
Closed

Helm chart are published before images are ready #3907

makkes opened this issue Aug 2, 2023 · 11 comments · Fixed by #3940
Assignees
Labels
bug Something isn't working priority_high Items we want to complete in the next 30 days team/tangerine

Comments

@makkes
Copy link
Member

makkes commented Aug 2, 2023

Describe the bug

With each Weave GitOps release the chart is updated prematurely so that upgrades fail as long as the images haven't been built, yet.

Environment

  • Weave-Gitops Version: all
  • Flux Version: n/a
  • Kubernetes version: n/a

To Reproduce
Steps to reproduce the behavior:

Immediately after a Weave GitOps release is published, try to install that release.

Expected behavior

The release installs successfully.

Actual Behavior

Installation fails:

weave-gitops-648b7f9655-ll4zn   0/1     ImagePullBackOff   0          11m
weave-gitops-648b7f9655-ll4zn   0/1     ErrImagePull       0          11m
@makkes makkes added the bug Something isn't working label Aug 2, 2023
@tsunamaru
Copy link

Just faced the same issue when flux applied weave-gitops helm chart.
Looks like image build job is stuck: https://github.com/weaveworks/weave-gitops/actions/runs/5738127454/job/15551440034

@yiannistri yiannistri added the priority_high Items we want to complete in the next 30 days label Aug 2, 2023
@makkes
Copy link
Member Author

makkes commented Aug 2, 2023

@tsunamaru thanks for verifying. The build job usually takes ~1.5h so that's expected.

@adelmoradian
Copy link

seems to be working now again!

@enekofb
Copy link
Contributor

enekofb commented Aug 2, 2023

Thanks all for reporting and following up! We will look into it to avoid it happening in the future.

@stefanprodan
Copy link
Collaborator

The build job usually takes ~1.5h so that's expected.

This can take just 20m if you use tonistiigi/xx, example https://github.com/fluxcd/kustomize-controller/blob/main/Dockerfile

@stefanprodan
Copy link
Collaborator

stefanprodan commented Aug 2, 2023

I would change the title to

GitHub release and Helm chart are published before images are ready

The release workflow should be:

  • build and push container image
  • build and push Hem chart
  • publish release to GitHub

@enekofb
Copy link
Contributor

enekofb commented Aug 2, 2023

Previous spike effort #3157

@makkes makkes changed the title Chart is published before images are ready GitHub release and Helm chart are published before images are ready Aug 2, 2023
@enekofb enekofb self-assigned this Aug 7, 2023
@enekofb
Copy link
Contributor

enekofb commented Aug 7, 2023

Release PR examples

enekofb added a commit that referenced this issue Aug 11, 2023
enekofb added a commit that referenced this issue Aug 11, 2023
enekofb added a commit that referenced this issue Aug 15, 2023
…hing (#3937)

* added incident report for issue #3907

* readproof

* readproof

* Apply suggestions from code review

Co-authored-by: Hidde Beydals <[email protected]>

* replaced private link with screenshot

---------

Co-authored-by: Hidde Beydals <[email protected]>
@enekofb
Copy link
Contributor

enekofb commented Aug 16, 2023

Done so far:

  • We have implemented guardrails to avoid this issue from happening (as in v0.29 release with chart published before image with users impact). Attached PRs for full context on the solution.
  • Today's release v0.30 should help us to validate it.

Validation of the solution after merging:

Complete 🆙 validation would close the ticket

The other suggestions on build time and github release order will be tackled in a follow-up issue #3945

@makkes
Copy link
Member Author

makkes commented Aug 17, 2023

Strictly speaking this hasn't been completely resolved as the GitHub release is still created and announced (e.g. on Slack) prematurely, i.e. before the new chart version is actually available.

@enekofb enekofb changed the title GitHub release and Helm chart are published before images are ready Helm chart are published before images are ready Aug 17, 2023
@enekofb
Copy link
Contributor

enekofb commented Aug 17, 2023

Strictly speaking this hasn't been completely resolved as the GitHub release is still created and announced (e.g. on Slack) prematurely, i.e. before the new chart version is actually available.

You are right, i have removed that expectation from the issue title and reflected in the follow up ticket #3945

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working priority_high Items we want to complete in the next 30 days team/tangerine
Projects
None yet
6 participants