Skip to content

Conversation

@go-to-k
Copy link
Contributor

@go-to-k go-to-k commented Dec 10, 2025

NOTE: I will close this if it meets the specifications. Waiting for review in the PR, so I will decide it based on the response.

TODO: Consider what to do when there are stages and stacks at the top level.

When running cdk destroy --all or cdk deploy --all against a configuration with no top-level stacks (nested stages only), the following error occurs. This PR fixes the behavior.

const app = new cdk.App();

new MyStage(app, 'MyStage'); // This has CdkSampleStack
> cdk deploy
Since this app includes more than a single stack, specify which stacks to use (wildcards are supported) or specify `--all`
Stacks: MyStage/CdkSampleStack

> cdk deploy --all
...
No stack found in the main cloud assembly. Use "list" to print manifest

> cdk destroy --all
...
No stack found in the main cloud assembly. Use "list" to print manifest

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

@codecov-commenter
Copy link

codecov-commenter commented Dec 10, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.64%. Comparing base (2a6f8d3) to head (9550003).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #985      +/-   ##
==========================================
+ Coverage   87.38%   87.64%   +0.26%     
==========================================
  Files          71       72       +1     
  Lines       10010    10030      +20     
  Branches     1311     1322      +11     
==========================================
+ Hits         8747     8791      +44     
+ Misses       1240     1215      -25     
- Partials       23       24       +1     
Flag Coverage Δ
suite.unit 87.64% <100.00%> (+0.26%) ⬆️

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.

auto-merge was automatically disabled December 10, 2025 18:25

Head branch was pushed to by a user without write access

@go-to-k go-to-k marked this pull request as draft December 10, 2025 18:47
@go-to-k go-to-k marked this pull request as ready for review December 10, 2025 19:06
@go-to-k go-to-k marked this pull request as draft December 10, 2025 19:06
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.

2 participants