Repository navigation
feat: implement cache sharing mode + add GraphQL enum type - #4437
Merged
Merged
Conversation
dolanor
force-pushed
the
cacheSharingMode
branch
3 times, most recently
from
January 25, 2023 10:19
41ab62f to
2b3097c
Compare
This was referenced Jan 25, 2023
dolanor
force-pushed
the
cacheSharingMode
branch
from
January 25, 2023 15:49
2b3097c to
3bf9dc2
Compare
grouville
force-pushed
the
cacheSharingMode
branch
7 times, most recently
from
February 6, 2023 15:42
b204097 to
349df6c
Compare
Member
Author
|
@helderco, can you please take a look at both You can directly push on this branch, no problem 😇 Current failures (Python SDK)
|
helderco
force-pushed
the
cacheSharingMode
branch
from
February 6, 2023 18:35
d8e66e5 to
9fa0216
Compare
Contributor
|
@grouville, it's ready. |
grouville
marked this pull request as ready for review
February 6, 2023 20:23
vito
approved these changes
Feb 7, 2023
vito
left a comment
Contributor
There was a problem hiding this comment.
This is great, thanks for going through the trouble of adding enums! I think I ended up down this path before but bailed out for some other priority. Glad it's done now. Might need it for #4505 soon for representing TCP vs UDP etc.
Left a tiny suggesting but approving anyway, it's nonblocking.
Extend API to manage cache sharing mode, when mounting cache volumes Signed-off-by: grouville <[email protected]>
cache sharing mode reference doc: https://github.com/moby/buildkit/blob/master/frontend/dockerfile/docs/reference.md#run---mounttypecache Signed-off-by: Tanguy ⧓ Herrmann <[email protected]>
- Updates NodeJS codegen to fit breaking changes on codegen structure - Fixes `FormatKindEnum` func, which wasn't writing the proper enum Signed-off-by: grouville <[email protected]>
Add enum support for the Go SDK Signed-off-by: grouville <[email protected]> Co-authored-by: Tanguy ⧓ Herrmann <[email protected]>
Signed-off-by: Tanguy ⧓ Herrmann <[email protected]>
When deserializing graphQL response, the `Concurrency` field was not found. Make sure that the `containerWithMountedCacheArgs` gets properly deserialized Signed-off-by: grouville <[email protected]>
- To fix enum management on Go, Tanguy fixed the querybuilder by relying on Sprintf. Escapte it to avoid golangci from failing. - Re-Generate all SDKs Signed-off-by: grouville <[email protected]>
Escape customScalars when marshalling strings. Easy heuristic to differentiate them as enum type doesn't exist on Go Signed-off-by: grouville <[email protected]>
To keep a consistent SDK codegen, sort enum values Adds a test suite on sort function Signed-off-by: grouville <[email protected]>
To keep a consistent SDK codegen, sort enum values Adds a test suite on sort function Signed-off-by: grouville <[email protected]>
remove tests of sortEnumValues because linter was complaining Signed-off-by: grouville <[email protected]>
Fixes following issues: - Enum members were not sorted; - StrEnum doesn’t work on Python 3.10 - noqa should be removed now that we have enums in the API Signed-off-by: Helder Correia <[email protected]>
Following Alex's suggestion, add comment to explain logic Signed-off-by: grouville <[email protected]>
grouville
force-pushed
the
cacheSharingMode
branch
from
February 8, 2023 11:20
9fa0216 to
22ad988
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Extend API to manage cache sharing mode, when mounting cache volumes.
In order to do so:
To be considered: