Skip to content

fix: hotswap is not discoverable via telemetry#1230

Open
kaizencc wants to merge 8 commits intomainfrom
conroy/htoswpa
Open

fix: hotswap is not discoverable via telemetry#1230
kaizencc wants to merge 8 commits intomainfrom
conroy/htoswpa

Conversation

@kaizencc
Copy link
Contributor

Adds a new HOTSWAP telemetry event type that fires when hotswap deployments are attempted, tracking success/failure state and resource change counts. The motivation behind this is to track hotswap efficiency.

For example,

{
  "event": {
    "state": "FAILED",
    "eventType": "HOTSWAP",
    "duration": 456,
    "error": {
      "name": "UnknownError"
    },
    "counters": {
      "hotswapped": 0,
      "hotswappableChanges": 1,
      "nonHotswappableChanges": 0
    }
  }
}

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 March 17, 2026 20:44
@kaizencc kaizencc changed the title chore: hotswap event emitted to telemetry fix: hotswap is not discoverable via telemetry Mar 17, 2026
@github-actions github-actions bot added the p2 label Mar 17, 2026
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@kaizencc kaizencc deployed to run-tests March 17, 2026 21:50 — with GitHub Actions Active
@codecov-commenter
Copy link

Codecov Report

❌ Patch coverage is 96.29630% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 87.95%. Comparing base (ae037f9) to head (4222bb6).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
packages/aws-cdk/lib/cli/io-host/cli-io-host.ts 96.15% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1230   +/-   ##
=======================================
  Coverage   87.94%   87.95%           
=======================================
  Files          74       74           
  Lines       10339    10364   +25     
  Branches     1377     1386    +9     
=======================================
+ Hits         9093     9116   +23     
- Misses       1220     1222    +2     
  Partials       26       26           
Flag Coverage Δ
suite.unit 87.95% <96.29%> (+<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.

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.

3 participants