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

tests: split up ec2_instance #979

Conversation

goneri
Copy link
Member

@goneri goneri commented Aug 25, 2022

Use on target per sub-test to have a better control on the global execution
time and simplify the troubleshooting.

@ansibullbot

This comment was marked as off-topic.

@ansibullbot

This comment was marked as off-topic.

@ansibullbot ansibullbot added needs_info This issue requires further information. Please answer any outstanding questions needs_rebase https://docs.ansible.com/ansible/devel/dev_guide/developing_rebasing.html needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR needs_template This issue/PR has an incomplete description. Please fill in the proposed template correctly needs_triage labels Aug 25, 2022
@softwarefactory-project-zuul

This comment was marked as outdated.

@goneri goneri force-pushed the tests-split-up-ec2_instance_10946 branch from 199830d to 2cb7bd4 Compare August 25, 2022 18:02
@softwarefactory-project-zuul

This comment was marked as outdated.

@goneri goneri force-pushed the tests-split-up-ec2_instance_10946 branch from 2cb7bd4 to bb232f4 Compare August 25, 2022 18:31
@softwarefactory-project-zuul

This comment was marked as outdated.

@goneri goneri force-pushed the tests-split-up-ec2_instance_10946 branch 3 times, most recently from ff2d5e2 to 5d2469c Compare August 25, 2022 20:20
@softwarefactory-project-zuul

This comment was marked as outdated.

@goneri goneri force-pushed the tests-split-up-ec2_instance_10946 branch from 5d2469c to 8e0a3aa Compare August 25, 2022 20:49
@softwarefactory-project-zuul

This comment was marked as outdated.

@goneri goneri force-pushed the tests-split-up-ec2_instance_10946 branch 4 times, most recently from b9f3acf to d6b179e Compare August 25, 2022 22:02
@softwarefactory-project-zuul

This comment was marked as outdated.

@goneri goneri force-pushed the tests-split-up-ec2_instance_10946 branch from d6b179e to 36f887a Compare August 25, 2022 23:54
@softwarefactory-project-zuul

This comment was marked as outdated.

@goneri goneri force-pushed the tests-split-up-ec2_instance_10946 branch from 36f887a to 67c1bcc Compare August 26, 2022 02:07
@softwarefactory-project-zuul

This comment was marked as outdated.

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.

Most of the tests don't require a new version of botocore/boto3, please prune the use of setup_botocore_pip as this adds a couple of minutes to each test.

Most of the tests don't use the iam roles, I'd avoid coyping first_iam_role, second_iam_role and unique_id around.

Looking at ec2_instance_find_ami, I think this should be removed (and should have been removed a while back): Everything's using ec2_ami_id which comes from setup_ec2_facts.

resource_prefix is consistent for a single ansible-test run, this is going to result in identical VPCs being created and (in theory) deleted, please update vpc_name and vpc_seed to be unique per-test. This helps identify which test is misbehaving when things go wrong and avoid weird edge cases when things go wrong and retries happen.

The new modules aren't deleting the VPCs and subnets they create. We're only not hitting limits because they're reusing the same VPCs and subnets over and over, this is also going to cause weird failures when aws-terminator happens to clean up at the wrong time. While the window is small, it's still there and a PITA to debug. It might be possible to do something clever, using a handler to trigger the cleanup as we do with setup_botocore_pip. While you're at it I'd probably use the "search based on VPC" trick that we're using for EC2s and ENIs when cleaning up Security Groups and Subnets.

I also have a vague memory that ansible-test won't automatically trigger all of these tests if someone runs this 'locally', but I'll test this...

changelogs/fragments/ec2_instance_tests_split.yaml Outdated Show resolved Hide resolved
@tremble
Copy link
Contributor

tremble commented Aug 29, 2022

(ansible-dev39) 
[10:29:37+0200] ~/vcs/ansible/ansible_collections/amazon/aws  [26372bf|pull/979]
[✔ mchappel@mchappel aws] $ supported_integration -vv ec2_instance
ansible-test integration --docker default --allow-unstable -vv ec2_instance
Configured locale: en_US.UTF-8
RLIMIT_NOFILE: (1024, 262144)
Falling back to tests in "tests/integration/targets/" because "roles/test/" was not found.
FATAL: Target pattern not matched: ec2_instance
Command exited with non-zero status 1
real    0.20s
user    0.18s
sys     0.02s

tremble added a commit to tremble/amazon.aws that referenced this pull request Aug 29, 2022
@tremble tremble force-pushed the tests-split-up-ec2_instance_10946 branch from 2332f75 to 350e6ae Compare August 29, 2022 11:10
@tremble tremble force-pushed the tests-split-up-ec2_instance_10946 branch from 350e6ae to 4fee066 Compare August 29, 2022 11:12
@goneri goneri added the mergeit Merge the PR (SoftwareFactory) label Aug 29, 2022
@goneri
Copy link
Member Author

goneri commented Aug 29, 2022

@goneri goneri closed this Aug 29, 2022
@goneri goneri reopened this Aug 29, 2022
@goneri goneri added mergeit Merge the PR (SoftwareFactory) and removed mergeit Merge the PR (SoftwareFactory) labels Aug 29, 2022
@goneri
Copy link
Member Author

goneri commented Aug 29, 2022

Thank you @tremble for the patch.

@softwarefactory-project-zuul
Copy link
Contributor

Build failed (gate pipeline). For information on how to proceed, see
http://docs.openstack.org/infra/manual/developers.html#automated-testing

✔️ ansible-galaxy-importer SUCCESS in 4m 12s
✔️ build-ansible-collection SUCCESS in 5m 06s
✔️ ansible-test-sanity-aws-ansible-python38 SUCCESS in 9m 13s
✔️ ansible-test-sanity-aws-ansible-2.12-python38 SUCCESS in 11m 35s
✔️ ansible-test-sanity-aws-ansible-2.13-python38 SUCCESS in 9m 32s
✔️ ansible-test-units-amazon-aws-python38 SUCCESS in 7m 31s
✔️ ansible-test-units-amazon-aws-python39 SUCCESS in 6m 46s
✔️ ansible-test-splitter SUCCESS in 2m 58s
integration-amazon.aws-1 TIMED_OUT in 1h 00m 39s
✔️ integration-amazon.aws-2 SUCCESS in 23m 20s
⚠️ integration-amazon.aws-3 SKIPPED
⚠️ integration-amazon.aws-4 SKIPPED
⚠️ integration-amazon.aws-5 SKIPPED
⚠️ integration-amazon.aws-6 SKIPPED
⚠️ integration-amazon.aws-7 SKIPPED
⚠️ integration-amazon.aws-8 SKIPPED
⚠️ integration-amazon.aws-9 SKIPPED
⚠️ integration-amazon.aws-10 SKIPPED
⚠️ integration-amazon.aws-11 SKIPPED
⚠️ integration-amazon.aws-12 SKIPPED
⚠️ integration-amazon.aws-13 SKIPPED
⚠️ integration-community.aws-1 SKIPPED
⚠️ integration-community.aws-2 SKIPPED
⚠️ integration-community.aws-3 SKIPPED
⚠️ integration-community.aws-4 SKIPPED
⚠️ integration-community.aws-5 SKIPPED
⚠️ integration-community.aws-6 SKIPPED
⚠️ integration-community.aws-7 SKIPPED
⚠️ integration-community.aws-8 SKIPPED
⚠️ integration-community.aws-9 SKIPPED
⚠️ integration-community.aws-10 SKIPPED
⚠️ integration-community.aws-11 SKIPPED
⚠️ integration-community.aws-12 SKIPPED
⚠️ integration-community.aws-13 SKIPPED
ansible-test-changelog FAILURE in 2m 24s

@tremble tremble removed the mergeit Merge the PR (SoftwareFactory) label Aug 29, 2022
@softwarefactory-project-zuul
Copy link
Contributor

Build failed.

