Skip to content

ACA-6402 Modify autoscaling_policy module to enforce floats for StepScaling bounds - #2450

Merged
centosinfra-prod-github-app[bot] merged 3 commits into
ansible-collections:mainfrom
cjahnel:ACA-6402
Jun 12, 2026
Merged

centosinfra-prod-github-app[bot] merged 3 commits into
ansible-collections:mainfrom
cjahnel:ACA-6402

Conversation

@cjahnel

@cjahnel cjahnel commented Jun 10, 2026

Copy link
Copy Markdown
Contributor
SUMMARY

This pull request fixes a bug in the autoscaling_policy module by allowing the lower_bound and upper_bound parameters in step_adjustments to accept float values instead of just integers. This change ensures more flexibility and accuracy when configuring autoscaling policies.

Bugfix for step scaling bounds:

  • Updated the autoscaling_policy module to allow lower_bound and upper_bound in step_adjustments to be floats, both in the module argument specification and in the main function definition. [1] [2]
  • Added a changelog entry documenting that lower_bound and upper_bound now accept float types.

Fixes #2355.

ISSUE TYPE
  • Bugfix Pull Request

@cjahnel cjahnel changed the title Aca 6402 ACA-6402 Jun 10, 2026
@cjahnel cjahnel changed the title ACA-6402 ACA-6402 [community.aws/2355] Modify autoscaling_policy module to enforce floats for StepScaling bounds Jun 10, 2026
@cjahnel cjahnel changed the title ACA-6402 [community.aws/2355] Modify autoscaling_policy module to enforce floats for StepScaling bounds ACA-6402 Modify autoscaling_policy module to enforce floats for StepScaling bounds Jun 10, 2026
@github-actions

github-actions Bot commented Jun 10, 2026 •

Copy link
Copy Markdown

Docs Build 📝

Thank you for contribution!✨

This PR has been merged and your docs changes will be incorporated when they are next published.

@cjahnel
cjahnel marked this pull request as draft June 10, 2026 18:06
@centosinfra-prod-github-app

Copy link
Copy Markdown
Contributor

Build succeeded.
https://gateway-cloud-softwarefactory.apps.ocp.cloud.ci.centos.org/zuul/t/ansible/buildset/280755d467c84daebfb06fb9dd4252db

✔️ ansible-galaxy-importer SUCCESS in 4m 36s (non-voting)
✔️ build-ansible-collection SUCCESS in 10m 52s
✔️ ansible-test-splitter SUCCESS in 4m 19s
✔️ integration-community.aws-1 SUCCESS in 3m 19s
Skipped 21 jobs

@cjahnel
cjahnel marked this pull request as ready for review June 10, 2026 18:51
@cjahnel
cjahnel requested a review from Copilot June 10, 2026 18:51
@cjahnel cjahnel self-assigned this Jun 10, 2026
@cjahnel cjahnel removed their assignment Jun 10, 2026
@cjahnel
cjahnel requested review from GomathiselviS, alinabuzachis and mjohns91 and removed request for Copilot June 10, 2026 18:52

@tremble tremble left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

To help avoid regressions it would be good if you could update the integration tests to verify that they work as expected:

https://github.com/ansible-collections/community.aws/blob/main/tests/integration/targets/autoscaling_policy/tasks/main.yml

Otherwise LGTM

@centosinfra-prod-github-app

Copy link
Copy Markdown
Contributor

Build succeeded.
https://gateway-cloud-softwarefactory.apps.ocp.cloud.ci.centos.org/zuul/t/ansible/buildset/f9d76b55a1184b36bab7927e3d8a7bda

❌ ansible-galaxy-importer RETRY_LIMIT Host unreachable in 5m 43s (non-voting)
✔️ build-ansible-collection SUCCESS in 11m 15s
✔️ ansible-test-splitter SUCCESS in 4m 23s
✔️ integration-community.aws-1 SUCCESS in 3m 13s
Skipped 21 jobs

@alinabuzachis alinabuzachis left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@cjahnel great work! I only left a small suggestion, otherwise LGTM!

Co-authored-by: Alina Buzachis <abuzachis@redhat.com>
@centosinfra-prod-github-app

Copy link
Copy Markdown
Contributor

Build succeeded.
https://gateway-cloud-softwarefactory.apps.ocp.cloud.ci.centos.org/zuul/t/ansible/buildset/ff4a8676716348c1800d3211d066a747

✔️ ansible-galaxy-importer SUCCESS in 4m 19s (non-voting)
✔️ build-ansible-collection SUCCESS in 11m 06s
✔️ ansible-test-splitter SUCCESS in 5m 20s
✔️ integration-community.aws-1 SUCCESS in 3m 10s
Skipped 21 jobs

