Skip to content

Name a runtime image on the environments these tests create - #267

Merged
vitramir merged 1 commit into
mainfrom
env-needs-a-runtime-image
Aug 27, 2026
Merged

vitramir merged 1 commit into
mainfrom
env-needs-a-runtime-image

Conversation

@vitramir

Copy link
Copy Markdown
Contributor

Fallout from agents#104, which made CreateAgent refuse an environment that names no agent runtime image instead of letting the Orchestrator retry an unassemblable workload forever.

createPlatformEnvironment and createSubscriptionEnvironment left the runtime image unset, reasoning that these tests never start a workload. That was true, and is no longer sufficient: both tests create an agent, so every create now fails FailedPrecondition before reaching the LLM-mode assertion the test exists to make.

Verified on the local VM — TestAgentModelReferenceMustMatchTheEnvironmentMode and TestLLMModeCannotChangeWhileAgentsReferenceTheEnvironment both pass.

An environment names the agent CLI an agent runs, so one without a
runtime image can host no agent at all: CreateAgent now refuses it up
front rather than leaving the Orchestrator to retry a workload it can
never assemble. These two fixtures left it unset on the grounds that
they never start a workload, which was true and is no longer enough --
both tests create an agent, and every create failed FailedPrecondition
before reaching the mode check they exist to make.
@vitramir
vitramir merged commit 447a4b0 into main Aug 27, 2026
5 of 11 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.

1 participant