Skip to content

test: cover AWS Agent Core schema sync (PR #597)#599

Draft
cursor[bot] wants to merge 2 commits into
mainfrom
cursor/missing-test-coverage-2612
Draft

test: cover AWS Agent Core schema sync (PR #597)#599
cursor[bot] wants to merge 2 commits into
mainfrom
cursor/missing-test-coverage-2612

Conversation

@cursor

@cursor cursor Bot commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Description

Adds regression tests for AWS Bedrock AgentCore CD steps synced in PR #597 (chore: auto-sync harness schemas).

Risky behavior now covered

Missing definitions break harness_schema path lookups and pipeline authoring for AWS agent deployment workflows.

Test files added/updated

  • tests/schemas/schema-bundle-contract.test.ts — bundle contract for all three steps in v0 pipeline and template (including _template variants)
  • tests/tools/harness-schema-tool.test.tsharness_schema path resolution for DeployAwsAgentCoreRevisionStepNode and ShiftAwsAgentCoreTrafficStepNode

Why these tests materially reduce regression risk

Auto-sync schema PRs can silently drop or misplace CD step definitions in the 100k+ line bundled schema files. These contract tests pin the step node/info presence, type enum values, and critical payload fields — the same pattern used for DeployGoogleAgentRuntimeRevision and K8sProgressiveCanaryRollback. The harness_schema tool tests ensure agents can still resolve step definitions by bare name after upstream reordering.

Note: Branch fast-forwards chore/sync-schemas so CI passes before #597 merges. After #597 lands on main, rebase will collapse to a test-only diff.

Type of Change

  • Bug fix
  • New feature
  • Refactor
  • Documentation
  • Other — test coverage

Checklist

  • pnpm test passes (targeted: tests/schemas/schema-bundle-contract.test.ts, tests/tools/harness-schema-tool.test.ts)
  • pnpm typecheck passes
  • pnpm build passes
  • pnpm standards:check passes
  • pnpm docs:check passes

Triggered by automation inspecting PR #597.

Open in Web View Automation 

thisrohangupta and others added 2 commits July 9, 2026 00:41
Add bundle contract and harness_schema path resolution tests for
DeployAwsAgentCoreRevision, ShiftAwsAgentCoreTraffic, and
RollbackAwsAgentCoreRevision CD steps introduced in the upstream
schema sync (PR #597).

These steps power AWS Bedrock AgentCore deploy/traffic-shift/rollback
workflows; missing definitions break harness_schema lookups and
pipeline authoring for agent deployments.

Co-authored-by: Rohan Gupta <thisrohangupta@users.noreply.github.com>
@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ thisrohangupta
❌ cursoragent
You have signed the CLA already but the status is still pending? Let us recheck it.

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.

3 participants