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

[RHOAIENG-12260] - [konflux] hermetic build for storage-initializer i… #411

Merged
merged 1 commit into from
Sep 26, 2024

Conversation

spolti
Copy link
Member

@spolti spolti commented Sep 17, 2024

…s failing

chore: Fix error: No available modular metadata for modular package

What this PR does / why we need it:

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #

Type of changes
Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Feature/Issue validation/testing:

Please describe the tests that you ran to verify your changes and relevant result summary. Provide instructions so it can be reproduced.
Please also list any relevant details for your test configuration.

  • Test A

  • Test B

  • Logs

Special notes for your reviewer:

  1. Please confirm that if this PR changes any image versions, then that's the sole change this PR makes.

Checklist:

  • Have you added unit/e2e tests that prove your fix is effective or that this feature works?
  • Has code been commented, particularly in hard-to-understand areas?
  • Have you made corresponding changes to the documentation?

Release note:


Re-running failed tests

  • /rerun-all - rerun all failed workflows.
  • /rerun-workflow <workflow name> - rerun a specific failed workflow. Only one workflow name can be specified. Multiple /rerun-workflow commands are allowed per comment.

…s failing

chore:	Fix error: No available modular metadata for modular package

Signed-off-by: Spolti <[email protected]>
@Jooho
Copy link

Jooho commented Sep 19, 2024

From jira ticket, it looks like the changes fix the build issue with PoC branch. So it looks good to me, but I don't know the option ubi-8-appstream-rpms.module_hotfixes much. If Konflux team has no objection to using this option for building images, I think we will be good to merge this.

@spolti
Copy link
Member Author

spolti commented Sep 19, 2024

poetry-version-plugin: New package version is updated from given file version is: 0.13.0
poetry-version-plugin: New version updated in toml file

will need to update the poetry locks.

@israel-hdez
Copy link

Can we bring the .lock files changes to upstream? I don't think we should diverge this much.

@spolti
Copy link
Member Author

spolti commented Sep 20, 2024

Not sure, odh and upstream are too much different, we would need to do it separately later.

@spolti
Copy link
Member Author

spolti commented Sep 20, 2024

/retest

@israel-hdez
Copy link

Then, it is probably better to re-align with upstream in another effort. I don't understand why ODH needs to be that different, specially in the python projects we don't support.

In other matters... can you elaborate on why we need to update the lockfiles for this PR? The Dockerfile change looks unrelated.

@spolti
Copy link
Member Author

spolti commented Sep 20, 2024

I read somewhere in the CI logs that it was complaining about the locks, looks like I was wrong :)

Copy link

@israel-hdez israel-hdez left a comment

Choose a reason for hiding this comment

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

Now that it is minimal, I happy with it.

@Jooho the module_hotfixes name seems to be misleading. Looks like it is simply to allow dnf using non-module packages. This slack thread gives a good explanation: https://serverfault.com/a/1016865.

I guess in hermetic builds, module metadata is not made available to the builder and dnf is failing because of that... And such flag simply fixes it..... but I'm guessing here.

I'm, anyway, approving. But I'll let Jooho give the final check.

Copy link

openshift-ci bot commented Sep 20, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: israel-hdez, spolti

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@spolti
Copy link
Member Author

spolti commented Sep 23, 2024

You are right @israel-hdez.

@Jooho
Copy link

Jooho commented Sep 23, 2024

@israel-hdez Thanks for the information!

Actually, whether to use modules or non-modules isn't that important. I'm unsure if it would have any impact on security, so the key concern for me is whether it's acceptable to the Konflux team or not.

@spolti do you know who can review this change from konflux team?

@spolti
Copy link
Member Author

spolti commented Sep 23, 2024

@MohammadiIram or @riprasad from DevOps can help to review as well.

@Jooho
Copy link

Jooho commented Sep 26, 2024

With the conversation with Konflux team, they gave us this feedback.

 as long as your build passes I'd say it is fine 

So I am ok with this change.
/lgtm

@openshift-ci openshift-ci bot added the lgtm label Sep 26, 2024
@openshift-merge-bot openshift-merge-bot bot merged commit 4add27b into opendatahub-io:master Sep 26, 2024
37 of 42 checks passed
mholder6 pushed a commit to mholder6/kserve that referenced this pull request Oct 4, 2024
…s failing (opendatahub-io#411)

chore:	Fix error: No available modular metadata for modular package

Signed-off-by: Spolti <[email protected]>
openshift-merge-bot bot pushed a commit that referenced this pull request Oct 4, 2024
…s failing (#411) (#416)

chore:	Fix error: No available modular metadata for modular package

Signed-off-by: Spolti <[email protected]>
Co-authored-by: Filippe Spolti <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants