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

Test ruff #2070

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Conversation

alinabuzachis
Copy link
Collaborator

SUMMARY

Test ruff. For more details see ansible-collections/cloud-content-handbook#22

ISSUE TYPE
  • Bugfix Pull Request
  • Docs Pull Request
  • Feature Pull Request
  • New Module Pull Request
COMPONENT NAME
ADDITIONAL INFORMATION

Copy link
Contributor

Build failed.
https://ansible.softwarefactory-project.io/zuul/buildset/88d3df42b550425185af1c932ea2a769

✔️ ansible-galaxy-importer SUCCESS in 5m 57s
✔️ build-ansible-collection SUCCESS in 16m 17s
✔️ ansible-test-splitter SUCCESS in 6m 51s
✔️ integration-amazon.aws-1 SUCCESS in 14m 50s
✔️ integration-amazon.aws-2 SUCCESS in 41m 36s
✔️ integration-amazon.aws-3 SUCCESS in 24m 42s
✔️ integration-amazon.aws-4 SUCCESS in 36m 06s
✔️ integration-amazon.aws-5 SUCCESS in 40m 57s
✔️ integration-amazon.aws-6 SUCCESS in 20m 49s
✔️ integration-amazon.aws-7 SUCCESS in 37m 21s
✔️ integration-amazon.aws-8 SUCCESS in 41m 54s
✔️ integration-amazon.aws-9 SUCCESS in 44m 57s
✔️ integration-amazon.aws-10 SUCCESS in 39m 11s
✔️ integration-amazon.aws-11 SUCCESS in 38m 44s
✔️ integration-amazon.aws-12 SUCCESS in 26m 00s
integration-amazon.aws-13 RETRY_LIMIT in 1m 41s
✔️ integration-amazon.aws-14 SUCCESS in 23m 49s
✔️ integration-amazon.aws-15 SUCCESS in 43m 58s
✔️ integration-amazon.aws-16 SUCCESS in 51m 34s
✔️ integration-amazon.aws-17 SUCCESS in 42m 54s
integration-amazon.aws-18 RETRY_LIMIT in 1m 43s
integration-amazon.aws-19 RETRY_LIMIT in 1m 41s
✔️ integration-amazon.aws-20 SUCCESS in 40m 02s
✔️ integration-amazon.aws-21 SUCCESS in 57m 01s
✔️ integration-amazon.aws-22 SUCCESS in 21m 21s
✔️ integration-community.aws-1 SUCCESS in 26m 07s
✔️ integration-community.aws-2 SUCCESS in 53m 14s
integration-community.aws-3 TIMED_OUT in 1h 00m 42s
✔️ integration-community.aws-4 SUCCESS in 5m 55s
✔️ integration-community.aws-5 SUCCESS in 31m 33s
✔️ integration-community.aws-6 SUCCESS in 30m 17s
✔️ integration-community.aws-7 SUCCESS in 16m 58s
✔️ integration-community.aws-8 SUCCESS in 25m 23s
✔️ integration-community.aws-9 SUCCESS in 8m 05s
✔️ integration-community.aws-10 SUCCESS in 17m 52s
✔️ integration-community.aws-11 SUCCESS in 26m 08s
✔️ integration-community.aws-12 SUCCESS in 22m 56s
✔️ integration-community.aws-13 SUCCESS in 16m 37s
✔️ integration-community.aws-14 SUCCESS in 43m 11s
✔️ integration-community.aws-15 SUCCESS in 13m 33s
✔️ integration-community.aws-16 SUCCESS in 20m 26s
✔️ integration-community.aws-17 SUCCESS in 35m 17s
✔️ integration-community.aws-18 SUCCESS in 10m 31s
Skipped 4 jobs

Copy link
Contributor

Build failed.
https://ansible.softwarefactory-project.io/zuul/buildset/35d2449bed5d4333b2e576d192a323b9

⚠️ ansible-galaxy-importer SKIPPED Skipped due to failed job build-ansible-collection
build-ansible-collection RETRY_LIMIT in 7m 41s
✔️ ansible-test-splitter SUCCESS in 6m 55s
⚠️ integration-amazon.aws-1 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ integration-amazon.aws-2 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ integration-amazon.aws-3 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ integration-amazon.aws-4 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ integration-amazon.aws-5 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ integration-amazon.aws-6 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ integration-amazon.aws-7 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ integration-amazon.aws-8 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ integration-amazon.aws-9 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ integration-amazon.aws-10 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ integration-amazon.aws-11 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ integration-amazon.aws-12 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ integration-amazon.aws-13 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ integration-amazon.aws-14 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ integration-amazon.aws-15 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ integration-amazon.aws-16 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ integration-amazon.aws-17 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ integration-amazon.aws-18 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ integration-amazon.aws-19 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ integration-amazon.aws-20 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ integration-amazon.aws-21 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ integration-amazon.aws-22 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ integration-community.aws-1 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ integration-community.aws-2 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ integration-community.aws-3 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ integration-community.aws-4 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ integration-community.aws-5 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ integration-community.aws-6 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ integration-community.aws-7 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ integration-community.aws-8 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ integration-community.aws-9 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ integration-community.aws-10 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ integration-community.aws-11 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ integration-community.aws-12 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ integration-community.aws-13 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ integration-community.aws-14 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ integration-community.aws-15 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ integration-community.aws-16 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ integration-community.aws-17 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ integration-community.aws-18 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ integration-community.aws-19 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ integration-community.aws-20 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ integration-community.aws-21 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ integration-community.aws-22 SKIPPED Skipped due to failed job build-ansible-collection

Copy link
Contributor

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

✔️ ansible-galaxy-importer SUCCESS in 6m 12s
✔️ build-ansible-collection SUCCESS in 15m 19s
✔️ ansible-test-splitter SUCCESS in 7m 37s
✔️ integration-amazon.aws-1 SUCCESS in 22m 34s
integration-amazon.aws-2 RETRY_LIMIT in 7m 50s
✔️ integration-amazon.aws-3 SUCCESS in 21m 55s
✔️ integration-amazon.aws-4 SUCCESS in 39m 05s
✔️ integration-amazon.aws-5 SUCCESS in 34m 13s
integration-amazon.aws-6 RETRY_LIMIT in 1m 48s
✔️ integration-amazon.aws-7 SUCCESS in 40m 30s
✔️ integration-amazon.aws-8 SUCCESS in 43m 59s
✔️ integration-amazon.aws-9 SUCCESS in 50m 32s
✔️ integration-amazon.aws-10 SUCCESS in 39m 26s
✔️ integration-amazon.aws-11 SUCCESS in 34m 40s
✔️ integration-amazon.aws-12 SUCCESS in 29m 08s
✔️ integration-amazon.aws-13 SUCCESS in 15m 40s
✔️ integration-amazon.aws-14 SUCCESS in 20m 21s
✔️ integration-amazon.aws-15 SUCCESS in 44m 45s
✔️ integration-amazon.aws-16 SUCCESS in 37m 12s
✔️ integration-amazon.aws-17 SUCCESS in 45m 31s
✔️ integration-amazon.aws-18 SUCCESS in 37m 05s
✔️ integration-amazon.aws-19 SUCCESS in 36m 39s
✔️ integration-amazon.aws-20 SUCCESS in 32m 34s
✔️ integration-amazon.aws-21 SUCCESS in 31m 13s
✔️ integration-amazon.aws-22 SUCCESS in 16m 21s
✔️ integration-community.aws-1 SUCCESS in 32m 29s
integration-community.aws-2 TIMED_OUT in 1h 00m 50s
✔️ integration-community.aws-3 SUCCESS in 27m 09s
✔️ integration-community.aws-4 SUCCESS in 25m 51s
✔️ integration-community.aws-5 SUCCESS in 26m 25s
✔️ integration-community.aws-6 SUCCESS in 16m 52s
✔️ integration-community.aws-7 SUCCESS in 24m 09s
✔️ integration-community.aws-8 SUCCESS in 7m 52s
✔️ integration-community.aws-9 SUCCESS in 13m 07s
✔️ integration-community.aws-10 SUCCESS in 22m 00s
✔️ integration-community.aws-11 SUCCESS in 27m 26s
✔️ integration-community.aws-12 SUCCESS in 17m 00s
✔️ integration-community.aws-13 SUCCESS in 14m 18s
✔️ integration-community.aws-14 SUCCESS in 36m 23s
✔️ integration-community.aws-15 SUCCESS in 9m 40s
✔️ integration-community.aws-16 SUCCESS in 8m 31s
✔️ integration-community.aws-17 SUCCESS in 26m 27s
✔️ integration-community.aws-18 SUCCESS in 22m 04s
Skipped 4 jobs

