Skip to content

task: change TaskStatus.ate_actor_template to ObjectRef ate_template - #642

Merged
siyuanfoundation merged 1 commit into
google:mainfrom
siyuanfoundation:fix-issue-600
Nov 18, 2026
Merged

siyuanfoundation merged 1 commit into
google:mainfrom
siyuanfoundation:fix-issue-600

Conversation

@siyuanfoundation

@siyuanfoundation siyuanfoundation commented Nov 18, 2026 •

Copy link
Copy Markdown
Collaborator

Based on #593.

Fixes #600.

Replaces TaskStatus.ate_actor_template (bare string) with ObjectRef ate_template in pkg/apis/v1alpha1/task.proto so TaskStatus records both the ActorTemplate name and its atespace, matching Profile.ate_template.

Changes

  • pkg/apis/v1alpha1/task.proto & task.pb.go: changed field 3 to ObjectRef ate_template = 3; and regenerated protobuf bindings.
  • internal/controller/reconciler.go: populated task.Status.AteTemplate with Name and Atespace, and updated Suspend / DeleteTask callers.
  • internal/server/server.go: updated CreateTask idempotency check to use GetAteTemplate().GetName().
  • cmd/ax/task.go: updated describeTask to print <atespace>/<name> (or <name> when atespace is empty), matching describeWorkspaceProfile.
  • DESIGN.md and unit tests (pkg/apis/v1alpha1/types_test.go, internal/controller/reconciler_test.go, internal/server/server_test.go, internal/server/status_test.go, internal/store/task_apply_test.go): updated for AteTemplate.

Co-authored-by: Jaana Dogan [email protected]

@google-cla

google-cla Bot commented Nov 18, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@siyuanfoundation
siyuanfoundation changed the base branch from ate to main November 18, 2026 16:51
@siyuanfoundation
siyuanfoundation force-pushed the fix-issue-600 branch 2 times, most recently from a5d5cbf to a3a340d Compare November 18, 2026 16:57
Based on google#593.
Fixes google#600

Introduce ObjectRef for Profile.ate_template and replace
TaskStatus.ate_actor_template (string) with ObjectRef ate_template so
task status carries both the ActorTemplate name and its atespace.

Co-authored-by: Jaana Dogan <[email protected]>
Signed-off-by: siyuanfoundation <[email protected]>
@siyuanfoundation
siyuanfoundation merged commit c097322 into google:main Nov 18, 2026
12 checks passed
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.

Change TaskStatus.ate_actor_template to an ObjectRef named ate_template

2 participants