Skip to content

Conversation

@iliapolo
Copy link
Contributor

This feature is currently unstable, so it shouldn't apply at all if invoked without the --unstable flag.

Right now, it creates a telemetry file with an event indicating the aforementioned failure.


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

@iliapolo iliapolo temporarily deployed to integ-approval July 23, 2025 06:37 — with GitHub Actions Inactive
@aws-cdk-automation aws-cdk-automation requested a review from a team July 23, 2025 06:37
@github-actions github-actions bot added the p2 label Jul 23, 2025
throw new ToolkitError('You must either specify a list of Stacks or the `--all` argument');
}

if (args['telemetry-file'] && !configuration.settings.get(['unstable']).includes('telemetry')) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is too late in the process because telemetry has already been initialized, and the error thrown is then considered as a telemetry event.

We should really structure the unstable protection mechanism better.

@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 25.00000% with 3 lines in your changes missing coverage. Please review.

Project coverage is 81.00%. Comparing base (a6755f0) to head (74185d1).

Files with missing lines Patch % Lines
packages/aws-cdk/lib/cli/cli.ts 25.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #731      +/-   ##
==========================================
- Coverage   81.05%   81.00%   -0.05%     
==========================================
  Files          61       61              
  Lines        8007     8007              
  Branches      900      898       -2     
==========================================
- Hits         6490     6486       -4     
- Misses       1497     1501       +4     
  Partials       20       20              
Flag Coverage Δ
suite.unit 81.00% <25.00%> (-0.05%) ⬇️

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 Jul 23, 2025
Merged via the queue into main with commit cde4468 Jul 23, 2025
32 checks passed
@aws-cdk-automation aws-cdk-automation deleted the epolon/unstable-telemetry-file branch July 23, 2025 09: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.

4 participants