Copy link
Contributor

Build failed.
https://ansible.softwarefactory-project.io/zuul/buildset/044ff5d7baa849d2811b715c2b5c4615

✔️ ansible-galaxy-importer SUCCESS in 5m 38s
✔️ build-ansible-collection SUCCESS in 15m 22s
✔️ ansible-test-splitter SUCCESS in 7m 57s
✔️ integration-amazon.aws-1 SUCCESS in 15m 25s
✔️ integration-amazon.aws-2 SUCCESS in 37m 03s
✔️ integration-amazon.aws-3 SUCCESS in 23m 54s
✔️ integration-amazon.aws-4 SUCCESS in 34m 59s
✔️ integration-amazon.aws-5 SUCCESS in 34m 00s
✔️ integration-amazon.aws-6 SUCCESS in 17m 48s
✔️ integration-amazon.aws-7 SUCCESS in 37m 53s
✔️ integration-amazon.aws-8 SUCCESS in 40m 30s
✔️ integration-amazon.aws-9 SUCCESS in 45m 37s
✔️ integration-amazon.aws-10 SUCCESS in 37m 28s
✔️ integration-amazon.aws-11 SUCCESS in 35m 02s
✔️ integration-amazon.aws-12 SUCCESS in 27m 28s
✔️ integration-amazon.aws-13 SUCCESS in 17m 56s
✔️ integration-amazon.aws-14 SUCCESS in 20m 10s
integration-amazon.aws-15 FAILURE in 54m 35s
✔️ integration-amazon.aws-16 SUCCESS in 43m 57s
✔️ integration-amazon.aws-17 SUCCESS in 43m 18s
✔️ integration-amazon.aws-18 SUCCESS in 38m 16s
✔️ integration-amazon.aws-19 SUCCESS in 40m 38s
✔️ integration-amazon.aws-20 SUCCESS in 35m 40s
✔️ integration-amazon.aws-21 SUCCESS in 51m 28s
✔️ integration-amazon.aws-22 SUCCESS in 21m 12s
✔️ integration-community.aws-1 SUCCESS in 21m 40s
✔️ integration-community.aws-2 SUCCESS in 44m 38s
✔️ integration-community.aws-3 SUCCESS in 5m 51s
✔️ integration-community.aws-4 SUCCESS in 26m 50s
✔️ integration-community.aws-5 SUCCESS in 28m 43s
✔️ integration-community.aws-6 SUCCESS in 16m 10s
✔️ integration-community.aws-7 SUCCESS in 23m 01s
✔️ integration-community.aws-8 SUCCESS in 14m 08s
✔️ integration-community.aws-9 SUCCESS in 13m 00s
✔️ integration-community.aws-10 SUCCESS in 17m 58s
✔️ integration-community.aws-11 SUCCESS in 24m 22s
✔️ integration-community.aws-12 SUCCESS in 15m 20s
✔️ integration-community.aws-13 SUCCESS in 15m 34s
✔️ integration-community.aws-14 SUCCESS in 40m 05s
✔️ integration-community.aws-15 SUCCESS in 10m 16s
✔️ integration-community.aws-16 SUCCESS in 8m 23s
✔️ integration-community.aws-17 SUCCESS in 27m 56s
✔️ integration-community.aws-18 SUCCESS in 23m 36s
Skipped 4 jobs

Signed-off-by: Alina Buzachis <abuzachis@redhat.com>
Signed-off-by: Alina Buzachis <abuzachis@redhat.com>
Signed-off-by: Alina Buzachis <abuzachis@redhat.com>
Signed-off-by: Alina Buzachis <abuzachis@redhat.com>
Signed-off-by: Alina Buzachis <abuzachis@redhat.com>
Signed-off-by: Alina Buzachis <abuzachis@redhat.com>
Copy link
Contributor

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

✔️ ansible-galaxy-importer SUCCESS in 6m 40s
✔️ build-ansible-collection SUCCESS in 19m 07s
✔️ ansible-test-splitter SUCCESS in 8m 06s
✔️ integration-amazon.aws-1 SUCCESS in 14m 35s
✔️ integration-amazon.aws-2 SUCCESS in 41m 32s
✔️ integration-amazon.aws-3 SUCCESS in 22m 38s
✔️ integration-amazon.aws-4 SUCCESS in 37m 19s
✔️ integration-amazon.aws-5 SUCCESS in 37m 00s
✔️ integration-amazon.aws-6 SUCCESS in 19m 39s
✔️ integration-amazon.aws-7 SUCCESS in 39m 48s
✔️ integration-amazon.aws-8 SUCCESS in 36m 30s
✔️ integration-amazon.aws-9 SUCCESS in 43m 55s
✔️ integration-amazon.aws-10 SUCCESS in 41m 40s
✔️ integration-amazon.aws-11 SUCCESS in 34m 08s
✔️ integration-amazon.aws-12 SUCCESS in 30m 34s
✔️ integration-amazon.aws-13 SUCCESS in 21m 26s
✔️ integration-amazon.aws-14 SUCCESS in 21m 16s
✔️ integration-amazon.aws-15 SUCCESS in 46m 27s
✔️ integration-amazon.aws-16 SUCCESS in 41m 57s
✔️ integration-amazon.aws-17 SUCCESS in 53m 22s
✔️ integration-amazon.aws-18 SUCCESS in 40m 01s
✔️ integration-amazon.aws-19 SUCCESS in 43m 01s
✔️ integration-amazon.aws-20 SUCCESS in 41m 43s
✔️ integration-amazon.aws-21 SUCCESS in 32m 42s
✔️ integration-amazon.aws-22 SUCCESS in 16m 07s
✔️ integration-community.aws-1 SUCCESS in 23m 00s
✔️ integration-community.aws-2 SUCCESS in 37m 11s
✔️ integration-community.aws-3 SUCCESS in 5m 52s
✔️ integration-community.aws-4 SUCCESS in 28m 18s
✔️ integration-community.aws-5 SUCCESS in 28m 14s
✔️ integration-community.aws-6 SUCCESS in 16m 18s
✔️ integration-community.aws-7 SUCCESS in 24m 25s
✔️ integration-community.aws-8 SUCCESS in 12m 06s
✔️ integration-community.aws-9 SUCCESS in 13m 54s
✔️ integration-community.aws-10 SUCCESS in 20m 05s
✔️ integration-community.aws-11 SUCCESS in 29m 00s
✔️ integration-community.aws-12 SUCCESS in 14m 53s
✔️ integration-community.aws-13 SUCCESS in 15m 51s
✔️ integration-community.aws-14 SUCCESS in 38m 10s
✔️ integration-community.aws-15 SUCCESS in 11m 25s
✔️ integration-community.aws-16 SUCCESS in 8m 55s
✔️ integration-community.aws-17 SUCCESS in 20m 59s
✔️ integration-community.aws-18 SUCCESS in 20m 55s
Skipped 4 jobs

Copy link
Contributor

@tremble tremble left a comment

Choose a reason for hiding this comment

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

Not sure about the way . addition is being handled. No real objections to using ruff.

@@ -292,7 +289,7 @@ def normalize_ec2_vpc_dhcp_config(option_config):
"netbios-name-servers": ["10.0.0.1", "10.0.1.1"],
"netbios-node-type": "1",
"ntp-servers": ["10.0.0.2", "10.0.1.2"]
},
},.
Copy link
Contributor

Choose a reason for hiding this comment

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

We should probably remove the , here and lin 284 rather than adding a .

@@ -203,12 +201,11 @@ def wait_for_status(self, elb_arn):

def wait_for_deletion(self, elb_arn):
"""
Wait for load balancer to reach 'active' status
Wait for load balancer to reach 'active' status.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
Wait for load balancer to reach 'active' status.
Wait for load balancer to reach 'deleted' status.

@@ -77,7 +75,7 @@ def _hashable_policy(policy, policy_list):
('Effect', ('Allow',)),
('Principal', ('AWS', (('arn:aws:iam::XXXXXXXXXXXX:user/username1',), ('arn:aws:iam::XXXXXXXXXXXX:user/username2',)))),
('Resource', ('arn:aws:s3:::test_policy/*',)), ('Sid', ('AddCannedAcl2',)))),
('Version', ('2012-10-17',)))]
('Version', ('2012-10-17',)))].
Copy link
Contributor

Choose a reason for hiding this comment

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

This is code, we don't want an arbitrary extra . here...

@@ -52,9 +52,8 @@ def boto3_tag_list_to_ansible_dict(tags_list, tag_name_key_name=None, tag_value_
Dict: Dict of key:value pairs representing AWS tags
{
'MyTagKey': 'MyTagValue',
}
}.
Copy link
Contributor

Choose a reason for hiding this comment

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

And again

@@ -68,9 +68,8 @@ def ansible_dict_to_boto3_filter_list(filters_dict):
'i-01234567',
]
}
]
].
Copy link
Contributor

Choose a reason for hiding this comment

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

and again...

@@ -1311,9 +1311,8 @@ def build_network_spec(params):
],
'SecondaryPrivateIpAddressCount': 123,
'SubnetId': 'string'
},
},.
Copy link
Contributor

Choose a reason for hiding this comment

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

Noch maaaaaaal.

@@ -431,7 +431,7 @@ def build_launch_specification(launch_spec):
block_device_mappings
monitoring
placement
iam_instance_profile
iam_instance_profile.
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we be changing the formatting here?

@@ -320,7 +320,7 @@ def create_dhcp_config(module):
'Values': [{'Value': 'us-west-2.compute.internal'}]},
{'Key': 'domain-name-servers',
'Values': [{'Value': 'AmazonProvidedDNS'}]},
...],
...],.
Copy link
Contributor

Choose a reason for hiding this comment

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

Bad dots again

abikouo pushed a commit to abikouo/amazon.aws that referenced this pull request Oct 18, 2024
amazon.aws 8.0.0 deprecations - test cleanup

SUMMARY
iam_role moved all of the return values under .iam_role, rather than returning a tangled mess at the top level
ISSUE TYPE

Feature Pull Request

COMPONENT NAME
tests/integration/targets/config/tasks/main.yaml
tests/integration/targets/ec2_launch_template/tasks/iam_instance_role.yml
tests/integration/targets/ecs_cluster/tasks/20_ecs_service.yml
tests/integration/targets/eks_cluster/tasks/full_test.yml
tests/integration/targets/eks_fargate_profile/tasks/create_eks_cluster.yml
tests/integration/targets/eks_fargate_profile/tasks/full_test.yml
tests/integration/targets/eks_nodegroup/tasks/dependecies.yml
tests/integration/targets/eks_nodegroup/tasks/full_test.yml
ADDITIONAL INFORMATION

Reviewed-by: Alina Buzachis

This commit was initially merged in https://github.com/ansible-collections/community.aws
See: ansible-collections/community.aws@5cb20f7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants