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

Add System.Containers.Tasks and CreateNewImage #21

Closed
wants to merge 9 commits into from

Conversation

benvillalobos
Copy link
Member

Leaving this up for early reviewing.

<PackageVersion Include="MSTest.TestAdapter" Version="2.2.8" />
<PackageVersion Include="MSTest.TestFramework" Version="2.2.8" />
<PackageVersion Include="coverlet.collector" Version="3.1.2" />
<PackageVersion Include="GitHubActionsTestLogger" Version="1.4.1" />
Copy link
Member

Choose a reason for hiding this comment

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

N.B - if you bump this to at least 2.0, you get test summaries auto-generated for each CI run

Copy link
Member

Choose a reason for hiding this comment

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

Whoops I didn't follow through on dependabot: #22.

rainersigwald and others added 6 commits July 13, 2022 10:27
Configuration for temp storage

TransientTestFolder

Layer.FromDirectory

Validate Descriptor against schema

Schemas from https://github.com/opencontainers/image-spec/tree/67d2d5658fe0476ab9bf414cec164077ebff3920/schema

WIP: get an image manifest from a registry

Pull image metadata and construct an image that's just a container for the JSON metadata

Successfully upload blob

Try uploading manifest after layer

Fails with 400 `blob unknown to registry`

Try to mount layer + config blobs

Horrible try/catch, must remove ASAP

Push overall manifest

Add the layer to be pushed in test

Switch to Put (which should inherently finalize)

Update config on layer add

Extract UploadBlob

Generalize UploadBlob stream type

Always upload config as blob

What, should it be Linux?

Switch to EnsureSuccessStatusCode

Reparse JSON to get a consistent object type

This is the recommended way to flatten things that

* came from JSON and were parsed into a JsonObject
* came from a real object and were serialized into JSON

Into equivalent objects, per dotnet/runtime#64472 (comment).

Extract GetClient

Extract BlobAlreadyUploaded

Check for blobs on image upload too

Try to upload missing layers

Remove redundant layer push in test

Remove redundant mount of config

SetEntrypoint

Start local registry as part of test

Still hardcoded bits but cleans up and tests the container

Create and build project to pack

Delete only if exists

Install 6.0 SDK too

Slash directions! ✊🏻

Capture stdout

Make other tests more good

Log more

Correct app name

Extract DockerRegistryManager and set it as AssemblyInit/Cleanup
@benvillalobos
Copy link
Member Author

Closing to replace with #41

@baronfel baronfel deleted the add-tasks branch August 5, 2022 16:49
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.

3 participants