host: the two-box drain witness's control fake returns StartResponse
main f3a9531e's gVisor demos changed activator.Control's Start and Cmd to return instancectl.StartResponse; the branch's fake follows.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
internal/host/hadrain_twobox_minio_linux_test.go+8 −6
CI cancelled — superseded by a newer push — run details
Intent
<task-notification> <task-id>bm4ijr88y</task-id> <tool-use-id>toolu_01WPGp2MszyfetMjQuu1MchS</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/a99cbe46-f458-4f72-8b8a-294aae9cdf21/tasks/bm4ijr88y.output</output-file> <status>completed</status> <summary>Background command "Cross vet and full host tests" completed (exit code 0)</summary> </task-notification>
Attributed to this commit: 175 g CO₂e (19,685,670 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on region-ha-held-build, never backward from it. A turn that produced more than one commit books all of its tokens to the last one, and a concurrent session on this branch can add to the same figure. Some of it was priced using the shared default rate, because no model-specific factor row exists yet for at least one model involved. The Carbon view has the repo total, which is never derived from this attribution.
diff --git a/internal/host/hadrain_twobox_minio_linux_test.go b/internal/host/hadrain_twobox_minio_linux_test.go| index 8145eb00f..b3ce65765 100644 |
| --- a/internal/host/hadrain_twobox_minio_linux_test.go |
| +++ b/internal/host/hadrain_twobox_minio_linux_test.go |
| @@ -267,11 +267,13 @@ func (c *dwControl) startCount(host string) int { |
| return c.starts[host] |
| } |
| -func (c *dwControl) Start(_ context.Context, host string, _ instancectl.Role, _ int64) (string, error) { |
| - return c.start(host) |
| +func (c *dwControl) Start(_ context.Context, host string, _ instancectl.Role, _ int64) (instancectl.StartResponse, error) { |
| + id, err := c.start(host) |
| + return instancectl.StartResponse{InvocationID: id}, err |
| } |
| -func (c *dwControl) StartExe(_ context.Context, host string, _ instancectl.Role, _ int64, _ instancectl.StagedExe) (string, error) { |
| - return c.start(host) |
| +func (c *dwControl) StartExe(_ context.Context, host string, _ instancectl.Role, _ int64, _ instancectl.StagedExe) (instancectl.StartResponse, error) { |
| + id, err := c.start(host) |
| + return instancectl.StartResponse{InvocationID: id}, err |
| } |
| func (c *dwControl) Seed(context.Context, string, int64) (instancectl.SeedResponse, error) { |
| return instancectl.SeedResponse{}, nil |
| @@ -279,8 +281,8 @@ func (c *dwControl) Seed(context.Context, string, int64) (instancectl.SeedRespon |
| func (c *dwControl) SeedExe(context.Context, string, int64, instancectl.StagedExe) (instancectl.SeedResponse, error) { |
| return instancectl.SeedResponse{}, nil |
| } |
| -func (c *dwControl) Cmd(context.Context, string, int64) (string, error) { |
| - return "", errors.New("no cmd units here") |
| +func (c *dwControl) Cmd(context.Context, string, int64) (instancectl.StartResponse, error) { |
| + return instancectl.StartResponse{}, errors.New("no cmd units here") |
| } |
| func (c *dwControl) CmdStatus(context.Context, string, string) (instancectl.CmdStatus, error) { |
| return instancectl.CmdStatus{}, errors.New("no cmd units here") |