Skip to content

feat(canary): add optional session_runtime input to the reusable canary - #139

Merged
AlexTranAmz merged 1 commit into
aws-deadline:mainlinefrom
AlexTranAmz:feat/canary-session-runtime
Nov 27, 2026
Merged

AlexTranAmz merged 1 commit into
aws-deadline:mainlinefrom
AlexTranAmz:feat/canary-session-runtime

Conversation

@AlexTranAmz

Copy link
Copy Markdown

What was the problem/requirement? (What/Why)

The worker agent's E2E canaries only run the default (python) session runtime. reusable_canary.yml has 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_runtime input (python, rust or service-selected, default empty). It is exported as WORKER_AGENT_SESSION_RUNTIME and added to env-vars-for-codebuild only when the input is non-empty, using ${{ inputs.session_runtime && 'WORKER_AGENT_SESSION_RUNTIME' || '' }} (the action trims and drops empty entries). The worker agent's test/e2e/conftest.py already 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: rust for a new rust leg (follow-up PR in aws-deadline/deadline-cloud-worker-agent).

How was this change tested?

  • YAML parses; the input list is repository, branch, environment, os, session_runtime.
  • Checked aws-codebuild-run-build@v1.0.18 source: env-vars-for-codebuild is split on ,, trimmed, and empty entries are filtered, so the empty branch of the expression is a no-op.
  • The variable's effect on the test run was verified by running the full worker agent test/e2e suite 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 description in the workflow.

Is this a breaking change?

No.

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>
@github-actions

Copy link
Copy Markdown

Claude review · advisory

Reviewed e9b1f5f (full review): 0 findings.

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.

@seant-aws

Copy link
Copy Markdown

03:00–05:00 Python
05:30–07:43 Rust
06:00 Python waits
07:43–09:43 Delayed 06:00 Python
09:00 Next Python waits
09:43–11:43 Delayed 09:00 Python
12:00 Back on schedule

this makes sense, looks good

@AlexTranAmz
AlexTranAmz merged commit 065ac96 into aws-deadline:mainline Nov 27, 2026
8 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.

2 participants