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

Bugfix/5758 incremental image build fix #5772

Merged
merged 3 commits into from
Aug 19, 2024

Conversation

lsergio
Copy link
Contributor

@lsergio lsergio commented Aug 14, 2024

This is a proposal for solving the bug reported in #5758.
The main idea is that the incremental image build algorithm will select the base image that has more dependencies among those required by the new image, but no extra ones.

Also, the logic in build_type_support.go has changed to be compatible with this approach. The matching build will be the one with more common dependencies, but no extra ones.

Closes #5758

Once approved, I can backport this to release-4.x as well.

Release Note

Fixed incremental build algorithm to avoid adding unnecessary dependencies to the final image 

Copy link
Contributor

✔️ Unit test coverage report - coverage increased from 42.9% to 43% (+0.1%)

Copy link
Contributor

@squakez squakez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Nice work, thanks!

@lsergio lsergio force-pushed the bugfix/5758-incrementalImageBuildFix branch from 0fa293d to b8d5acf Compare August 16, 2024 08:20
Copy link
Contributor

✔️ Unit test coverage report - coverage increased from 42.9% to 43% (+0.1%)

… compatible with the incremental image build algorithm
@lsergio lsergio force-pushed the bugfix/5758-incrementalImageBuildFix branch from b8d5acf to db8c0fa Compare August 16, 2024 18:18
@lsergio
Copy link
Contributor Author

lsergio commented Aug 16, 2024

I see some e2e tests have failed. I'm trying to run the failed tests locally to see what needs to be fixed, but this will probably take some time...

@lsergio lsergio force-pushed the bugfix/5758-incrementalImageBuildFix branch 5 times, most recently from ec7d931 to 7ef2d96 Compare August 17, 2024 18:21
@lsergio lsergio force-pushed the bugfix/5758-incrementalImageBuildFix branch from 7ef2d96 to b9bf1be Compare August 17, 2024 18:22
@lsergio
Copy link
Contributor Author

lsergio commented Aug 17, 2024

Added b9bf1be to the PR. The image reuse algorithm was considering the application jar file as a dependency. As each integration generates its own jar file with the same name, but different checksum, there would never be a match and we would always use the root image as base.

@squakez squakez merged commit 7486014 into apache:main Aug 19, 2024
9 checks passed
@lsergio lsergio deleted the bugfix/5758-incrementalImageBuildFix branch August 19, 2024 13:30
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 this pull request may close these issues.

Error: io.quarkus.vertx.http.runtime.TrustedProxyCheckPartConverter not a subtype
2 participants