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

Add ARM64 dependencies #487

Merged
merged 6 commits into from
Jan 18, 2024
Merged

Add ARM64 dependencies #487

merged 6 commits into from
Jan 18, 2024

Conversation

dmikusa
Copy link
Contributor

@dmikusa dmikusa commented Oct 29, 2023

Summary

Adds the JRE, JDK and NIK dependencies for ARM64.

This commit also adds update workflows to keep these dependencies up-to-date. This will require paketo-buildpacks/pipeline-builder#1348 to be merged first, because the workflows for ARM64 need to be able to pass the arch through to the GH Action that checks for Bellsoft updates.

Use Cases

Add ARM64!

Checklist

  • I have viewed, signed, and submitted the Contributor License Agreement.
  • I have linked issue(s) that this PR should close using keywords or the Github UI (See docs)
  • I have added an integration test, if necessary.
  • I have reviewed the styleguide for guidance on my code quality.
  • I'm happy with the commit history on this PR (I have rebased/squashed as needed).

Adds the JRE, JDK and NIK dependencies for ARM64.

This commit also adds update workflows to keep these dependencies up-to-date. This will require paketo-buildpacks/pipeline-builder#1348 to be merged first, because the workflows for ARM64 need to be able to pass the arch through to the GH Action that checks for Bellsoft updates.

Signed-off-by: Daniel Mikusa <[email protected]>
@dmikusa dmikusa added semver:minor A change requiring a minor version bump type:enhancement A general enhancement labels Oct 29, 2023
@dmikusa dmikusa requested a review from a team as a code owner October 29, 2023 02:38
@dmikusa
Copy link
Contributor Author

dmikusa commented Oct 30, 2023

The helpful part of this approach is that we only need minor changes to the actions in pipeline builder. You can see how the change on paketo-buildpacks/pipeline-builder#1348 are pretty small. The downside of this approach is that it causes us to need a lot more update workflows in the actual buildpack repo, see this PR which doubles the number of workflows.

I'm not totally concerned with that. It will cause more jobs to run, but I think this just emphasizes another reason why we don't want to have dependencies inside of the buildpacks.

If folks are concerned about that, we could do this differently, but it would be more complicated and more work. What we'd need to do is to modify pipeline builder's octo and the update dependency job template so that it can take in a list of architectures. When given a single architecture it would generate the same workflow it does now. When given a list, it would generate the same workflow, but it would repeat the part where it calls the actual action to check for the update and the part that actually updates the buildpack.toml. That way it would repeat the action within the workflow. The downside of this approach is that if one of those action update steps fails, then they all fail.

Personally, I'd prefer to stick with the present solution as it is simpler. If we need to go down the road of optimizing the number of workflows then we can do that later. Hopefully we will not need to.

@anthonydahanne
Copy link
Member

TBH, I think it's totally fine the way it is; as soon as we get away from multiple deps thanks to the soon to come RFC adding archs, we'll update pipeline builder and remove those extra workflows and buildpacks dependencies entries.

@anthonydahanne
Copy link
Member

so paketo-buildpacks/pipeline-builder#1348 is now merged; so... do we go and update bellsoft with this PR?!

maybe after the holiday season?

@anthonydahanne
Copy link
Member

or when the tests pass 🙂

@dmikusa
Copy link
Contributor Author

dmikusa commented Dec 23, 2023

@anthonydahanne tests are passing now. I'm 👍 for merging.

@dmikusa dmikusa merged commit 2abfff7 into main Jan 18, 2024
5 checks passed
@dmikusa dmikusa deleted the arm64 branch January 18, 2024 17:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver:minor A change requiring a minor version bump type:enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants