Skip to content

refactor(artifact): remove oci artifact support#1359

Merged
rchincha merged 2 commits into
project-zot:mainfrom
laurentiuNiculae:remove-artifact-manifest
May 10, 2023
Merged

refactor(artifact): remove oci artifact support#1359
rchincha merged 2 commits into
project-zot:mainfrom
laurentiuNiculae:remove-artifact-manifest

Conversation

@laurentiuNiculae

@laurentiuNiculae laurentiuNiculae commented Apr 11, 2023

Copy link
Copy Markdown
Contributor

What type of PR is this?

Which issue does this PR fix:
Closes #1425

What does this PR do / Why do we need it:

If an issue # is not available please add repro steps and logs showing the issue:

Testing done on this change:

Automation added to e2e:

Will this break upgrades or downgrades?

Does this PR introduce any user-facing change?:


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@eusebiu-constantin-petu-dbk

Copy link
Copy Markdown
Collaborator

we also have specific logic for this mediatype in sync:
https://github.com/project-zot/zot/blob/main/pkg/extensions/sync/utils.go#L682

@laurentiuNiculae
laurentiuNiculae force-pushed the remove-artifact-manifest branch 3 times, most recently from 8fed5b1 to 0ebd490 Compare April 19, 2023 16:41
@rchincha

Copy link
Copy Markdown
Contributor

https://github.com/regclient/regclient
^ build from top of main for the new image spec functionality

@laurentiuNiculae
laurentiuNiculae force-pushed the remove-artifact-manifest branch 2 times, most recently from aeee3be to 6a79f82 Compare April 20, 2023 10:42
@rchincha

Copy link
Copy Markdown
Contributor

If filtering is requested and applied, the response MUST include a header OCI-Filters-Applied: artifactType denoting that an artifactType filter was applied. If multiple filters are applied, the header MUST contain a comma separated list of applied filters.

@rchincha

Copy link
Copy Markdown
Contributor

@laurentiuNiculae
laurentiuNiculae force-pushed the remove-artifact-manifest branch 9 times, most recently from f321ccb to d133fee Compare April 26, 2023 11:39
@codecov

codecov Bot commented Apr 26, 2023

Copy link
Copy Markdown

Codecov Report

Merging #1359 (3bb2247) into main (d62dbcd) will increase coverage by 0.04%.
The diff coverage is 92.25%.

❗ Current head 3bb2247 differs from pull request most recent head acaa066. Consider uploading reports for the commit acaa066 to get more accurate results

@@            Coverage Diff             @@
##             main    #1359      +/-   ##
==========================================
+ Coverage   90.70%   90.74%   +0.04%     
==========================================
  Files          99       99              
  Lines       22390    22032     -358     
==========================================
- Hits        20308    19994     -314     
+ Misses       1556     1520      -36     
+ Partials      526      518       -8     
Impacted Files Coverage Δ
pkg/extensions/sync/utils.go 88.50% <ø> (-1.37%) ⬇️
pkg/meta/dynamo/parameters.go 80.00% <ø> (ø)
pkg/meta/repodb/boltdb-wrapper/boltdb_wrapper.go 89.08% <ø> (+0.17%) ⬆️
pkg/meta/repodb/dynamodb-wrapper/dynamo_wrapper.go 93.19% <ø> (-0.23%) ⬇️
pkg/meta/repodb/repodbfactory/repodb_factory.go 91.48% <ø> (-0.35%) ⬇️
pkg/meta/update.go 99.16% <ø> (ø)
pkg/storage/s3/s3.go 82.52% <66.66%> (-0.14%) ⬇️
pkg/test/common.go 84.89% <83.33%> (+0.24%) ⬆️
pkg/storage/local/local.go 81.36% <87.87%> (-0.88%) ⬇️
pkg/storage/common.go 95.97% <98.33%> (+0.21%) ⬆️
... and 7 more

... and 1 file with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@laurentiuNiculae
laurentiuNiculae force-pushed the remove-artifact-manifest branch 8 times, most recently from ba8b4c9 to 779e8a5 Compare April 27, 2023 14:31
@laurentiuNiculae
laurentiuNiculae marked this pull request as ready for review April 28, 2023 07:06
@laurentiuNiculae
laurentiuNiculae force-pushed the remove-artifact-manifest branch 4 times, most recently from 9e7f426 to 1d85ee2 Compare April 28, 2023 15:03
@rchincha

rchincha commented May 1, 2023

Copy link
Copy Markdown
Contributor

#1406

@laurentiuNiculae
laurentiuNiculae force-pushed the remove-artifact-manifest branch 4 times, most recently from 0d1fb43 to 5efa642 Compare May 2, 2023 14:18
Comment thread pkg/cli/cve_cmd_test.go
Comment thread pkg/meta/repodb/storage_parsing.go Outdated
@laurentiuNiculae
laurentiuNiculae force-pushed the remove-artifact-manifest branch from 60a375a to 3bb2247 Compare May 3, 2023 12:08
andaaron
andaaron previously approved these changes May 3, 2023
@laurentiuNiculae

Copy link
Copy Markdown
Contributor Author

Results for some tests I did using latest regctl version: link

@laurentiuNiculae
laurentiuNiculae force-pushed the remove-artifact-manifest branch from 3bb2247 to 1755182 Compare May 8, 2023 15:47
- add header to referrers call to indicated applied artifact type filters

Signed-off-by: Laurentiu Niculae <niculae.laurentiu1@gmail.com>
Signed-off-by: Laurentiu Niculae <niculae.laurentiu1@gmail.com>

@rchincha rchincha left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@rchincha
rchincha merged commit ea79be6 into project-zot:main May 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feat]: Add support for artifactType

4 participants