-
Notifications
You must be signed in to change notification settings - Fork 138
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
feat: check source images built on top of Konflux images #1154
feat: check source images built on top of Konflux images #1154
Conversation
Skipping CI for Draft Pull Request. |
/retest |
c34bee9
to
19c60f1
Compare
/retest |
1 similar comment
/retest |
19c60f1
to
86d929d
Compare
f35a59a
to
b528bfd
Compare
tests/build/source_build.go
Outdated
Expect(dockerfileContent).ShouldNot(BeEmpty()) | ||
|
||
newFrom := fmt.Sprintf("FROM %s", parentImageUrl) | ||
updatedContent := strings.ReplaceAll(dockerfileContent, "FROM scratch", newFrom) |
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.
What test repo will this be used for? I still don't really understand why we need to replace the FROM
dynamically.
Why can't it be FROM <some-image-that-we-build-once-and-never-change>
?
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.
The image built from a test repo by a build-definitions CI job is bound to the build-definitions' last commit hash, it can't be pinned. I also would like to set the image built from a test repo under redhat-appstudio-qe rather than others e.g. my personal github org.
But now, I'm considering the way you mentioned either. Asking for help from QE to see which Konflux (prod/staging/qe) I can onboard the test repo to in order to build the image <some-image-that-we-build-once-and-never-change>
.
b528bfd
to
bcd637e
Compare
bcd637e
to
ce146d6
Compare
7b423b6
to
7804255
Compare
STONEBLD-2256 Major changes: * IsAppSourceFilesExists is updated to check multiple app source archives. It is renamed to doAppSourceFilesExist. * IsPreFetchDependenciesFilesExists checks if prefetched sources are included in the source image. For simplicity, it only checks Python requirements. * Refactoring part of the code. Signed-off-by: Chenxiong Qi <[email protected]>
7804255
to
e8cff6f
Compare
Quality Gate passedIssues Measures |
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 👍
For next time, it would be nice to split the refactoring into a separate commit. Otherwise it can be hard to tell what is just refactoring and what are new changes
/retest |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: chmeliik, tisutisu 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 |
Description
Update tests for source container build to ensure builds based on Konflux images work well to generate source images.
PR adding a test repository: konflux-ci/build-definitions#1006
Issue ticket number and link
STONEBLD-2256
Type of change
How Has This Been Tested?
Should pass the CI.
Checklist: