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

Integration tests for s3_logging #63257

Merged
merged 5 commits into from
Oct 17, 2019
Merged

Conversation

tremble
Copy link
Contributor

@tremble tremble commented Oct 8, 2019

SUMMARY

SSIA: add integration tests from s3_logging
The tests are pretty basic, it doesn't provide any form of output beyond returning changed

ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME

lib/ansible/modules/cloud/amazon/s3_logging.py
test/sanity/ignore.txt
hacking/aws_config/testing_policies/storage-policy.json

ADDITIONAL INFORMATION

Depends on mattclay/aws-terminator#65

@ansibot
Copy link
Contributor

ansibot commented Oct 8, 2019

@ansibot
Copy link
Contributor

ansibot commented Oct 8, 2019

@tremble, just so you are aware we have a dedicated Working Group for aws.
You can find other people interested in this in #ansible-aws on Freenode IRC
For more information about communities, meetings and agendas see https://github.com/ansible/community

click here for bot help

@ansibot ansibot added affects_2.10 This issue/PR affects Ansible v2.10 aws cloud core_review In order to be merged, this PR must follow the core review workflow. feature This issue/PR relates to a feature request. module This issue/PR relates to a module. needs_triage Needs a first human triage before being processed. support:community This issue/PR relates to code supported by the Ansible community. support:core This issue/PR relates to code supported by the Ansible Engineering Team. test This PR relates to tests. needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. and removed core_review In order to be merged, this PR must follow the core review workflow. labels Oct 8, 2019
@goneri goneri added the ci_verified Changes made in this PR are causing tests to fail. label Oct 9, 2019
@ansibot ansibot removed the needs_triage Needs a first human triage before being processed. label Oct 9, 2019
jillr
jillr previously approved these changes Oct 10, 2019
@ansibot ansibot removed the ci_verified Changes made in this PR are causing tests to fail. label Oct 10, 2019
@jillr
Copy link
Contributor

jillr commented Oct 11, 2019

The tests pass when I run them locally against CI but are failing in shippable, will have to dig into this more.

Copy link
Contributor

@jillr jillr left a comment

Choose a reason for hiding this comment

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

Looks like the CI failures are related to eventual consistency. Adding pauses for the specified times at the noted locations in the test seemed to be working.

@jillr jillr dismissed their stale review October 14, 2019 18:38

need test changes

@tremble
Copy link
Contributor Author

tremble commented Oct 15, 2019

The tests pass when I run them locally against CI but are failing in shippable, will have to dig into this more.

Out of curiosity, which region do you 'locally' test on. I was running in us-west-2 and had no problems...

@ansibot ansibot added core_review In order to be merged, this PR must follow the core review workflow. needs_ci This PR requires CI testing to be performed. Please close and re-open this PR to trigger CI. stale_ci This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested. and removed needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. labels Oct 15, 2019
@ansibot ansibot removed needs_ci This PR requires CI testing to be performed. Please close and re-open this PR to trigger CI. stale_ci This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested. labels Oct 15, 2019
@jillr
Copy link
Contributor

jillr commented Oct 15, 2019

The tests pass when I run them locally against CI but are failing in shippable, will have to dig into this more.

Out of curiosity, which region do you 'locally' test on. I was running in us-west-2 and had no problems...

@tremble, also us-west-2 but it was showing up intermittently - if CI hadn't failed I would have probably missed it to be honest. I have a simple bash script I use for things like this that loops 50x over a test and once I started looping this one it was coming up maybe 1 in 5 times, roughly.

@jillr
Copy link
Contributor

jillr commented Oct 15, 2019

Hm, still getting occasional failures when looping at:

TASK [s3_logging : Enable logging] *********************************************
fatal: [testhost]: FAILED! => {"changed": false, "msg": "You must give the log-delivery group WRITE and READ_ACP permissions to the target bucket"}

These tests are likely to be unstable as-is, will need to dive into this again as the pauses might not be what we need after all.

Copy link
Contributor

@jillr jillr left a comment

Choose a reason for hiding this comment

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

shipit

@ansibot ansibot added has_issue shipit This PR is ready to be merged by Core and removed core_review In order to be merged, this PR must follow the core review workflow. labels Oct 15, 2019
@jillr jillr merged commit 8d0737e into ansible:devel Oct 17, 2019
@ansible ansible locked and limited conversation to collaborators Nov 14, 2019
@tremble tremble deleted the tests_s3_logging branch December 21, 2019 06:56
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affects_2.10 This issue/PR affects Ansible v2.10 aws cloud feature This issue/PR relates to a feature request. has_issue module This issue/PR relates to a module. shipit This PR is ready to be merged by Core support:community This issue/PR relates to code supported by the Ansible community. support:core This issue/PR relates to code supported by the Ansible Engineering Team. test This PR relates to tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants