Skip to content

fix(cli): drop invalid commands from telemetry#997

Merged
rix0rrr merged 4 commits intomainfrom
epolon/drop-invalid-commands
Dec 17, 2025
Merged

fix(cli): drop invalid commands from telemetry#997
rix0rrr merged 4 commits intomainfrom
epolon/drop-invalid-commands

Conversation

@iliapolo
Copy link
Contributor

We should only capture CLI sessions that were invoked with a valid subcommand.


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

@aws-cdk-automation aws-cdk-automation requested a review from a team December 16, 2025 23:45
@github-actions github-actions bot added the p2 label Dec 16, 2025
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@codecov-commenter
Copy link

codecov-commenter commented Dec 17, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.60%. Comparing base (8ac049e) to head (aca65b2).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #997      +/-   ##
==========================================
+ Coverage   87.58%   87.60%   +0.01%     
==========================================
  Files          72       72              
  Lines       10023    10034      +11     
  Branches     1316     1321       +5     
==========================================
+ Hits         8779     8790      +11     
  Misses       1220     1220              
  Partials       24       24              
Flag Coverage Δ
suite.unit 87.60% <100.00%> (+0.01%) ⬆️

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.

@iliapolo iliapolo changed the title fix: drop invalid commands from telemetry fix(cli): drop invalid commands from telemetry Dec 17, 2025
@iliapolo iliapolo marked this pull request as ready for review December 17, 2025 04:58
logLevel: 'trace',
}, true);
await telemetryIoHost.startTelemetry({ '_': 'init', 'telemetry-file': telemetryFilePath }, new Context());
await telemetryIoHost.startTelemetry({ '_': ['init'], 'telemetry-file': telemetryFilePath }, new Context());
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 was wrong before - just didn't impact test assertion

@rix0rrr rix0rrr added this pull request to the merge queue Dec 17, 2025
Merged via the queue into main with commit 191ed69 Dec 17, 2025
31 checks passed
@rix0rrr rix0rrr deleted the epolon/drop-invalid-commands branch December 17, 2025 09:20
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

Comments