-
Notifications
You must be signed in to change notification settings - Fork 28
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
E2E test for RPM prefetching #519
Conversation
d8c95df
to
a2db05f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but you'll need to update the lockfile in the e2e test repo:
has been renamed to source
only and so the SRPMs are not part of the SBOM here.
@@ -90,6 +90,16 @@ def build_image_for_test_case(tmp_path: Path, containerfile: str, test_case: str | |||
"--network", | |||
"none", | |||
] | |||
|
|||
rpm_repos_path = f"{tmp_path}/{test_case}-output/deps/rpm/x86_64/repos.d" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shall we add a comment note here that we should extend this to more architectures in the future when we have means of testing it?
Up to you.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, it seems that arm runners will be a thing eventually: https://resources.github.com/devops/accelerate-your-cicd-with-arm-and-gpu-runners-in-github-actions/
Which makes me wonder if we should set https://docs.pydantic.dev/latest/api/config/#pydantic.config.ConfigDict.extra |
The generated repofiles need to be mounted during the build process so that dnf can use the prefetched RPM files. This patch changes the global utils so that every time a x86_64 repos.d folder is present in a test case, it will be mounted to /etc/yum.repos.d. Signed-off-by: Bruno Pimentel <[email protected]>
Signed-off-by: Bruno Pimentel <[email protected]>
fdaebb5
This PR implements an e2e test that covers the following steps:
Maintainers will complete the following section