Skip to content

Conversation

@mrgrain
Copy link
Contributor

@mrgrain mrgrain commented Jan 16, 2026

This PR adds support for region constraints when acquiring test environments from Atmosphere.

The @cdklabs/cdk-atmosphere-client is upgraded to 0.0.84 which introduces the constraints parameter for environment acquisition. A new regions option is added to AwsContextOptions that allows tests to specify which AWS regions they require.

This is particularly useful for tests that depend on services only available in specific regions. Instead of acquiring any environment and then skipping the test at runtime when the region doesn't support the required service, tests can now request an environment in a supported region upfront.

The Bedrock AgentCore Runtime hotswap test introduced in #991 is updated to use this new capability, requesting an environment in one of the regions where the service is available.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

Upgrade `@cdklabs/cdk-atmosphere-client` to 0.0.84 and add support for
requesting test environments in specific regions via the new `regions`
option in `AwsContextOptions`.

This allows tests that require specific AWS services (like Bedrock
AgentCore Runtime) to request environments in supported regions
directly, rather than skipping at runtime when allocated to an
unsupported region.
@aws-cdk-automation aws-cdk-automation requested a review from a team January 16, 2026 16:39
@github-actions github-actions bot added the p2 label Jan 16, 2026
@codecov-commenter
Copy link

codecov-commenter commented Jan 16, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.72%. Comparing base (943967e) to head (055addd).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1029   +/-   ##
=======================================
  Coverage   87.72%   87.72%           
=======================================
  Files          72       72           
  Lines       10087    10087           
  Branches     1330     1330           
=======================================
  Hits         8849     8849           
  Misses       1213     1213           
  Partials       25       25           
Flag Coverage Δ
suite.unit 87.72% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@aws-cdk-automation aws-cdk-automation added this pull request to the merge queue Jan 19, 2026
Merged via the queue into main with commit 696dada Jan 19, 2026
31 checks passed
@aws-cdk-automation aws-cdk-automation deleted the mrgrain/feat/cli-integ/atmosphere-region-constraints branch January 19, 2026 10:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants