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

avoid conflict with existing sbom and sources assets #3180

Merged
merged 1 commit into from
May 1, 2023

Conversation

deitch
Copy link
Contributor

@deitch deitch commented May 1, 2023

We were generating the sbom and sources with each arch in the Actions matrix, but then uploading with a unified filename. This causes a conflict with the existing file, showing errors like this

This changes it to include the architecture in the asset name, so it will not conflict.

Signed-off-by: Avi Deitcher <avi@deitcher.net>
@deitch deitch requested review from eriknordmark and rvs as code owners May 1, 2023 16:38
Copy link
Contributor

@eriknordmark eriknordmark left a comment

Choose a reason for hiding this comment

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

LGTM

@deitch
Copy link
Contributor Author

deitch commented May 1, 2023

This begs the question whether we should have the sbom and sources for each architecture on the assets page.

On the one hand, they can differ slightly (should be minimal, but it is possible to be non-zero). On the other hand, especially with the sources, that can be pretty big.

This PR generates it for each arch. Alternative options:

  • generate sbom and sources for each arch (this PR currently)
  • generate sbom (small) for each arch and sources just once (a bit off)
  • generate sbom and sources just once (might be slightly off, but still pretty good)

@eriknordmark
Copy link
Contributor

This begs the question whether we should have the sbom and sources for each architecture on the assets page.

I wouldn't be surprised if we end up with more differences for the kernel for ARM builds; today we include all source even if it is specific to one arch but not clear it will stay that way as we learn more about ARM boards and required variants. So having unique names is a good idea.
Question is whether we need to build and publish anything but AMD64 for now; can we easily do that?

@deitch
Copy link
Contributor Author

deitch commented May 1, 2023

Question is whether we need to build and publish anything but AMD64 for now; can we easily do that?

We can. We either can put conditionals on the source and sbom generation and asset uploads; or we can pull them out of the matrix and give them their own step.

Based on your comment, though, about them diverging, I am not sure we should. If we are going to need them all soon anyways, why not just leave them there?

@eriknordmark eriknordmark merged commit c7aaa37 into lf-edge:master May 1, 2023
@eriknordmark
Copy link
Contributor

Based on your comment, though, about them diverging, I am not sure we should. If we are going to need them all soon anyways, why not just leave them there?

As long as the built time impact isn't too bad that's fine.

@deitch deitch deleted the release-assets-per-arch branch May 1, 2023 17:33
@deitch
Copy link
Contributor Author

deitch commented May 1, 2023

Fair enough. If it gets bad, we can update it.

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.

2 participants