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

[PR #1801/4cad9ee5 backport][stable-5] Fix s3_sync and s3_logging integration tests #1802

Conversation

patchback[bot]
Copy link

@patchback patchback bot commented May 4, 2023

This is a backport of PR #1801 as merged into main (4cad9ee).

SUMMARY

See also: ansible-collections/amazon.aws#1511

At the end of April Amazon updated various S3 bucket defaults. Buckets now have public_access blocked by default, and object_owner set to "BucketOwnerEnforced".
https://aws.amazon.com/blogs/aws/heads-up-amazon-s3-security-changes-are-coming-in-april-of-2023/

This change to the defaults resulted in some of our tests failing.

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

s3_sync
s3_logging

ADDITIONAL INFORMATION

Fix s3_sync and s3_logging integration tests

SUMMARY
See also: ansible-collections/amazon.aws#1511
At the end of April Amazon updated various S3 bucket defaults. Buckets now have public_access blocked by default, and object_owner set to "BucketOwnerEnforced".
https://aws.amazon.com/blogs/aws/heads-up-amazon-s3-security-changes-are-coming-in-april-of-2023/
This change to the defaults resulted in some of our tests failing.
ISSUE TYPE

Bugfix Pull Request

COMPONENT NAME
s3_sync
s3_logging
ADDITIONAL INFORMATION

Reviewed-by: Alina Buzachis
(cherry picked from commit 4cad9ee)
@tremble tremble added the mergeit Merge the PR (SoftwareFactory) label May 4, 2023
@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

https://ansible.softwarefactory-project.io/zuul/buildset/bed9c4dc338d4a2f8c03917ae6481c2d

ansible-galaxy-importer FAILURE in 3m 57s
✔️ build-ansible-collection SUCCESS in 12m 53s
ansible-test-sanity-docker-devel FAILURE in 11m 25s (non-voting)
✔️ ansible-test-sanity-docker-milestone SUCCESS in 9m 02s (non-voting)
✔️ ansible-test-sanity-docker-stable-2.12 SUCCESS in 12m 56s
✔️ ansible-test-sanity-docker-stable-2.13 SUCCESS in 12m 12s
✔️ ansible-test-sanity-docker-stable-2.14 SUCCESS in 12m 10s
✔️ ansible-test-units-amazon-aws-python36 SUCCESS in 7m 52s
✔️ ansible-test-units-amazon-aws-python38 SUCCESS in 7m 52s
✔️ ansible-test-units-amazon-aws-python39 SUCCESS in 7m 39s
✔️ ansible-test-units-amazon-aws-python310 SUCCESS in 8m 25s
✔️ ansible-test-changelog SUCCESS in 4m 37s
✔️ ansible-test-splitter SUCCESS in 5m 09s
✔️ integration-community.aws-1 SUCCESS in 8m 02s
✔️ integration-community.aws-2 SUCCESS in 6m 55s
Skipped 20 jobs

@tremble
Copy link
Contributor

tremble commented May 4, 2023

ansible-galaxy-importer is flaky - manually merging

@tremble tremble merged commit 37eb2bd into stable-5 May 4, 2023
@tremble tremble deleted the patchback/backports/stable-5/4cad9ee5f676d0ab4d5499caf3fcf5977d96f603/pr-1801 branch May 4, 2023 19:39
abikouo pushed a commit to abikouo/community.aws that referenced this pull request Oct 24, 2023
More fstring cleanup

SUMMARY
Now that we're using tox for more of our linting tests, add flynt (encourage the use of fstrings)
ISSUE TYPE

Feature Pull Request

COMPONENT NAME
plugins/modules/ec2_metadata_facts.py
plugins/modules/s3_object.py
pyproject.toml
tox.ini
ADDITIONAL INFORMATION
flynt was mass-applied as part of the 6.0.0 but we didn't update the linters.
Note: explicitly excludes ec2_metadata_facts because this is expected to be run on managed nodes as well as the controllers.  This is also why ec2_metadata_facts doesn't include botocore or our usual module wrapper.

Reviewed-by: Alina Buzachis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mergeit Merge the PR (SoftwareFactory)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant