Repository navigation
feat(canary): add optional session_runtime input to the reusable canary - #139
Merged
AlexTranAmz merged 1 commit intoNov 27, 2026
Merged
Conversation
Let a caller pin the worker agent session runtime for an E2E canary run. The new optional `session_runtime` input (python, rust or service-selected) is forwarded to the CodeBuild project as the WORKER_AGENT_SESSION_RUNTIME environment variable, which the worker agent's test/e2e conftest already honours. The variable is only added to env-vars-for-codebuild when the input is non-empty, so existing callers that do not pass it are unchanged and never receive an empty WORKER_AGENT_SESSION_RUNTIME. Signed-off-by: AlexTranAmz <167144297+AlexTranAmz@users.noreply.github.com>
|
Claude review · advisory Reviewed Open: 0 blocking · 0 should-fix · 0 nit. ✅ Nothing blocking. Fix or reply to each thread; the next revision's review re-checks open threads and resolves those it agrees are handled. Resolving a thread yourself also closes it. Later revisions review only what changed. |
|
03:00–05:00 Python this makes sense, looks good |
seant-aws
approved these changes
Nov 27, 2026
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.
What was the problem/requirement? (What/Why)
The worker agent's E2E canaries only run the default (python) session runtime.
reusable_canary.ymlhas no way to tell the CodeBuild run which runtime to use, so a rust canary leg cannot be added in the worker agent repo alone.What was the solution? (How)
Add an optional
session_runtimeinput (python,rustorservice-selected, default empty). It is exported asWORKER_AGENT_SESSION_RUNTIMEand added toenv-vars-for-codebuildonly when the input is non-empty, using${{ inputs.session_runtime && 'WORKER_AGENT_SESSION_RUNTIME' || '' }}(the action trims and drops empty entries). The worker agent'stest/e2e/conftest.pyalready reads that variable.What is the impact of this change?
Existing callers pass nothing and get exactly the same CodeBuild environment as before. The worker agent canary workflows will pass
session_runtime: rustfor a new rust leg (follow-up PR in aws-deadline/deadline-cloud-worker-agent).How was this change tested?
repository, branch, environment, os, session_runtime.aws-codebuild-run-build@v1.0.18source:env-vars-for-codebuildis split on,, trimmed, and empty entries are filtered, so the empty branch of the expression is a no-op.test/e2esuite pinned to rust on Linux (68 passed, 29 skipped) and Windows (66 passed, 23 skipped, 2 xfailed, 6 xpassed) against a personal test farm.Was this change documented?
The input has a
descriptionin the workflow.Is this a breaking change?
No.