Skip to content

feat(runtime): add cloud image build support#13

Open
117503445 wants to merge 1 commit into
mainfrom
feat/runtime-cloud-build
Open

feat(runtime): add cloud image build support#13
117503445 wants to merge 1 commit into
mainfrom
feat/runtime-cloud-build

Conversation

@117503445
Copy link
Copy Markdown
Collaborator

No description provided.

Signed-off-by: 117503445 <t117503445@gmail.com>
Copilot AI review requested due to automatic review settings May 27, 2026 18:10
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

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)
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.

2 participants