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

reduce release container image build time and github release should happen after artefacts are ready #3945

Open
enekofb opened this issue Aug 16, 2023 · 6 comments
Labels
bug Something isn't working team/tangerine type/enhancement New feature or request

Comments

@enekofb
Copy link
Contributor

enekofb commented Aug 16, 2023

Problem

In the previous ticket, we tackled what we thought was the main reason of the impact to users: chart being published before container image.

However, there are a couple of suggestions that are worth follow up on:

  1. Building container image for release takes more than an hour: it matters due to a releaser is a person that is actively dedicating its time to ensure that a release happens successfully. To reduce this time not only frees releaser time to something else but also increases the chances of a successful release which translates in productivity increase.

  2. GitHub release happens before artifacts are available: it matters cause the github release flags the community that a new release exists. Given that weave gitops would be mostly usedin containerized environments this order matters as it could eventually lead to the same experience as we saw in Helm chart are published before images are ready #3907 (but smaller chances of impact)

Solution

  1. Build time -> investigate and implement ways to get this down as much as possible (i.e. Helm chart are published before images are ready #3907 (comment))

  2. Github release order:

Additional context

To be added in case of needed

@enekofb enekofb added type/enhancement New feature or request bug Something isn't working labels Aug 16, 2023
@enekofb
Copy link
Contributor Author

enekofb commented Aug 16, 2023

enhancement -> build time
bug -> release order

@enekofb enekofb self-assigned this Aug 16, 2023
@enekofb enekofb changed the title reduce release container image build time and review github release order reduce release container image build time and github release should happen after artefacts are ready Aug 17, 2023
@enekofb
Copy link
Contributor Author

enekofb commented Aug 30, 2023

GitHub release happens before artifacts are available: it matters cause the github release flags the community that a new release exists. Given that weave gitops would be mostly usedin containerized environments this order matters as it could eventually lead to the same experience as we saw in #3907 (but smaller chances of impact)

Implementing ordering with the following orchestration

Screenshot 2023-08-30 at 11 40 02

@enekofb
Copy link
Contributor Author

enekofb commented Sep 6, 2023

build time is mostly consumed around yarn build

https://github.com/weaveworks/weave-gitops/actions/runs/6027756317/job/16354189068

Potential actions:

@jpellizzari
Copy link
Contributor

take the js build out of the docker build

One obvious suggestion (and probably naive) would be to build these once in the native CI environment and copy the JS files to the container. Our FE code is just a bundle of static files, so it shouldn't care about target environment.

@enekofb
Copy link
Contributor Author

enekofb commented Sep 14, 2023

Release order worked fine yesterday where we released to github after the image was built.

@enekofb
Copy link
Contributor Author

enekofb commented Nov 13, 2023

unassigning to me so anyone else in the team could take it

@enekofb enekofb removed their assignment Nov 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working team/tangerine type/enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants