Skip to content

Cloudfront waiters - #426

Merged
kyleknap merged 3 commits into
boto:developfrom
kyleknap:cloudfront-waiters
Dec 31, 2014
Merged

kyleknap merged 3 commits into
boto:developfrom
kyleknap:cloudfront-waiters

Conversation

@kyleknap

Copy link
Copy Markdown
Contributor

Fixes: aws/aws-cli#1059

There were two changes made in this PR:

  1. Make the JMESPath success path for the waiter take into account the outer element in the cloudfront response. Without the outer element included, you get a bunch of max retries exceeded because the JMESPath query is not using the correct path to search for the success state.

  2. Doubled the max retry attempts. I tested it for a single object invalidation, and with the current configuration, the max retries were consistently reached. I was estimating it took around 15 minutes to complete the invalidation, but the current configuration would wind up waiting for 10 minutes. By doubling the retry attempts, it bumped this to 20 minutes.

cc @jamesls @danielgtaylor

They were using the wrong JMESPath expression to check the status of the AWS
resource.
@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage remained the same when pulling 89211d7 on kyleknap:cloudfront-waiters into 28b9b1b on boto:develop.

Comment thread tests/unit/test_waiters.py Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Were you seeing cache issues before you added this? Line 522 we're not passing in a cache to the loader so it should be recreating a brand new cache each test.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

No, it is there by mistake. I was just copying some lines from another test that I found that uses loaders. This line is not needed.

@jamesls

jamesls commented Dec 31, 2014

Copy link
Copy Markdown
Member

:shipit: Small question about clearing the cache, otherwise looks good.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage remained the same when pulling 870b657 on kyleknap:cloudfront-waiters into 28b9b1b on boto:develop.

@kyleknap

Copy link
Copy Markdown
Contributor Author

I removed the unnecessary clearing of the cache in the test. Merging. Will update CLI changelog as well.

kyleknap added a commit that referenced this pull request Dec 31, 2014
@kyleknap
kyleknap merged commit 238c530 into boto:develop Dec 31, 2014
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.

Unable to use cloudfront wait invalidation-completed

3 participants