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

ecs_ecr - Fix RepositoryNotFoundException when creating Repositories in check mode #1550

Conversation

tremble
Copy link
Contributor

@tremble tremble commented Oct 7, 2022

SUMMARY

When trying to create a repository in check mode the module throws a RepositoryNotFoundException trying to access policy objects on the repositories

also fixes and re-enables basic integration tests

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

ecs_ecr

ADDITIONAL INFORMATION

… mode

also fixes and re-enables basic integration tests
@ansibullbot
Copy link

@ansibullbot ansibullbot added bug This issue/PR relates to a bug community_review integration tests/integration module module needs_triage plugins plugin (any type) tests tests labels Oct 7, 2022
@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded.

✔️ ansible-galaxy-importer SUCCESS in 4m 35s
✔️ build-ansible-collection SUCCESS in 5m 25s
ansible-test-sanity-docker-devel FAILURE in 9m 46s (non-voting)
✔️ ansible-test-sanity-docker-milestone SUCCESS in 8m 47s
✔️ ansible-test-sanity-docker-stable-2.12 SUCCESS in 12m 23s
✔️ ansible-test-sanity-docker-stable-2.13 SUCCESS in 11m 20s
ansible-test-sanity-docker-stable-2.14 FAILURE in 9m 21s (non-voting)
✔️ ansible-test-units-amazon-aws-python36 SUCCESS in 6m 36s
✔️ ansible-test-units-amazon-aws-python38 SUCCESS in 7m 38s
✔️ ansible-test-units-amazon-aws-python39 SUCCESS in 5m 59s
✔️ ansible-test-splitter SUCCESS in 3m 05s
✔️ integration-community.aws-1 SUCCESS in 6m 15s
⚠️ 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
⚠️ integration-community.aws-14 SKIPPED
⚠️ integration-community.aws-15 SKIPPED
⚠️ integration-community.aws-16 SKIPPED
⚠️ integration-community.aws-17 SKIPPED
⚠️ integration-community.aws-18 SKIPPED

@tremble tremble added backport-4 PR should be backported to the stable-4 branch backport-5 PR should be backported to the stable-5 branch labels Oct 7, 2022
@tremble tremble added the mergeit Merge the PR (SoftwareFactory) label Oct 7, 2022
@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded (gate pipeline).

✔️ ansible-galaxy-importer SUCCESS in 5m 52s
✔️ build-ansible-collection SUCCESS in 5m 20s
ansible-test-sanity-docker-devel FAILURE in 15m 27s (non-voting)
✔️ ansible-test-sanity-docker-milestone SUCCESS in 9m 26s
✔️ ansible-test-sanity-docker-stable-2.12 SUCCESS in 13m 01s
✔️ ansible-test-sanity-docker-stable-2.13 SUCCESS in 9m 40s
ansible-test-sanity-docker-stable-2.14 FAILURE in 11m 54s (non-voting)
✔️ ansible-test-units-amazon-aws-python36 SUCCESS in 6m 47s
✔️ ansible-test-units-amazon-aws-python38 SUCCESS in 6m 37s
✔️ ansible-test-units-amazon-aws-python39 SUCCESS in 6m 42s
✔️ ansible-test-splitter SUCCESS in 2m 45s
✔️ integration-community.aws-1 SUCCESS in 6m 07s
⚠️ 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
⚠️ integration-community.aws-14 SKIPPED
⚠️ integration-community.aws-15 SKIPPED
⚠️ integration-community.aws-16 SKIPPED
⚠️ integration-community.aws-17 SKIPPED
⚠️ integration-community.aws-18 SKIPPED

@softwarefactory-project-zuul softwarefactory-project-zuul bot merged commit 187649d into ansible-collections:main Oct 7, 2022
@patchback
Copy link

patchback bot commented Oct 7, 2022

Backport to stable-4: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-4/187649dc013d65c74189fb930359af2308fd7b8a/pr-1550

Backported as #1552

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

softwarefactory-project-zuul bot pushed a commit that referenced this pull request Oct 7, 2022
ecs_ecr - Use compare_policies instead of naive dict sort

Depends-On: #1550
SUMMARY
When comparing policies on the repos ecs_ecr currently uses a very naive sort function.  Since we have something more comprehensive, use it.
ISSUE TYPE

Feature Pull Request

COMPONENT NAME
plugins/modules/ecs_ecr.py
ADDITIONAL INFORMATION
ecs_ecr is currently the only module using sort_json_policy_dict and it has poor test coverage.

Reviewed-by: Markus Bergholz <[email protected]>
patchback bot pushed a commit that referenced this pull request Oct 7, 2022
…s in check mode (#1550)

ecs_ecr - Fix `RepositoryNotFoundException` when creating Repositories in check mode

SUMMARY
When trying to create a repository in check mode the module throws a RepositoryNotFoundException trying to access policy objects on the repositories
also fixes and re-enables basic integration tests
ISSUE TYPE

Bugfix Pull Request

COMPONENT NAME
ecs_ecr
ADDITIONAL INFORMATION

Reviewed-by: Markus Bergholz <[email protected]>
(cherry picked from commit 187649d)
@patchback
Copy link

patchback bot commented Oct 7, 2022

Backport to stable-5: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-5/187649dc013d65c74189fb930359af2308fd7b8a/pr-1550

Backported as #1553

🤖 @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 Oct 7, 2022
…s in check mode (#1550)

ecs_ecr - Fix `RepositoryNotFoundException` when creating Repositories in check mode

SUMMARY
When trying to create a repository in check mode the module throws a RepositoryNotFoundException trying to access policy objects on the repositories
also fixes and re-enables basic integration tests
ISSUE TYPE

Bugfix Pull Request

COMPONENT NAME
ecs_ecr
ADDITIONAL INFORMATION

Reviewed-by: Markus Bergholz <[email protected]>
(cherry picked from commit 187649d)
softwarefactory-project-zuul bot pushed a commit that referenced this pull request Oct 10, 2022
…s in check mode (#1550) (#1553)

[PR #1550/187649dc backport][stable-5] ecs_ecr - Fix `RepositoryNotFoundException` when creating Repositories in check mode

This is a backport of PR #1550 as merged into main (187649d).
SUMMARY
When trying to create a repository in check mode the module throws a RepositoryNotFoundException trying to access policy objects on the repositories
also fixes and re-enables basic integration tests
ISSUE TYPE

Bugfix Pull Request

COMPONENT NAME
ecs_ecr
ADDITIONAL INFORMATION

Reviewed-by: Mark Chappell <None>
softwarefactory-project-zuul bot pushed a commit that referenced this pull request Oct 10, 2022
…s in check mode (#1550) (#1552)

[PR #1550/187649dc backport][stable-4] ecs_ecr - Fix `RepositoryNotFoundException` when creating Repositories in check mode

This is a backport of PR #1550 as merged into main (187649d).
SUMMARY
When trying to create a repository in check mode the module throws a RepositoryNotFoundException trying to access policy objects on the repositories
also fixes and re-enables basic integration tests
ISSUE TYPE

Bugfix Pull Request

COMPONENT NAME
ecs_ecr
ADDITIONAL INFORMATION

Reviewed-by: Mark Chappell <None>
@tremble tremble deleted the ecs_ecr/RepositoryNotFoundException branch February 15, 2023 09:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-4 PR should be backported to the stable-4 branch backport-5 PR should be backported to the stable-5 branch bug This issue/PR relates to a bug community_review integration tests/integration mergeit Merge the PR (SoftwareFactory) module module needs_triage plugins plugin (any type) tests tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants