Don't store signatures if there is none of them#2001
Conversation
c016ed9 to
90699ce
Compare
mtrmac
left a comment
There was a problem hiding this comment.
Thanks.
If we are improving this, the major user-visible aspect is actually that (typically during a pull) it may be the Commit that takes a long time, and that’s currently being attributed to storing signatures. That’s certainly not ideal; but just dropping that and attributing the delay to the previous layer copies would not be clearly better.
So I think the Commit step should cause a progress log (potentially with a per-transport opt-in to avoid noise?), and we can revisit the signature step afterwards.
Currently, the copy command prints the message 'Storing signatures' and calls the signature storing function, even if there are no signatures present. This can mislead users and make them believe that there are image signatures. The proposed change modifies the copy function to print the message and invoke the image storing function only if there is at least one signature. Signed-off-by: Mike <mike.sul@foundries.io>
90699ce to
8bbc9c4
Compare
The previous step is not layer copy iiuc, rather Do you mean that |
|
My mistake; it’s the manifest step indeed. That’s certainly less misleading than a layer copy — a bit: “why does writing a 1KB file take a minute?”. |
|
Either way, this is an improvement. |
After[1] c/image no longer prints "Storing signatures" so we should not check for it. [1] containers/image#2001 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
After[1] c/image no longer prints "Storing signatures" so we should not check for it. [1] containers/image#2001 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
After[1] c/image no longer prints "Storing signatures" so we should not check for it. [1] containers/image#2001 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
After[1] c/image no longer prints "Storing signatures" so we should not check for it. [1] containers/image#2001 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
After[1] c/image no longer prints "Storing signatures" so we should not check for it. [1] containers/image#2001 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
After[1] c/image no longer prints "Storing signatures" so we should not check for it. [1] containers/image#2001 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
After[1] c/image no longer prints "Storing signatures" so we should not check for it. [1] containers/image#2001 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
After[1] c/image no longer prints "Storing signatures" so we should not check for it. [1] containers/image#2001 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
After[1] c/image no longer prints "Storing signatures" so we should not check for it. [1] containers/image#2001 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
(cherry picked from commit 2c0cd36) After[1] c/image no longer prints "Storing signatures" so we should not check for it. [1] containers/image#2001 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
(cherry picked from commit 2c0cd36) After[1] c/image no longer prints "Storing signatures" so we should not check for it. [1] containers/image#2001 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
(cherry picked from commit 2c0cd36) After[1] c/image no longer prints "Storing signatures" so we should not check for it. [1] containers/image#2001 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
After[1] c/image no longer prints "Storing signatures" so we should not check for it. [1] containers/image#2001 Signed-off-by: Paul Holzinger <pholzing@redhat.com> (cherry picked from commit 6eaf8a2) Signed-off-by: Lokesh Mandvekar <lsm5@redhat.com>
After[1] c/image no longer prints "Storing signatures" so we should not check for it. [1] containers/image#2001 (partial cherry-pick from commit 6eaf8a2) Signed-off-by: Lokesh Mandvekar <lsm5@redhat.com>
Currently, the copy command prints the message 'Storing signatures' and calls the signature storing function, even if there are no signatures present. This can mislead users and make them believe that there are image signatures.
The proposed change modifies the copy function to print the message and invoke the image storing function only if there is at least one signature.