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

feat: MemoryTarget Implemented #13

Merged
merged 46 commits into from
Apr 28, 2023
Merged

feat: MemoryTarget Implemented #13

merged 46 commits into from
Apr 28, 2023

Conversation

sammychinedu2ky
Copy link
Member

@sammychinedu2ky sammychinedu2ky commented Apr 21, 2023

fixes #4

@Wwwsylvia
Copy link
Member

Wwwsylvia commented Apr 21, 2023

The PR title should start with "feat:". And please use the keywords to reference an issue.

@sammychinedu2ky sammychinedu2ky changed the title Feat: MemoryTarget Implemented feat: MemoryTarget Implemented Apr 21, 2023
@sammychinedu2ky
Copy link
Member Author

The PR title should start with "feat:". And please use the keywords to reference an issue.

Ok thanks, I have fixed that

Oras/Constants/DockerMediaTypes.cs Outdated Show resolved Hide resolved
Oras/Constants/DockerMediaTypes.cs Outdated Show resolved Hide resolved
Oras/Constants/DockerMediaTypes.cs Outdated Show resolved Hide resolved
Oras/Constants/OCISPECMediaTypes.cs Outdated Show resolved Hide resolved
Oras/Interfaces/IFetcher.cs Show resolved Hide resolved
Oras/Interfaces/IFetcher.cs Show resolved Hide resolved
Oras/Models/Artifact.cs Outdated Show resolved Hide resolved
Oras/Models/MemoryGraph.cs Outdated Show resolved Hide resolved
Oras/Models/MinimumDescriptor.cs Outdated Show resolved Hide resolved
Oras/Models/Descriptor.cs Show resolved Hide resolved
Copy link
Member

@Wwwsylvia Wwwsylvia left a comment

Choose a reason for hiding this comment

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

Unit tests are necessary

Oras/Constants/OCISPECMediaTypes.cs Outdated Show resolved Hide resolved
Oras/Content/Storage.cs Outdated Show resolved Hide resolved
Oras/Models/Descriptor.cs Outdated Show resolved Hide resolved
Oras/Content/Storage.cs Outdated Show resolved Hide resolved
Oras/Content/Storage.cs Outdated Show resolved Hide resolved
Oras/Memory/MemoryStorage.cs Outdated Show resolved Hide resolved
Oras/Memory/MemoryStorage.cs Outdated Show resolved Hide resolved
Oras/Memory/MemoryStorage.cs Outdated Show resolved Hide resolved
Oras/Memory/MemoryTagResolver.cs Outdated Show resolved Hide resolved
Oras/Memory/MemoryTagResolver.cs Outdated Show resolved Hide resolved
Signed-off-by: Samson Amaugo <sammychinedu2ky@gmail.com>
Signed-off-by: Samson Amaugo <sammychinedu2ky@gmail.com>
Signed-off-by: Samson Amaugo <sammychinedu2ky@gmail.com>
Signed-off-by: Samson Amaugo <sammychinedu2ky@gmail.com>
Signed-off-by: Samson Amaugo <sammychinedu2ky@gmail.com>
Signed-off-by: Samson Amaugo <sammychinedu2ky@gmail.com>
Signed-off-by: Samson Amaugo <sammychinedu2ky@gmail.com>
This reverts commit 5e99f87.

Signed-off-by: Samson Amaugo <sammychinedu2ky@gmail.com>
Signed-off-by: Samson Amaugo <sammychinedu2ky@gmail.com>
Oras/Constants/OCIMediaTypes .cs Show resolved Hide resolved
Oras/Interfaces/IFetcher.cs Outdated Show resolved Hide resolved
Oras/Interfaces/IReadOnlyStorage.cs Outdated Show resolved Hide resolved
Oras/Interfaces/IReadOnlyStorage.cs Outdated Show resolved Hide resolved
Oras/Interfaces/IStorage.cs Outdated Show resolved Hide resolved
Oras/Memory/MemoryStorage.cs Outdated Show resolved Hide resolved
Oras/Memory/MemoryTagResolver.cs Outdated Show resolved Hide resolved
Oras/Memory/MemoryGraph.cs Outdated Show resolved Hide resolved
Oras/Memory/MemoryGraph.cs Outdated Show resolved Hide resolved
Oras/Memory/MemoryTarget.cs Show resolved Hide resolved
@Wwwsylvia
Copy link
Member

Please add some basic unit tests at least for MemoryTarget to verify the code works as expected.

