Skip to content

feat(resources): Add the build client - #10

Merged
danielvallance merged 1 commit into
prod-stagingfrom
dragosg/tool-1672-generate-the-python-build-client-in-python-sdk
Oct 20, 2026
Merged

danielvallance merged 1 commit into
prod-stagingfrom
dragosg/tool-1672-generate-the-python-build-client-in-python-sdk

Conversation

@dragosgheorghioiu

@dragosgheorghioiu dragosgheorghioiu commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

The SDK had no client for the build API, so a Python caller could not follow a build's progress or read what it pushed.

Generate the plumbing from build.yaml, skipping the progress stream the templates cannot return, and add ukc.builds on top: it follows the stream across cuts, skipping what it has seen, and takes its sources from constructors that carry only what was given.

@dragosgheorghioiu
dragosgheorghioiu marked this pull request as draft October 20, 2026 13:17
@dragosgheorghioiu
dragosgheorghioiu force-pushed the dragosg/tool-1672-generate-the-python-build-client-in-python-sdk branch from 35d6c66 to 1b81df7 Compare October 20, 2026 13:19
@dragosgheorghioiu
dragosgheorghioiu requested a balanced review from Copilot October 20, 2026 14:10

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@dragosgheorghioiu
dragosgheorghioiu marked this pull request as ready for review October 20, 2026 14:49
@danielvallance
danielvallance requested a balanced review from Copilot October 20, 2026 15:00

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

Progress following retries truncated HTTP refusals after an earlier stream instead of raising them immediately.

1 open issue

Review effort: Balanced

Comment thread src/unikraft_cloud/resources/builds.py Resolved
The SDK had no client for the build API, so a Python caller built
images through the CLI and could not follow a build's progress or
read what it pushed.

Generate the plumbing from build.yaml, skipping the progress stream
the templates cannot return, and add ukc.builds on top: it follows
the stream across cuts, skipping what it has seen, and takes its
sources from constructors that carry only what was given.

Signed-off-by: Dragos Gheorghioiu <dragosg@unikraft.com>
@dragosgheorghioiu
dragosgheorghioiu force-pushed the dragosg/tool-1672-generate-the-python-build-client-in-python-sdk branch from 7d159c4 to ce45a4a Compare October 20, 2026 16:47
@danielvallance
danielvallance requested a balanced review from Copilot October 20, 2026 17:32

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

The default skip list silently excludes operations without identifiers instead of preserving generator validation.

1 open issue
1 resolved since last review

Review effort: Balanced

Comment thread templates/resources.tmpl Resolved
Comment on lines +59 to +64
| Code | Description |
|--------------------|-------------|
| `invalid` | `400`: the request is malformed, or a value in it is
not valid: the body is not JSON, a required field is missing, a source has
more than one of `session`, `git` and `url`, an image reference does not
parse, an inline Kraftfile does not parse or cannot be built, ... |

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

lmao we should probs fix to not wrap MK tables in the generator

@danielvallance danielvallance 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.

Reviewed-by: Daniel Vallance daniel@unikraft.com
Approved-by: Daniel Vallance daniel@unikraft.com

@danielvallance
danielvallance self-requested a review October 20, 2026 19:29

@danielvallance danielvallance 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.

Reviewed-by: Daniel Vallance daniel@unikraft.com
Approved-by: Daniel Vallance daniel@unikraft.com

@danielvallance
danielvallance merged commit c6777b2 into prod-staging Oct 20, 2026
11 checks passed
@danielvallance
danielvallance deleted the dragosg/tool-1672-generate-the-python-build-client-in-python-sdk branch October 20, 2026 19:29
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.

4 participants