Skip to content

Conversation

@dysosmus
Copy link

@dysosmus dysosmus commented Dec 4, 2025

The PR #417 introduced extra hotswap flags. However, when used the flags yield serialisation errors like bellow because the expected type is a number not a string.

failed: SerializationException: STRING_VALUE cannot be converted to Integer

This PR changes hotswap-ecs-minimum-healthy-percent, hotswap-ecs-maximum-healthy-percent, and hotswap-ecs-stabilization-timeout-seconds from string to expected type number type.


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

Change hotswap-ecs-minimum-healthy-percent, hotswap-ecs-maximum-healthy-percent,
and hotswap-ecs-stabilization-timeout-seconds from string to expected type number type.
@codecov-commenter
Copy link

codecov-commenter commented Jan 6, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.60%. Comparing base (0aa3e98) to head (931f913).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #973   +/-   ##
=======================================
  Coverage   87.60%   87.60%           
=======================================
  Files          72       72           
  Lines       10069    10069           
  Branches     1325     1326    +1     
=======================================
  Hits         8821     8821           
  Misses       1223     1223           
  Partials       25       25           
Flag Coverage Δ
suite.unit 87.60% <100.00%> (ø)

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.

Copy link
Contributor

@mrgrain mrgrain left a comment

Choose a reason for hiding this comment

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

Build is failing and really we should have a test case here demonstrating the error is fixed.

@dysosmus
Copy link
Author

dysosmus commented Jan 6, 2026

Hey @mrgrain the build should be fixed. I've added a unit test for the flag parsing a integration test felts overkill but happy to also add one if it's the preferred.

@mrgrain mrgrain changed the title fix: correct data types for hotswap ECS CLI flags fix(cli): hotswap ECS flags result in SerializationException: STRING_VALUE cannot be converted to Integer Jan 6, 2026
Copy link
Contributor

@mrgrain mrgrain left a comment

Choose a reason for hiding this comment

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

Agreed, thanks for the fix!

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