sammychinedu2ky and others added 10 commits April 25, 2023 05:07
Co-authored-by: Lixia (Sylvia) Lei <lixlei@microsoft.com>
Signed-off-by: Samson Amaugo <sammychinedu2ky@gmail.com>
Co-authored-by: Lixia (Sylvia) Lei <lixlei@microsoft.com>
Signed-off-by: Samson Amaugo <sammychinedu2ky@gmail.com>
Co-authored-by: Lixia (Sylvia) Lei <lixlei@microsoft.com>
Signed-off-by: Samson Amaugo <sammychinedu2ky@gmail.com>
Co-authored-by: Lixia (Sylvia) Lei <lixlei@microsoft.com>
Signed-off-by: Samson Amaugo <sammychinedu2ky@gmail.com>
Signed-off-by: Samson Amaugo <sammychinedu2ky@gmail.com>
Signed-off-by: Samson Amaugo <sammychinedu2ky@gmail.com>
Signed-off-by: Samson Amaugo <sammychinedu2ky@gmail.com>
Signed-off-by: Samson Amaugo <sammychinedu2ky@gmail.com>
Signed-off-by: Samson Amaugo <sammychinedu2ky@gmail.com>
Test/OrasTest.csproj Outdated Show resolved Hide resolved
Oras/Memory/MemoryTarget.cs Outdated Show resolved Hide resolved
Signed-off-by: Samson Amaugo <sammychinedu2ky@gmail.com>
Signed-off-by: Samson Amaugo <sammychinedu2ky@gmail.com>
Signed-off-by: Samson Amaugo <sammychinedu2ky@gmail.com>
Signed-off-by: Samson Amaugo <sammychinedu2ky@gmail.com>
Signed-off-by: Samson Amaugo <sammychinedu2ky@gmail.com>
Signed-off-by: Samson Amaugo <sammychinedu2ky@gmail.com>
Signed-off-by: Samson Amaugo <sammychinedu2ky@gmail.com>
Copy link
Member

@Wwwsylvia Wwwsylvia left a comment

Choose a reason for hiding this comment

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

Please take care of the access scopes of functions.

Oras/Memory/MemoryGraph.cs Outdated Show resolved Hide resolved
Oras/Memory/MemoryGraph.cs Outdated Show resolved Hide resolved
Oras/Memory/MemoryGraph.cs Outdated Show resolved Hide resolved
Oras/Memory/MemoryGraph.cs Outdated Show resolved Hide resolved
Oras/Memory/MemoryStorage.cs Outdated Show resolved Hide resolved
Oras/Memory/MemoryTagResolver.cs Show resolved Hide resolved
Oras/Memory/MemoryTarget.cs Show resolved Hide resolved
Oras/Content/StorageUtility.cs Outdated Show resolved Hide resolved
.idea/.idea.Oras/.idea/.gitignore Outdated Show resolved Hide resolved
Oras.Tests/MemoryTest/MemoryTargetTest.cs Show resolved Hide resolved
Signed-off-by: Samson Amaugo <sammychinedu2ky@gmail.com>
Signed-off-by: Samson Amaugo <sammychinedu2ky@gmail.com>
Signed-off-by: Samson Amaugo <sammychinedu2ky@gmail.com>
Signed-off-by: Samson Amaugo <sammychinedu2ky@gmail.com>
Signed-off-by: Samson Amaugo <sammychinedu2ky@gmail.com>
Oras/Content/StorageUtility.cs Outdated Show resolved Hide resolved
Oras/Content/StorageUtility.cs Outdated Show resolved Hide resolved
Oras/Memory/MemoryGraph.cs Show resolved Hide resolved
Oras/Memory/MemoryGraph.cs Outdated Show resolved Hide resolved
Oras/Content/GraphUtility.cs Outdated Show resolved Hide resolved
Oras/Content/StorageUtility.cs Outdated Show resolved Hide resolved
Oras/Content/StorageUtility.cs Outdated Show resolved Hide resolved
Oras/Interfaces/IFetcher.cs Outdated Show resolved Hide resolved
Oras/Interfaces/IReadOnlyStorage.cs Outdated Show resolved Hide resolved
Oras.Tests/MemoryTest/MemoryTargetTest.cs Show resolved Hide resolved
Oras/Content/StorageUtility.cs Outdated Show resolved Hide resolved
Signed-off-by: Samson Amaugo <sammychinedu2ky@gmail.com>
Signed-off-by: Samson Amaugo <sammychinedu2ky@gmail.com>
Signed-off-by: Samson Amaugo <sammychinedu2ky@gmail.com>
Signed-off-by: Samson Amaugo <sammychinedu2ky@gmail.com>
Signed-off-by: Samson Amaugo <sammychinedu2ky@gmail.com>
Signed-off-by: Samson Amaugo <sammychinedu2ky@gmail.com>
Signed-off-by: Samson Amaugo <sammychinedu2ky@gmail.com>
Signed-off-by: Samson Amaugo <sammychinedu2ky@gmail.com>
Oras/Models/MinimumDescriptor.cs Outdated Show resolved Hide resolved
Oras/Memory/MemoryGraph.cs Outdated Show resolved Hide resolved
Oras/Memory/MemoryGraph.cs Outdated Show resolved Hide resolved
Oras/Memory/MemoryGraph.cs Outdated Show resolved Hide resolved
Signed-off-by: Samson Amaugo <sammychinedu2ky@gmail.com>
@sammychinedu2ky
Copy link
Member Author

Here is the Code Coverage Report of the Test taken
image

Copy link
Member

@Wwwsylvia Wwwsylvia left a comment

Choose a reason for hiding this comment

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

LGTM

@Wwwsylvia Wwwsylvia merged commit 411011e into oras-project:main Apr 28, 2023
@sammychinedu2ky sammychinedu2ky deleted the MemoryTarget branch May 1, 2023 13:06
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.

Implement Memory Target
2 participants