-
Notifications
You must be signed in to change notification settings - Fork 817
breakup containerImageRef.NewImageSource #6159
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
base: main
Are you sure you want to change the base?
Conversation
Ephemeral COPR build failed. @containers/packit-build please check. |
@hanwen-flow thanks for the PR. Looks like your branch needs an update, and there are all kinds of failing tests. |
160111b
to
0b725c4
Compare
you folks need to fix your CI:
This PR doesn't introduce new functionality, hence no new tests (somebody with permissions has to set a label on this PR) |
No functional changes, hence no test updates. Signed-off-by: Han-Wen Nienhuys <[email protected]>
This shortens the huge function containerImageRef.NewImageSource. No further code changes; no functional changes (hence, no tests). Signed-off-by: Han-Wen Nienhuys <[email protected]>
No functional changes (hence, no tests). Signed-off-by: Han-Wen Nienhuys <[email protected]>
This reduces NewImageSource() complexity Signed-off-by: Han-Wen Nienhuys <[email protected]>
Signed-off-by: Han-Wen Nienhuys <[email protected]>
0b725c4
to
9063978
Compare
@giuseppe , @TomSweeneyRedHat could you add the 'No New Tests' github label here? |
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
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: giuseppe, hanwen-flow 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 |
needs a second reviewer. @TomSweeneyRedHat , @mtrmac ? |
I’m afraid I can’t spend much time on this now, and this is probably locally not helpful: I happened to notice parallel #5743 . |
thanks for the heads-up, I'll need to update this PR, but that change is a big improvement. Thanks, @aaronlehmann ! |
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
containerImageRef.NewImageSource is hard to follow because it is large; this reduces complexity a bit
container commit is bottlenecked (among others) by running the layer blob through sha256, which is single-threaded. This refactoring is a preparation to split the blob into multiple streams which can be processed in parallel (not part of this PR).
How to verify it
Which issue(s) this PR fixes:
None
Special notes for your reviewer:
Does this PR introduce a user-facing change?
no.