feat(runtime): add cloud image build support#13
Open
117503445 wants to merge 1 commit into
Open
Conversation
Signed-off-by: 117503445 <t117503445@gmail.com>
There was a problem hiding this comment.
Pull request overview
Adds cloud image build support for Agent Runtime YAML workflows, allowing ar runtime apply to build images before deployment and adding a standalone ar runtime cloud-build command.
Changes:
- Adds parsing and serialization for
spec.container.cloudBuild. - Adds docker-image-builder download/execution helpers and CLI command wiring.
- Updates runtime docs, examples, and tests for cloud-build behavior.
Reviewed changes
Copilot reviewed 16 out of 16 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
src/agentrun_cli/_utils/agentruntime_yaml.py |
Parses cloudBuild YAML fields into runtime model objects. |
src/agentrun_cli/_utils/cloud_build.py |
Implements builder environment, arguments, binary download/cache, execution, and output serialization. |
src/agentrun_cli/commands/runtime/cloud_build_cmd.py |
Adds standalone runtime cloud-build command. |
src/agentrun_cli/commands/runtime/apply_cmd.py |
Runs cloud build before runtime reconciliation and includes result output. |
src/agentrun_cli/commands/runtime/render_cmd.py |
Adds cloud build plan preview to render output. |
src/agentrun_cli/commands/runtime/__init__.py |
Registers the new cloud-build subcommand. |
tests/unit/test_runtime_yaml.py |
Adds cloud build YAML parsing and validation coverage. |
tests/unit/test_cloud_build.py |
Adds unit tests for cloud build helpers. |
tests/integration/test_runtime_cmd.py |
Adds CLI integration coverage for render, cloud-build, and apply behavior. |
README.md, README_zh.md, docs/en/runtime.md, docs/zh/runtime.md, docs/en/runtime-yaml.md, docs/zh/runtime-yaml.md, agentruntime.yaml |
Documents cloud build usage and YAML schema. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| Args: | ||
| value: Field value. | ||
| where: Path used in error messages. | ||
| """ |
Comment on lines
+214
to
+218
| url = f"{BUILDER_BASE_URL}/{tag}/{_artifact_name()}" | ||
| try: | ||
| _download_binary(url, tmp) | ||
| tmp.chmod(tmp.stat().st_mode | stat.S_IXUSR | stat.S_IXGRP | stat.S_IXOTH) | ||
| tmp.replace(target) |
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.
No description provided.