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

Minor Unit test and PEP8 sanity fixes (Ansible 2.16) #1846

Merged
merged 2 commits into from
Nov 14, 2023

Conversation

tremble
Copy link
Contributor

@tremble tremble commented Nov 10, 2023

SUMMARY

Addition of Ansible 2.16 has surfaced some new PEP8 issues:
https://github.com/ansible-collections/amazon.aws/actions/runs/6822667301/job/18555114862?pr=1845

As well as exposing a 'broken' unit test (the test it was using didn't actually exist, it was only passing because we're using MagicMock which added a stub.

Old versions of Python and Ansible have also been dropped by the upstream test, we don't need the include/exclude overrides any more. The latest versions of Python have also picked up on a bad unit test in ec2_ami_info.

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

rds_instance_snapshot
autoscaling_group
ec2_ami_info

ADDITIONAL INFORMATION

Copy link
Contributor

Build succeeded.
https://ansible.softwarefactory-project.io/zuul/buildset/40ee1ce33acd47b58f08b2e3d7166a17

✔️ ansible-galaxy-importer SUCCESS in 3m 50s
✔️ build-ansible-collection SUCCESS in 14m 47s
✔️ ansible-test-splitter SUCCESS in 5m 18s
✔️ integration-amazon.aws-1 SUCCESS in 38m 22s
✔️ integration-amazon.aws-2 SUCCESS in 29m 22s
Skipped 42 jobs

Copy link
Contributor

Build succeeded.
https://ansible.softwarefactory-project.io/zuul/buildset/de40642d8afb49fc98ac906ab10cce88

✔️ ansible-galaxy-importer SUCCESS in 3m 50s
✔️ build-ansible-collection SUCCESS in 15m 03s
✔️ ansible-test-splitter SUCCESS in 5m 22s
✔️ integration-amazon.aws-1 SUCCESS in 39m 01s
✔️ integration-amazon.aws-2 SUCCESS in 20m 31s
✔️ integration-amazon.aws-3 SUCCESS in 28m 00s
✔️ integration-amazon.aws-4 SUCCESS in 10m 36s
✔️ integration-amazon.aws-5 SUCCESS in 10m 56s
✔️ integration-community.aws-1 SUCCESS in 31m 21s
Skipped 38 jobs

@tremble tremble marked this pull request as ready for review November 13, 2023 07:18

This comment was marked as resolved.

@tremble
Copy link
Contributor Author

tremble commented Nov 13, 2023

recheck

This comment was marked as resolved.

@tremble tremble changed the title Minor PEP8 sanity fixes (Ansible 2.16) Minor Unit test and PEP8 sanity fixes (Ansible 2.16) Nov 13, 2023
Copy link
Contributor

Build succeeded.
https://ansible.softwarefactory-project.io/zuul/buildset/aa65224f1bba467286c9f3011ef03c2c

✔️ ansible-galaxy-importer SUCCESS in 5m 30s
✔️ build-ansible-collection SUCCESS in 14m 39s
✔️ ansible-test-splitter SUCCESS in 5m 55s
✔️ integration-amazon.aws-1 SUCCESS in 31m 42s
✔️ integration-amazon.aws-2 SUCCESS in 19m 08s
✔️ integration-amazon.aws-3 SUCCESS in 23m 52s
✔️ integration-amazon.aws-4 SUCCESS in 8m 42s
✔️ integration-amazon.aws-5 SUCCESS in 8m 09s
Skipped 39 jobs

@tremble
Copy link
Contributor Author

tremble commented Nov 13, 2023

There seems to be something broken in the Python-3.12/milestone test, since Python-3.12/devel and Python-3.11/milestone pass, I'm assuming this will go away next time milestone's updated...

Copy link
Contributor

Build failed.
https://ansible.softwarefactory-project.io/zuul/buildset/8f16f0fdb0254b9e8eb947b4e42bc028

✔️ ansible-galaxy-importer SUCCESS in 8m 40s
✔️ build-ansible-collection SUCCESS in 15m 14s
✔️ ansible-test-splitter SUCCESS in 5m 48s
✔️ integration-amazon.aws-1 SUCCESS in 31m 30s
✔️ integration-amazon.aws-2 SUCCESS in 19m 25s
integration-amazon.aws-3 ERROR Failed to update project ansible/ansible in 2m 09s
✔️ integration-amazon.aws-4 SUCCESS in 8m 32s
✔️ integration-amazon.aws-5 SUCCESS in 10m 13s
Skipped 39 jobs

@tremble tremble added the mergeit Merge the PR (SoftwareFactory) label Nov 14, 2023
Copy link
Contributor

Build succeeded (gate pipeline).
https://ansible.softwarefactory-project.io/zuul/buildset/b8e598d3408d4e0a9c8f75a293069d02

✔️ ansible-galaxy-importer SUCCESS in 8m 42s
✔️ build-ansible-collection SUCCESS in 14m 24s
✔️ ansible-test-splitter SUCCESS in 5m 48s
✔️ integration-amazon.aws-1 SUCCESS in 33m 36s
✔️ integration-amazon.aws-2 SUCCESS in 20m 41s
✔️ integration-amazon.aws-3 SUCCESS in 29m 47s
✔️ integration-amazon.aws-4 SUCCESS in 11m 07s
✔️ integration-amazon.aws-5 SUCCESS in 10m 16s
Skipped 39 jobs

Copy link
Contributor

Pull request merge failed: Resource not accessible by integration, You may need to manually rebase your PR and retry.

@tremble tremble merged commit 94bfa6f into ansible-collections:main Nov 14, 2023
38 of 41 checks passed
Copy link

patchback bot commented Nov 14, 2023

Backport to stable-7: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-7/94bfa6f1f2776803891ab93205bdfd780185796e/pr-1846

Backported as #1850

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

patchback bot pushed a commit that referenced this pull request Nov 14, 2023
SUMMARY

Addition of Ansible 2.16 has surfaced some new PEP8 issues:
https://github.com/ansible-collections/amazon.aws/actions/runs/6822667301/job/18555114862?pr=1845

As well as exposing a 'broken' unit test (the test it was using didn't actually exist, it was only passing because we're using MagicMock which added a stub.

Old versions of Python and Ansible have also been dropped by the upstream test, we don't need the include/exclude overrides any more. The latest versions of Python have also picked up on a bad unit test in ec2_ami_info.

ISSUE TYPE

    Bugfix Pull Request

COMPONENT NAME

rds_instance_snapshot
autoscaling_group
ec2_ami_info

ADDITIONAL INFORMATION

====

* Minor PEP8 sanity fixes (Ansible 2.16)
* Unit test fixes

(cherry picked from commit 94bfa6f)
softwarefactory-project-zuul bot pushed a commit that referenced this pull request Nov 14, 2023
[PR #1846/94bfa6f1 backport][stable-7] Minor Unit test and PEP8 sanity fixes (Ansible 2.16)

This is a backport of PR #1846 as merged into main (94bfa6f).
SUMMARY
Addition of Ansible 2.16 has surfaced some new PEP8 issues:
https://github.com/ansible-collections/amazon.aws/actions/runs/6822667301/job/18555114862?pr=1845
As well as exposing a 'broken' unit test (the test it was using didn't actually exist, it was only passing because we're using MagicMock which added a stub.
Old versions of Python and Ansible have also been dropped by the upstream test, we don't need the include/exclude overrides any more.  The latest versions of Python have also picked up on a bad unit test in ec2_ami_info.
ISSUE TYPE

Bugfix Pull Request

COMPONENT NAME
rds_instance_snapshot
autoscaling_group
ec2_ami_info
ADDITIONAL INFORMATION

Reviewed-by: Mark Chappell
tremble added a commit to ansible-collections/community.aws that referenced this pull request Nov 16, 2023
SUMMARY

Upstream's dropped support for Ansible 2.9 sanity tests, we don't need to mess about with our own include/exclude list any more.

ISSUE TYPE

    Feature Pull Request

COMPONENT NAME

.github/workflows/sanity.yml

ADDITIONAL INFORMATION

See also ansible-collections/amazon.aws#1846
See also pycrypto/pycrypto@65b43bd (pycrypto / pycryptodome)

---

* Update sanity tests - upstream no longer supports ansible 2.9
* use defaults for units
* pycrypto doesn't work with recent versions - pycryptodome should be (mostly) compatible and uses the same namespace
patchback bot pushed a commit to ansible-collections/community.aws that referenced this pull request Nov 16, 2023
SUMMARY

Upstream's dropped support for Ansible 2.9 sanity tests, we don't need to mess about with our own include/exclude list any more.

ISSUE TYPE

    Feature Pull Request

COMPONENT NAME

.github/workflows/sanity.yml

ADDITIONAL INFORMATION

See also ansible-collections/amazon.aws#1846
See also pycrypto/pycrypto@65b43bd (pycrypto / pycryptodome)

---

* Update sanity tests - upstream no longer supports ansible 2.9
* use defaults for units
* pycrypto doesn't work with recent versions - pycryptodome should be (mostly) compatible and uses the same namespace

(cherry picked from commit 20521ee)
softwarefactory-project-zuul bot pushed a commit to ansible-collections/community.aws that referenced this pull request Nov 16, 2023
…#2003)

[PR #1999/20521eec backport][stable-7] Update sanity tests - upstream no longer supports ansible 2.9

This is a backport of PR #1999 as merged into main (20521ee).
SUMMARY
Upstream's dropped support for Ansible 2.9 sanity tests, we don't need to mess about with our own include/exclude list any more.
ISSUE TYPE

Feature Pull Request

COMPONENT NAME
.github/workflows/sanity.yml
ADDITIONAL INFORMATION
See also ansible-collections/amazon.aws#1846
See also pycrypto/pycrypto@65b43bd (pycrypto / pycryptodome)

Reviewed-by: Mark Chappell
markuman pushed a commit to markuman/amazon.aws that referenced this pull request Nov 30, 2023
Various ARN handling fixes

Depends-On: ansible-collections#1619
SUMMARY
fixes: ansible-collections#1846
Various modules had hard-coded ARN handling which assumed the use of the main  partition.  This causes problems for folks using Gov Cloud (and aws-cn)
ISSUE TYPE

Bugfix Pull Request

COMPONENT NAME
plugins/modules/batch_compute_environment.py
plugins/modules/ec2_launch_template.py
plugins/modules/elasticache_info.py
plugins/modules/iam_group.py
plugins/modules/iam_role.py
plugins/modules/msk_config.py
plugins/modules/redshift.py
plugins/modules/sns_topic.py
ADDITIONAL INFORMATION

Reviewed-by: Alina Buzachis

This commit was initially merged in https://github.com/ansible-collections/community.aws
See: ansible-collections/community.aws@25a636c
markuman pushed a commit to markuman/amazon.aws that referenced this pull request Nov 30, 2023
Various ARN handling fixes

Depends-On: ansible-collections#1619
SUMMARY
fixes: ansible-collections#1846
Various modules had hard-coded ARN handling which assumed the use of the main  partition.  This causes problems for folks using Gov Cloud (and aws-cn)
ISSUE TYPE

Bugfix Pull Request

COMPONENT NAME
plugins/modules/batch_compute_environment.py
plugins/modules/ec2_launch_template.py
plugins/modules/elasticache_info.py
plugins/modules/iam_group.py
plugins/modules/iam_role.py
plugins/modules/msk_config.py
plugins/modules/redshift.py
plugins/modules/sns_topic.py
ADDITIONAL INFORMATION

Reviewed-by: Alina Buzachis

This commit was initially merged in https://github.com/ansible-collections/community.aws
See: ansible-collections/community.aws@25a636c
@tremble tremble deleted the sanity/20231110 branch January 12, 2024 09:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-7 PR should be backported to the stable-7 branch mergeit Merge the PR (SoftwareFactory)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants