Skip to content

fix(deploy): resolve online-eval step on re-deploys with no new configs#1615

Merged
aidandaly24 merged 1 commit into
aws:mainfrom
notgitika:fix/online-eval-step-hangs
Jun 23, 2026
Merged

fix(deploy): resolve online-eval step on re-deploys with no new configs#1615
aidandaly24 merged 1 commit into
aws:mainfrom
notgitika:fix/online-eval-step-hangs

Conversation

@notgitika

@notgitika notgitika commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixes #1614.

TLDR if you have online eval configs (enabled) in your project and you deploy it, then deploy again without changing the state of online eval config, the TUI would freeze on this step Enable online evaluation.

I made a fix for this step in the codebase but I believe a larger refactor is needed here

The TUI deploy screen renders an "Enable online evaluation" step whenever
projectSpec.onlineEvalConfigs is non-empty, but the step was only
transitioned to a terminal status inside the `if (newOnlineEvalFullSpecs
> 0 ...)` branch. On a re-deploy where every configured online eval was
already deployed in a prior run, that branch is skipped and the step
stays in 'pending', so areStepsComplete() never returns true and the
deploy phase never reaches 'complete' — the TUI hangs after the AWS
deploy itself succeeds.

Mirror the dataset-sync block above by marking the step success when
there are configs but nothing new to enable.
@notgitika notgitika requested a review from a team June 23, 2026 16:02
@github-actions github-actions Bot added size/xs PR size: XS agentcore-harness-reviewing AgentCore Harness review in progress labels Jun 23, 2026
@agentcore-devx-automation agentcore-devx-automation Bot added the claude-security-reviewing Claude Code /security-review in progress label Jun 23, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Package Tarball

aws-agentcore-0.20.2.tgz

How to install

gh release download pr-1615-tarball --repo aws/agentcore-cli --pattern "*.tgz" --dir /tmp/pr-tarball
npm install -g /tmp/pr-tarball/aws-agentcore-0.20.2.tgz

@agentcore-devx-automation

Copy link
Copy Markdown
Contributor

Claude Security Review: no high-confidence findings. (run)

@agentcore-devx-automation agentcore-devx-automation Bot removed the claude-security-reviewing Claude Code /security-review in progress label Jun 23, 2026

@agentcore-cli-automation agentcore-cli-automation left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to merge.

Verified the fix:

  • The hang is correctly explained — useDeployFlow.ts:1051 renders the onlineEvalStep whenever projectSpec.onlineEvalConfigs is non-empty, but the original guard at line 621 (newOnlineEvalFullSpecs.length > 0 && Object.keys(deployedOnlineEvalConfigs).length > 0) skips all status transitions on a re-deploy with no new configs, leaving the step pending and areStepsComplete() returning false forever.
  • The else if (onlineEvalFullSpecs.length > 0) branch correctly resolves the rendered-but-no-op case to a terminal status so phase can reach 'complete'.
  • Mirroring the dataset-sync block's "no errors" success status is consistent with existing patterns in the file.

Note (non-blocking): the dataset-sync block immediately above (line 560) has the same shape (if (datasetSpecs.length > 0 && Object.keys(deployedDatasetsRecord).length > 0)) and is theoretically susceptible to the same hang on a re-deploy where no datasets need syncing. Worth a follow-up if anyone hits it, but out of scope here.

@github-actions github-actions Bot removed the agentcore-harness-reviewing AgentCore Harness review in progress label Jun 23, 2026
@aidandaly24 aidandaly24 merged commit fa35b69 into aws:main Jun 23, 2026
33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/xs PR size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TUI bug with deployments that have online eval configs/AB tests

3 participants