@tremble tremble added the mergeit Merge the PR (SoftwareFactory) label Jun 12, 2026
@github-actions github-actions Bot added backport-11 PR should be backported to the stable-11 branch backport-10 PR should be backported to the stable-10 branch labels Jun 12, 2026
@centosinfra-prod-github-app

Copy link
Copy Markdown
Contributor

Build succeeded (gate pipeline).
https://gateway-cloud-softwarefactory.apps.ocp.cloud.ci.centos.org/zuul/t/ansible/buildset/8fdfa14ceb5c4e4d9b6a508216f164b7

✔️ ansible-galaxy-importer SUCCESS in 4m 09s (non-voting)
✔️ build-ansible-collection SUCCESS in 11m 07s
✔️ ansible-test-splitter SUCCESS in 5m 25s
✔️ integration-community.aws-1 SUCCESS in 3m 28s
Skipped 21 jobs

@centosinfra-prod-github-app
centosinfra-prod-github-app Bot merged commit 0797ce3 into ansible-collections:main Jun 12, 2026
95 checks passed
@patchback

patchback Bot commented Jun 12, 2026 •

Copy link
Copy Markdown

Backport to stable-10: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-10/0797ce3ed9133cfaaece767c32177f1b243ab30d/pr-2450

Backported as #2453

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

@patchback

patchback Bot commented Jun 12, 2026 •

Copy link
Copy Markdown

Backport to stable-11: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-11/0797ce3ed9133cfaaece767c32177f1b243ab30d/pr-2450

Backported as #2454

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

centosinfra-prod-github-app Bot pushed a commit that referenced this pull request Jun 12, 2026
…caling bounds (#2450) (#2453)

This is a backport of PR #2450 as merged into main (0797ce3).
SUMMARY
This pull request fixes a bug in the autoscaling_policy module by allowing the lower_bound and upper_bound parameters in step_adjustments to accept float values instead of just integers. This change ensures more flexibility and accuracy when configuring autoscaling policies.
Bugfix for step scaling bounds:

Updated the autoscaling_policy module to allow lower_bound and upper_bound in step_adjustments to be floats, both in the module argument specification and in the main function definition. [1] [2]
Added a changelog entry documenting that lower_bound and upper_bound now accept float types.

Fixes #2355.
ISSUE TYPE

Bugfix Pull Request

Reviewed-by: Mark Chappell
centosinfra-prod-github-app Bot pushed a commit that referenced this pull request Jun 12, 2026
…caling bounds (#2450) (#2454)

This is a backport of PR #2450 as merged into main (0797ce3).
SUMMARY
This pull request fixes a bug in the autoscaling_policy module by allowing the lower_bound and upper_bound parameters in step_adjustments to accept float values instead of just integers. This change ensures more flexibility and accuracy when configuring autoscaling policies.
Bugfix for step scaling bounds:

Updated the autoscaling_policy module to allow lower_bound and upper_bound in step_adjustments to be floats, both in the module argument specification and in the main function definition. [1] [2]
Added a changelog entry documenting that lower_bound and upper_bound now accept float types.

Fixes #2355.
ISSUE TYPE

Bugfix Pull Request

Reviewed-by: Mark Chappell
Reviewed-by: Matthew Johnson
@cjahnel
cjahnel deleted the ACA-6402 branch June 12, 2026 15:24
florianhofsaessC24 pushed a commit to florianhofsaessC24/community.aws that referenced this pull request Aug 18, 2026
…caling bounds (ansible-collections#2450)

SUMMARY
This pull request fixes a bug in the autoscaling_policy module by allowing the lower_bound and upper_bound parameters in step_adjustments to accept float values instead of just integers. This change ensures more flexibility and accuracy when configuring autoscaling policies.
Bugfix for step scaling bounds:

Updated the autoscaling_policy module to allow lower_bound and upper_bound in step_adjustments to be floats, both in the module argument specification and in the main function definition. [1] [2]
Added a changelog entry documenting that lower_bound and upper_bound now accept float types.

Fixes ansible-collections#2355.
ISSUE TYPE

Bugfix Pull Request

Reviewed-by: Matthew Johnson
Reviewed-by: Mark Chappell
Reviewed-by: Alina Buzachis
Reviewed-by: Chyna Sanders
Reviewed-by: Bikouo Aubin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-10 PR should be backported to the stable-10 branch backport-11 PR should be backported to the stable-11 branch mergeit Merge the PR (SoftwareFactory)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

autoscaling_policy incorrectly forces int for StepScaling bounds, but AWS allows float

6 participants