✔️ ansible-galaxy-importer SUCCESS in 3m 41s
✔️ build-ansible-collection SUCCESS in 6m 30s
✔️ ansible-test-sanity-aws-ansible-python38 SUCCESS in 10m 36s
✔️ ansible-test-sanity-aws-ansible-2.12-python38 SUCCESS in 10m 45s
✔️ ansible-test-sanity-aws-ansible-2.13-python38 SUCCESS in 8m 55s
✔️ ansible-test-units-amazon-aws-python38 SUCCESS in 5m 37s
✔️ ansible-test-units-amazon-aws-python39 SUCCESS in 6m 06s
✔️ ansible-test-splitter SUCCESS in 2m 35s
integration-amazon.aws-1 TIMED_OUT in 1h 00m 49s
✔️ integration-amazon.aws-2 SUCCESS in 33m 44s
⚠️ integration-amazon.aws-3 SKIPPED
⚠️ integration-amazon.aws-4 SKIPPED
⚠️ integration-amazon.aws-5 SKIPPED
⚠️ integration-amazon.aws-6 SKIPPED
⚠️ integration-amazon.aws-7 SKIPPED
⚠️ integration-amazon.aws-8 SKIPPED
⚠️ integration-amazon.aws-9 SKIPPED
⚠️ integration-amazon.aws-10 SKIPPED
⚠️ integration-amazon.aws-11 SKIPPED
⚠️ integration-amazon.aws-12 SKIPPED
⚠️ integration-amazon.aws-13 SKIPPED
⚠️ integration-community.aws-1 SKIPPED
⚠️ integration-community.aws-2 SKIPPED
⚠️ integration-community.aws-3 SKIPPED
⚠️ integration-community.aws-4 SKIPPED
⚠️ integration-community.aws-5 SKIPPED
⚠️ integration-community.aws-6 SKIPPED
⚠️ integration-community.aws-7 SKIPPED
⚠️ integration-community.aws-8 SKIPPED
⚠️ integration-community.aws-9 SKIPPED
⚠️ integration-community.aws-10 SKIPPED
⚠️ integration-community.aws-11 SKIPPED
⚠️ integration-community.aws-12 SKIPPED
⚠️ integration-community.aws-13 SKIPPED
✔️ ansible-test-changelog SUCCESS in 2m 19s

@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded.

✔️ ansible-galaxy-importer SUCCESS in 5m 13s
✔️ build-ansible-collection SUCCESS in 5m 23s
✔️ ansible-test-sanity-aws-ansible-python38 SUCCESS in 11m 11s
✔️ ansible-test-sanity-aws-ansible-2.12-python38 SUCCESS in 9m 13s
✔️ ansible-test-sanity-aws-ansible-2.13-python38 SUCCESS in 8m 58s
✔️ ansible-test-units-amazon-aws-python38 SUCCESS in 6m 12s
✔️ ansible-test-units-amazon-aws-python39 SUCCESS in 6m 39s
✔️ ansible-test-splitter SUCCESS in 2m 40s
✔️ integration-amazon.aws-1 SUCCESS in 29m 50s
✔️ integration-amazon.aws-2 SUCCESS in 55m 13s
✔️ integration-amazon.aws-3 SUCCESS in 16m 31s
⚠️ integration-amazon.aws-4 SKIPPED
⚠️ integration-amazon.aws-5 SKIPPED
⚠️ integration-amazon.aws-6 SKIPPED
⚠️ integration-amazon.aws-7 SKIPPED
⚠️ integration-amazon.aws-8 SKIPPED
⚠️ integration-amazon.aws-9 SKIPPED
⚠️ integration-amazon.aws-10 SKIPPED
⚠️ integration-amazon.aws-11 SKIPPED
⚠️ integration-amazon.aws-12 SKIPPED
⚠️ integration-amazon.aws-13 SKIPPED
⚠️ integration-community.aws-1 SKIPPED
⚠️ integration-community.aws-2 SKIPPED
⚠️ integration-community.aws-3 SKIPPED
⚠️ integration-community.aws-4 SKIPPED
⚠️ integration-community.aws-5 SKIPPED
⚠️ integration-community.aws-6 SKIPPED
⚠️ integration-community.aws-7 SKIPPED
⚠️ integration-community.aws-8 SKIPPED
⚠️ integration-community.aws-9 SKIPPED
⚠️ integration-community.aws-10 SKIPPED
⚠️ integration-community.aws-11 SKIPPED
⚠️ integration-community.aws-12 SKIPPED
⚠️ integration-community.aws-13 SKIPPED
✔️ ansible-test-changelog SUCCESS in 2m 15s

@goneri goneri added the mergeit Merge the PR (SoftwareFactory) label Aug 29, 2022
@softwarefactory-project-zuul
Copy link
Contributor

Build failed (gate pipeline). For information on how to proceed, see
http://docs.openstack.org/infra/manual/developers.html#automated-testing

Warning:
Change 1617 in project ansible/ansible-zuul-jobs does not share a change queue with 979 in project ansible-collections/amazon.aws

@tremble
Copy link
Contributor

tremble commented Aug 29, 2022

regate

@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded (gate pipeline).

✔️ ansible-galaxy-importer SUCCESS in 3m 41s
✔️ build-ansible-collection SUCCESS in 5m 29s
✔️ ansible-test-sanity-aws-ansible-python38 SUCCESS in 8m 55s
✔️ ansible-test-sanity-aws-ansible-2.12-python38 SUCCESS in 11m 05s
✔️ ansible-test-sanity-aws-ansible-2.13-python38 SUCCESS in 8m 29s
✔️ ansible-test-units-amazon-aws-python38 SUCCESS in 6m 16s
✔️ ansible-test-units-amazon-aws-python39 SUCCESS in 7m 16s
✔️ ansible-test-splitter SUCCESS in 2m 46s
✔️ integration-amazon.aws-1 SUCCESS in 18m 02s
✔️ integration-amazon.aws-2 SUCCESS in 37m 27s
✔️ integration-amazon.aws-3 SUCCESS in 17m 19s
⚠️ integration-amazon.aws-4 SKIPPED
⚠️ integration-amazon.aws-5 SKIPPED
⚠️ integration-amazon.aws-6 SKIPPED
⚠️ integration-amazon.aws-7 SKIPPED
⚠️ integration-amazon.aws-8 SKIPPED
⚠️ integration-amazon.aws-9 SKIPPED
⚠️ integration-amazon.aws-10 SKIPPED
⚠️ integration-amazon.aws-11 SKIPPED
⚠️ integration-amazon.aws-12 SKIPPED
⚠️ integration-amazon.aws-13 SKIPPED
⚠️ integration-community.aws-1 SKIPPED
⚠️ integration-community.aws-2 SKIPPED
⚠️ integration-community.aws-3 SKIPPED
⚠️ integration-community.aws-4 SKIPPED
⚠️ integration-community.aws-5 SKIPPED
⚠️ integration-community.aws-6 SKIPPED
⚠️ integration-community.aws-7 SKIPPED
⚠️ integration-community.aws-8 SKIPPED
⚠️ integration-community.aws-9 SKIPPED
⚠️ integration-community.aws-10 SKIPPED
⚠️ integration-community.aws-11 SKIPPED
⚠️ integration-community.aws-12 SKIPPED
⚠️ integration-community.aws-13 SKIPPED
✔️ ansible-test-changelog SUCCESS in 2m 20s

@softwarefactory-project-zuul softwarefactory-project-zuul bot merged commit 08746a1 into ansible-collections:main Aug 29, 2022
abikouo pushed a commit to abikouo/amazon.aws that referenced this pull request Sep 18, 2023
…ble-collections#970)

redshift_info - fix invalid import path for botocore exceptions

Depends-On: ansible-collections#979
SUMMARY



Fix invalid import path for botocore exceptions
Fixes ansible-collections#968

ISSUE TYPE


Bugfix Pull Request

COMPONENT NAME
redshift_info

Reviewed-by: Mark Woolley <[email protected]>
Reviewed-by: Alina Buzachis <None>
abikouo pushed a commit to abikouo/amazon.aws that referenced this pull request Sep 18, 2023
…ble-collections#970)

redshift_info - fix invalid import path for botocore exceptions

Depends-On: ansible-collections#979
SUMMARY



Fix invalid import path for botocore exceptions
Fixes ansible-collections#968

ISSUE TYPE


Bugfix Pull Request

COMPONENT NAME
redshift_info

Reviewed-by: Mark Woolley <[email protected]>
Reviewed-by: Alina Buzachis <None>
abikouo pushed a commit to abikouo/amazon.aws that referenced this pull request Oct 24, 2023
CI: redshift_info is an alias of redshift

Reviewed-by: Alina Buzachis <None>
Reviewed-by: Mark Woolley <[email protected]>
abikouo pushed a commit to abikouo/amazon.aws that referenced this pull request Oct 24, 2023
…ble-collections#970)

redshift_info - fix invalid import path for botocore exceptions

Depends-On: ansible-collections#979
SUMMARY



Fix invalid import path for botocore exceptions
Fixes ansible-collections#968

ISSUE TYPE


Bugfix Pull Request

COMPONENT NAME
redshift_info

Reviewed-by: Mark Woolley <[email protected]>
Reviewed-by: Alina Buzachis <None>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mergeit Merge the PR (SoftwareFactory) needs_info This issue requires further information. Please answer any outstanding questions needs_rebase https://docs.ansible.com/ansible/devel/dev_guide/developing_rebasing.html needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR needs_template This issue/PR has an incomplete description. Please fill in the proposed template correctly needs_triage
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants