Skip to content

Conversation

@rix0rrr
Copy link
Contributor

@rix0rrr rix0rrr commented Aug 13, 2025

The flags nag message is too pessimistic, showing 18 unconfigured flags on a newly cdk inited project.

We shouldn't alarm on the latter, so filter them out.


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

The flags nag message is too pessimistic, showing 18 unconfigured flags
on a newly cdk inited project.

* Part of that is the CDK library emitting info for flags that don't
  exist anymore, fixed here: aws/aws-cdk#35227
* Part of that is we are alarming on unconfigured flags, even if the
  behavior of unconfigured flags is the same as recommended behavior.

We shouldn't alarm on the latter, so filter them out.
@rix0rrr rix0rrr requested a review from a team August 13, 2025 12:16
@github-actions github-actions bot added the p2 label Aug 13, 2025
@aws-cdk-automation aws-cdk-automation requested a review from a team August 13, 2025 12:17
@rix0rrr rix0rrr changed the title fix(cli): don't nag for flags that don't need configuring fix(cli): displays a nag message for flags that don't need configuring Aug 13, 2025
@rix0rrr rix0rrr requested a review from vivian12300 August 13, 2025 12:18
@codecov-commenter
Copy link

Codecov Report

❌ Patch coverage is 80.00000% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 81.36%. Comparing base (73184ac) to head (639d275).

Files with missing lines Patch % Lines
packages/aws-cdk/lib/cli/cdk-toolkit.ts 80.00% 3 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #792      +/-   ##
==========================================
- Coverage   81.37%   81.36%   -0.02%     
==========================================
  Files          63       63              
  Lines        8555     8573      +18     
  Branches     1028     1033       +5     
==========================================
+ Hits         6962     6975      +13     
- Misses       1563     1565       +2     
- Partials       30       33       +3     
Flag Coverage Δ
suite.unit 81.36% <80.00%> (-0.02%) ⬇️

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 Aug 13, 2025
Merged via the queue into main with commit 168016b Aug 13, 2025
27 checks passed
@aws-cdk-automation aws-cdk-automation deleted the huijbers/dont-warn-unnecessary branch August 13, 2025 13:14
iankhou pushed a commit that referenced this pull request Aug 21, 2025
#792)

The flags nag message is too pessimistic, showing 18 unconfigured flags
on a newly cdk inited project.

* Part of that is the CDK library emitting info for flags that don't
exist anymore, fixed here: aws/aws-cdk#35227
* Part of that is we are alarming on unconfigured flags, even if the
behavior of unconfigured flags is the same as recommended behavior.

We shouldn't alarm on the latter, so filter them out.

---
By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache-2.0 license
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