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

Merge release branch into main #2070

Merged
merged 63 commits into from
Aug 14, 2023

Commits on Jun 30, 2023

  1. [release-5.26] Bump c/storage to 1.48.0

    As the title says
    
    [NO NEW TESTS NEEDED]
    
    Signed-off-by: Tom Sweeney <tsweeney@redhat.com>
    TomSweeneyRedHat committed Jun 30, 2023
    Configuration menu
    Copy the full SHA
    a0ab0d6 View commit details
    Browse the repository at this point in the history
  2. [release-5.26] Bump to v5.26.1

    As the title says
    
    [NO NEW TESTS NEEDED]
    
    Signed-off-by: Tom Sweeney <tsweeney@redhat.com>
    TomSweeneyRedHat committed Jun 30, 2023
    Configuration menu
    Copy the full SHA
    a12aed7 View commit details
    Browse the repository at this point in the history
  3. [release-5.26] Bump to v5.26.2-dev

    As the title says
    
    [NO NEW TESTS NEEDED]
    
    Signed-off-by: Tom Sweeney <tsweeney@redhat.com>
    TomSweeneyRedHat committed Jun 30, 2023
    Configuration menu
    Copy the full SHA
    2458174 View commit details
    Browse the repository at this point in the history
  4. Merge pull request containers#2019 from TomSweeneyRedHat/dev/tsweeney…

    …/storage1.48
    
    [release-5.26] c/storage to 1.48, bump c/image to v5.26.1, and then to v5.26.2-dev
    rhatdan committed Jun 30, 2023
    Configuration menu
    Copy the full SHA
    8aacd03 View commit details
    Browse the repository at this point in the history

Commits on Aug 4, 2023

  1. Bump to 5.27.0-dev

    Starting a release-5.27 branch.
    
    Signed-off-by: Miloslav Trmač <mitr@redhat.com>
    mtrmac committed Aug 4, 2023
    Configuration menu
    Copy the full SHA
    ee881a0 View commit details
    Browse the repository at this point in the history
  2. Test the release-5.27 branch against the 1.13 branch of Skopeo

    Skopeo has updated golang.org/x/exp to an API-incompatible version,
    so test this stable branch against a corresponding Skopeo stable branch.
    
    Signed-off-by: Miloslav Trmač <mitr@redhat.com>
    mtrmac committed Aug 4, 2023
    Configuration menu
    Copy the full SHA
    4263884 View commit details
    Browse the repository at this point in the history

Commits on Aug 5, 2023

  1. Merge pull request containers#2074 from mtrmac/test-skopeo-branch

    [release-5.27] Test the release-5.27 branch against the 1.13 branch of Skopeo
    mtrmac committed Aug 5, 2023
    Configuration menu
    Copy the full SHA
    31ce3fb View commit details
    Browse the repository at this point in the history
  2. list: ListUpdate add Platform field

    `c/image` uses `Instance(` API to get the required details of an
    instance while performing replication `Platform` of instance is needed
    hence `ListUpdate` must include platform.
    
    Needed by: containers#1987
    
    Signed-off-by: Aditya R <arajan@redhat.com>
    flouthoc authored and mtrmac committed Aug 5, 2023
    Configuration menu
    Copy the full SHA
    401fa92 View commit details
    Browse the repository at this point in the history
  3. blob: TryReusingBlobWithOptions consider requiredCompression if set

    TryReusingBlob now contains a new option `RequiredCompression` which
    filters the blob by checking against a compression of the blob which is
    considerd to be resued, in case `RequiredCompression` is set and `info`
    of the blob being reused does not matches, no blob is returned.
    
    Signed-off-by: Aditya R <arajan@redhat.com>
    flouthoc authored and mtrmac committed Aug 5, 2023
    Configuration menu
    Copy the full SHA
    a62f0e5 View commit details
    Browse the repository at this point in the history
  4. helpers_test,cleanup: correct argument order

    Fixes: containers#2023 (comment).
    
    `assert.Equal` expects `assert.Equal(t, expected, actual)` instead of `assert.Equal(t, actual, expected)`.
    
    Ref:https://pkg.go.dev/github.com/stretchr/testify/assert#Assertions.Equal
    
    Signed-off-by: Aditya R <arajan@redhat.com>
    flouthoc authored and mtrmac committed Aug 5, 2023
    Configuration menu
    Copy the full SHA
    49f559d View commit details
    Browse the repository at this point in the history
  5. Fix TestOCI1IndexChooseInstanceByCompression on non-amd64

    Setting SystemContext.ArchitectureChoice to "" does not mean "match any/the first platform";
    it's the default behavior of SystemContext, and it means "choose for the current runtime
    architecture". (Originally discussed in
    containers#1789 (comment) )
    
    I.e. on amd64 these two test cases are redundant with the first two instances above,
    and on other architectures (notably ARM) they cause failures.
    
    So just drop them.
    
    Signed-off-by: Miloslav Trmač <mitr@redhat.com>
    mtrmac committed Aug 5, 2023
    Configuration menu
    Copy the full SHA
    fbd4da0 View commit details
    Browse the repository at this point in the history
  6. listupdate,oci: instance show read-only annotations and CompressionAl…

    …gorithmNames
    
    There is a need to read annotations of a particular instance to get its
    compression. Expose `Annotations` as a read-only field.
    
    Needed By: containers#1987
    
    Signed-off-by: Aditya R <arajan@redhat.com>
    flouthoc authored and mtrmac committed Aug 5, 2023
    Configuration menu
    Copy the full SHA
    049a675 View commit details
    Browse the repository at this point in the history
  7. Remove a comment

    - Generally I discourage unsing named return values, it's easy
      to miss that it wasn't set
    - I have no idea what the "in the middle of a multi-streamed copy"
      paragraph refers to.
    
    Signed-off-by: Miloslav Trmač <mitr@redhat.com>
    mtrmac committed Aug 5, 2023
    Configuration menu
    Copy the full SHA
    1a7156c View commit details
    Browse the repository at this point in the history
  8. Add *copy.Options to copier

    ... so that we don't have to carry it around in extra
    parameters. Migrating individual functions will follow.
    
    Signed-off-by: Miloslav Trmač <mitr@redhat.com>
    mtrmac committed Aug 5, 2023
    Configuration menu
    Copy the full SHA
    88a7bb9 View commit details
    Browse the repository at this point in the history
  9. Use copier.options in setupSigners

    Signed-off-by: Miloslav Trmač <mitr@redhat.com>
    mtrmac committed Aug 5, 2023
    Configuration menu
    Copy the full SHA
    8cce37b View commit details
    Browse the repository at this point in the history
  10. Use copier.options in sourceSignatures

    Signed-off-by: Miloslav Trmač <mitr@redhat.com>
    mtrmac committed Aug 5, 2023
    Configuration menu
    Copy the full SHA
    d2e20d9 View commit details
    Browse the repository at this point in the history
  11. Make compareImageDestinationManifestEqual a method on imageCopier

    ... so that we can eliminate three parameters.
    
    Signed-off-by: Miloslav Trmač <mitr@redhat.com>
    mtrmac committed Aug 5, 2023
    Configuration menu
    Copy the full SHA
    ca080b0 View commit details
    Browse the repository at this point in the history
  12. Use copier.options in copySingleImage

    Signed-off-by: Miloslav Trmač <mitr@redhat.com>
    mtrmac committed Aug 5, 2023
    Configuration menu
    Copy the full SHA
    0b2862d View commit details
    Browse the repository at this point in the history
  13. Use copier.options in copyMultipleImages

    Signed-off-by: Miloslav Trmač <mitr@redhat.com>
    mtrmac committed Aug 5, 2023
    Configuration menu
    Copy the full SHA
    68ed088 View commit details
    Browse the repository at this point in the history
  14. Consistently use c.options in copy.Image after it is set

    ... so that the code looks the same here and in possible callees.
    
    Signed-off-by: Miloslav Trmač <mitr@redhat.com>
    mtrmac committed Aug 5, 2023
    Configuration menu
    Copy the full SHA
    4033bbb View commit details
    Browse the repository at this point in the history
  15. Eliminate copier.progress and progressInterval

    Use options.Progress and ProgressInterval directly.
    
    Signed-off-by: Miloslav Trmač <mitr@redhat.com>
    mtrmac committed Aug 5, 2023
    Configuration menu
    Copy the full SHA
    c31a914 View commit details
    Browse the repository at this point in the history
  16. Eliminate copier.ociDecryptConfig

    Use c.options.OciDecryptConfig directly.
    
    Signed-off-by: Miloslav Trmač <mitr@redhat.com>
    mtrmac committed Aug 5, 2023
    Configuration menu
    Copy the full SHA
    d88ba00 View commit details
    Browse the repository at this point in the history
  17. Eliminate copier.ociEncryptConfig

    Use c.options.OciEncryptConfig directly.
    
    Signed-off-by: Miloslav Trmač <mitr@redhat.com>
    mtrmac committed Aug 5, 2023
    Configuration menu
    Copy the full SHA
    5e20788 View commit details
    Browse the repository at this point in the history
  18. Eliminate copier.downloadForeignLayers

    Use c.options.DownloadForeignLayers directly.
    
    Signed-off-by: Miloslav Trmač <mitr@redhat.com>
    mtrmac committed Aug 5, 2023
    Configuration menu
    Copy the full SHA
    8b4f64c View commit details
    Browse the repository at this point in the history
  19. Eliminate imageCopier.ociEncryptLayers

    Use ic.c.options.OciEncryptLayers directly.
    
    Signed-off-by: Miloslav Trmač <mitr@redhat.com>
    mtrmac committed Aug 5, 2023
    Configuration menu
    Copy the full SHA
    d1d3d63 View commit details
    Browse the repository at this point in the history
  20. Introduce copier.unparsedToplevel

    So that we don't need to pass it around in a parameter.
    
    Signed-off-by: Miloslav Trmač <mitr@redhat.com>
    mtrmac committed Aug 5, 2023
    Configuration menu
    Copy the full SHA
    4d791ba View commit details
    Browse the repository at this point in the history
  21. Use copier.unparsedToplevel in copySingleImage

    Signed-off-by: Miloslav Trmač <mitr@redhat.com>
    mtrmac committed Aug 5, 2023
    Configuration menu
    Copy the full SHA
    455e5dc View commit details
    Browse the repository at this point in the history
  22. Use c.unparsedToplevel in copyMultipleImages

    Signed-off-by: Miloslav Trmač <mitr@redhat.com>
    mtrmac committed Aug 5, 2023
    Configuration menu
    Copy the full SHA
    d6d389c View commit details
    Browse the repository at this point in the history
  23. Eliminate the unparsedToplevel variable in copy.Image

    Use copier.unparsedToplevel now that it exists.
    
    Signed-off-by: Miloslav Trmač <mitr@redhat.com>
    mtrmac committed Aug 5, 2023
    Configuration menu
    Copy the full SHA
    8fcd8ce View commit details
    Browse the repository at this point in the history
  24. Add policyContext to copier

    ... so that we don't need to carry it around in parameters.
    
    Signed-off-by: Miloslav Trmač <mitr@redhat.com>
    mtrmac committed Aug 5, 2023
    Configuration menu
    Copy the full SHA
    fa1dfbc View commit details
    Browse the repository at this point in the history
  25. Use copier.policyContext in copySingleImage

    Signed-off-by: Miloslav Trmač <mitr@redhat.com>
    mtrmac committed Aug 5, 2023
    Configuration menu
    Copy the full SHA
    c441f52 View commit details
    Browse the repository at this point in the history
  26. Remove the policyContext parameter from copyMultipleImages

    It is no longer used.
    
    Signed-off-by: Miloslav Trmač <mitr@redhat.com>
    mtrmac committed Aug 5, 2023
    Configuration menu
    Copy the full SHA
    f367a5f View commit details
    Browse the repository at this point in the history
  27. Return a new struct copySingleImageResult from copySingleImage

    ... so that we don't have so many unnamed return values, and
    we can manage the return values as a batch.
    
    Signed-off-by: Miloslav Trmač <mitr@redhat.com>
    mtrmac committed Aug 5, 2023
    Configuration menu
    Copy the full SHA
    0cdeba7 View commit details
    Browse the repository at this point in the history
  28. Have compareImageDestinationManifestEqual return a *copySingleImageRe…

    …sult on a match
    
    ... so that the caller doesn't have to assemble it. Using a pointer-or-nil eliminates
    a separate boolean.
    
    Signed-off-by: Miloslav Trmač <mitr@redhat.com>
    mtrmac committed Aug 5, 2023
    Configuration menu
    Copy the full SHA
    0517bc4 View commit details
    Browse the repository at this point in the history
  29. Track the manifest upload data in a wipResult variable

    ... instead of three separate ones.
    
    Signed-off-by: Miloslav Trmač <mitr@redhat.com>
    mtrmac committed Aug 5, 2023
    Configuration menu
    Copy the full SHA
    1e16fb9 View commit details
    Browse the repository at this point in the history
  30. oci_index: init Annotations if nil and required

    If `UpdateCompressionAlgorithms` is set then `Annotations` map must be
    initialized if its not set.
    
    Signed-off-by: Aditya R <arajan@redhat.com>
    flouthoc authored and mtrmac committed Aug 5, 2023
    Configuration menu
    Copy the full SHA
    94b2c09 View commit details
    Browse the repository at this point in the history
  31. copy/single: set requiredCompression if compressionFormat is changed

    Modifies `copy/single` to correctly use the feature from
    containers#2023, that is if compression is
    changed blob must be resued only if it matches required compression.
    
    Signed-off-by: Aditya R <arajan@redhat.com>
    flouthoc authored and mtrmac committed Aug 5, 2023
    Configuration menu
    Copy the full SHA
    e93a281 View commit details
    Browse the repository at this point in the history
  32. copy/single: accept requireCompressionFormatMatch for imagecopier

    imagecopier implementes feature for requireCompressionFormatMatch
    refactor `copySingleImage` to accept that as an argument.
    
    Signed-off-by: Aditya R <arajan@redhat.com>
    flouthoc authored and mtrmac committed Aug 5, 2023
    Configuration menu
    Copy the full SHA
    54d86a5 View commit details
    Browse the repository at this point in the history
  33. copy/multiple: instanceCopyCopy honor UpdateCompressionAlgorithms

    Users can set compression formats while performing `copy` in such cases
    `instanceCopyCopy` must honor UpdateCompressionAlgorithms.
    
    Signed-off-by: Aditya R <arajan@redhat.com>
    flouthoc authored and mtrmac committed Aug 5, 2023
    Configuration menu
    Copy the full SHA
    98cd2aa View commit details
    Browse the repository at this point in the history
  34. internal/set: verify if no duplicates in set

    Verifies if no duplicates are kept when `.Values()` is used to return
    slice.
    
    Signed-off-by: Aditya R <arajan@redhat.com>
    flouthoc authored and mtrmac committed Aug 5, 2023
    Configuration menu
    Copy the full SHA
    a650a20 View commit details
    Browse the repository at this point in the history
  35. copy/single: wrap arguments in copySingleImageOptions

    Create a wrapper around arguments of `copySingleImage`
    
    Signed-off-by: Aditya R <arajan@redhat.com>
    flouthoc authored and mtrmac committed Aug 5, 2023
    Configuration menu
    Copy the full SHA
    7521a10 View commit details
    Browse the repository at this point in the history
  36. copy/single: add custom compressionFormat, compressionLevel fields

    After containers#2048 there is no room for copy/multiple to pass custom compressionFormat to copySingleImage
    while processing each instance, following PR introduces that functionality again and wraps options
    to simpler struct.
    
    Signed-off-by: Aditya R <arajan@redhat.com>
    flouthoc authored and mtrmac committed Aug 5, 2023
    Configuration menu
    Copy the full SHA
    2a961fd View commit details
    Browse the repository at this point in the history
  37. copy/single: honor c.options.DestCtx for regular copy

    If its a regular copy callers might not set `compressionFormat` and
    `compressionLevel` in such case still honor compression which is set in
    DestinationCtx from copier.
    
    Signed-off-by: Aditya R <arajan@redhat.com>
    flouthoc authored and mtrmac committed Aug 5, 2023
    Configuration menu
    Copy the full SHA
    033a141 View commit details
    Browse the repository at this point in the history
  38. copy: add EnsureCompressionVariantExist for instanceCopyClone

    * copy.Options now contains a new field `EnsureCompressionVariantExists
      map[string]int` which allows users to specify if they want to clone
    images with specified `compression`.
    
    Signed-off-by: Aditya R <arajan@redhat.com>
    flouthoc authored and mtrmac committed Aug 5, 2023
    Configuration menu
    Copy the full SHA
    2d781e2 View commit details
    Browse the repository at this point in the history
  39. internal/set: implement AddSlice for easier syntax

    Signed-off-by: Aditya R <arajan@redhat.com>
    flouthoc authored and mtrmac committed Aug 5, 2023
    Configuration menu
    Copy the full SHA
    01a09cc View commit details
    Browse the repository at this point in the history
  40. copy/multiple: implement instanceCopyClone

    Implement `instanceCopyClone` for multiple compression.
    
    Signed-off-by: Aditya R <arajan@redhat.com>
    flouthoc authored and mtrmac committed Aug 5, 2023
    Configuration menu
    Copy the full SHA
    4b86fae View commit details
    Browse the repository at this point in the history
  41. copy/multiple: instanceCopyClone set custom compression

    While performing copy, set a custom compression passed generated from
    prepareInstanceCopies.
    
    Signed-off-by: Aditya R <arajan@redhat.com>
    flouthoc authored and mtrmac committed Aug 5, 2023
    Configuration menu
    Copy the full SHA
    a269ca9 View commit details
    Browse the repository at this point in the history
  42. copy/multiple: error on EnsureCompressionVariant and CopySpecificImages

    Following option does not provides a way to detect and exclude
    compression if it already exists, this feature may be implemented in
    future.
    
    See: containers#1987 (comment)
    
    Signed-off-by: Aditya R <arajan@redhat.com>
    flouthoc authored and mtrmac committed Aug 5, 2023
    Configuration menu
    Copy the full SHA
    174c46f View commit details
    Browse the repository at this point in the history
  43. copy/multiple: report more meaningful copy msg

    After implementing `instanceCopyClone` now instance to be copied can
    exceed the original number of instances in the source, so amend report
    message to make it more meaningful.
    
    Signed-off-by: Aditya R <arajan@redhat.com>
    flouthoc authored and mtrmac committed Aug 5, 2023
    Configuration menu
    Copy the full SHA
    3a40cd2 View commit details
    Browse the repository at this point in the history
  44. copy/multiple_test: retrofit tests for instanceCopyCopy

    Signed-off-by: Aditya R <arajan@redhat.com>
    flouthoc authored and mtrmac committed Aug 5, 2023
    Configuration menu
    Copy the full SHA
    cfc0078 View commit details
    Browse the repository at this point in the history
  45. copy/multiple_test: implement test for instanceCopyClone with helpers

    Signed-off-by: Aditya R <arajan@redhat.com>
    flouthoc authored and mtrmac committed Aug 5, 2023
    Configuration menu
    Copy the full SHA
    70a5292 View commit details
    Browse the repository at this point in the history
  46. copy/multiple_test: multiple copy requests of same compression

    * test multiple copy requests of same compression
    
    Signed-off-by: Aditya R <arajan@redhat.com>
    flouthoc authored and mtrmac committed Aug 5, 2023
    Configuration menu
    Copy the full SHA
    7f3eeec View commit details
    Browse the repository at this point in the history
  47. copy/multiple_test: clone must happen once for duplicate entries

    Signed-off-by: Aditya R <arajan@redhat.com>
    flouthoc authored and mtrmac committed Aug 5, 2023
    Configuration menu
    Copy the full SHA
    5defa51 View commit details
    Browse the repository at this point in the history
  48. copy/copy: fail copySingleImage cases on EnsureCompressionVariantsExist

    EnsureCompressionVariantsExist is only valid when working with a
    manifest list.
    
    Signed-off-by: Aditya R <arajan@redhat.com>
    flouthoc authored and mtrmac committed Aug 5, 2023
    Configuration menu
    Copy the full SHA
    e3cf0f2 View commit details
    Browse the repository at this point in the history
  49. copy/multiple: priority of instanceCopyCopy must be higher

    When copying multiple images i.e `instanceCopyClone` and no image
    exists in registry in such case if clones are prepared and
    copied first then original copies will reuse blobs from the clone which
    is unexpected since argument `requireCompressionFormatMatch` is by
    default false for `instanceCopyCopy` case.
    
    Problem described in following PR is easily reproduceable when working
    with tools such as buildah, because without this PR buildah will push
    `clones` first instead of originals and later on `originals` will reuse
    blobs from `clones`.
    
    Signed-off-by: Aditya R <arajan@redhat.com>
    flouthoc authored and mtrmac committed Aug 5, 2023
    Configuration menu
    Copy the full SHA
    9eff792 View commit details
    Browse the repository at this point in the history
  50. .cirrus: lock skopeo to stable version and correct dest branch

    Signed-off-by: Aditya R <arajan@redhat.com>
    Signed-off-by: Miloslav Trmač <mitr@redhat.com>
    mtrmac committed Aug 5, 2023
    Configuration menu
    Copy the full SHA
    e907cf1 View commit details
    Browse the repository at this point in the history
  51. Configuration menu
    Copy the full SHA
    7b5b6fb View commit details
    Browse the repository at this point in the history
  52. Release 5.27.0

    Signed-off-by: Miloslav Trmač <mitr@redhat.com>
    mtrmac committed Aug 5, 2023
    Configuration menu
    Copy the full SHA
    57ab99a View commit details
    Browse the repository at this point in the history
  53. Bump to v5.27.1-dev

    Signed-off-by: Miloslav Trmač <mitr@redhat.com>
    mtrmac committed Aug 5, 2023
    Configuration menu
    Copy the full SHA
    22f70e8 View commit details
    Browse the repository at this point in the history

Commits on Aug 7, 2023

  1. Merge pull request containers#2075 from mtrmac/testing-5.27-backport

    [release-5.27] Preparing 5.27 backport
    mtrmac committed Aug 7, 2023
    Configuration menu
    Copy the full SHA
    b6b51e8 View commit details
    Browse the repository at this point in the history
  2. Fix the branch we use for determining a git-validation starting point

    Signed-off-by: Miloslav Trmač <mitr@redhat.com>
    mtrmac committed Aug 7, 2023
    Configuration menu
    Copy the full SHA
    8b27658 View commit details
    Browse the repository at this point in the history

Commits on Aug 8, 2023

  1. Merge pull request containers#2084 from mtrmac/5.27-validation-branch

    [release-5.27] Fix the branch we use for determining a git-validation starting point
    vrothberg committed Aug 8, 2023
    Configuration menu
    Copy the full SHA
    7e74fd4 View commit details
    Browse the repository at this point in the history

Commits on Aug 11, 2023

  1. Configuration menu
    Copy the full SHA
    04232f1 View commit details
    Browse the repository at this point in the history