Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

64015 Port get_all_groups within boto_asg.get_config to boto3 #64080

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

binocvlar
Copy link
Contributor

@binocvlar binocvlar commented Apr 14, 2023

Replace calls to get_all_groups within get_config with a boto3 equivalent implementation. This change is being made to address the breakage highlighted in issue #64015.

Note that this port doesn't touch any of the other uses of boto which still appear to be functioning correctly. These should probably be tackled as a matter of priority though.

What does this PR do?

What issues does this PR fix or reference?

Fixes: 64015

Previous Behavior

Module was broken as a result of changed get_all_groups behaviour.

New Behavior

No longer broken, and compatible with previous implementation (expected key names are translated to preserve previous contract).

Merge requirements satisfied?

[NOTICE] Bug fixes or features added to Salt require tests.

I don't have the time to write a brand new set of tests for boto_asg.py - perhaps this PR could serve as the starting point for someone who does?

Commits signed with GPG?

Yes/No

Please review Salt's Contributing Guide for best practices.

See GitHub's page on GPG signing for more information about signing commits with GPG.

@binocvlar binocvlar requested review from s0undt3ch and a team as code owners April 14, 2023 05:50
@binocvlar binocvlar changed the base branch from 3005.x to master April 14, 2023 05:50
@binocvlar binocvlar changed the title [WIP] 64015 port get all groups calls to boto3 64015 Port get_all_groups within boto_asg.get_config to boto3 Apr 14, 2023
@binocvlar
Copy link
Contributor Author

Hi @s0undt3ch - can you please take a look at this PR and let me know if there's anything that I can do to expedite its completion?

@s0undt3ch
Copy link
Collaborator

Hi @s0undt3ch - can you please take a look at this PR and let me know if there's anything that I can do to expedite its completion?

It needs tests for the changes made.

@s0undt3ch s0undt3ch added the Needs-Testcase PR needs test cases written, or the issue is about a bug/feature that needs test cases label Aug 14, 2023
Replace all calls to `get_all_groups` with a boto3 equivalent
implementation. This change is being made to address the breakage
highlighted in issue saltstack#64015.

Note that this port doesn't touch any of the other uses of boto which
still appear to be functioning correctly. These should probably be
tackled as a matter of priority though.
@s0undt3ch s0undt3ch force-pushed the 64015_port_get_all_groups_calls_to_boto3 branch from 5c3d9e2 to 5245034 Compare August 14, 2023 10:14
@s0undt3ch s0undt3ch temporarily deployed to ci August 14, 2023 10:31 — with GitHub Actions Inactive
@s0undt3ch s0undt3ch temporarily deployed to ci August 14, 2023 10:31 — with GitHub Actions Inactive
@s0undt3ch s0undt3ch temporarily deployed to ci August 14, 2023 10:31 — with GitHub Actions Inactive
@s0undt3ch s0undt3ch temporarily deployed to ci August 14, 2023 10:31 — with GitHub Actions Inactive
@s0undt3ch s0undt3ch temporarily deployed to ci August 14, 2023 10:44 — with GitHub Actions Inactive
@s0undt3ch s0undt3ch temporarily deployed to ci August 14, 2023 10:58 — with GitHub Actions Inactive
@s0undt3ch s0undt3ch temporarily deployed to ci August 14, 2023 11:51 — with GitHub Actions Inactive
@s0undt3ch s0undt3ch temporarily deployed to ci August 14, 2023 11:51 — with GitHub Actions Inactive
@s0undt3ch s0undt3ch temporarily deployed to ci August 14, 2023 11:51 — with GitHub Actions Inactive
@s0undt3ch s0undt3ch temporarily deployed to ci August 14, 2023 11:51 — with GitHub Actions Inactive
@s0undt3ch s0undt3ch temporarily deployed to ci August 14, 2023 11:51 — with GitHub Actions Inactive
@s0undt3ch s0undt3ch temporarily deployed to ci August 14, 2023 11:51 — with GitHub Actions Inactive
@s0undt3ch s0undt3ch temporarily deployed to ci August 14, 2023 12:09 — with GitHub Actions Inactive
@s0undt3ch s0undt3ch temporarily deployed to ci August 14, 2023 12:09 — with GitHub Actions Inactive
@s0undt3ch s0undt3ch temporarily deployed to ci August 14, 2023 12:09 — with GitHub Actions Inactive
@s0undt3ch s0undt3ch temporarily deployed to ci August 14, 2023 12:10 — with GitHub Actions Inactive
@s0undt3ch s0undt3ch temporarily deployed to ci August 14, 2023 12:10 — with GitHub Actions Inactive
@s0undt3ch s0undt3ch temporarily deployed to ci August 14, 2023 12:10 — with GitHub Actions Inactive
@binocvlar
Copy link
Contributor Author

Hi @s0undt3ch - can you please take a look at this PR and let me know if there's anything that I can do to expedite its completion?

It needs tests for the changes made.

Hi @s0undt3ch - I've just attempted to update my PR with a simple testcase, only to find that a suitable test is already there i.e. salt/tests/pytests/unit/states/test_boto_asg.py (which tests the get_config function that my PR alters). Is anything else required here?

@s0undt3ch s0undt3ch removed their request for review December 2, 2023 17:33
@dwoz dwoz added this to the Argon v3008.0 milestone Dec 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs-Testcase PR needs test cases written, or the issue is about a bug/feature that needs test cases
Projects
None yet
Development

Successfully merging this pull request may close these issues.

boto_asg.present can no longer return a proper value
3 participants