Skip to content

Conversation

elhedran
Copy link
Contributor

@elhedran elhedran commented Sep 3, 2019

Tests and fix to ensure minimum total wait time for validating dns validated certificates is sufficient for slower regions. Was 6 seconds, now at least 60 (but no more than 360).

Fixes #3912


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

Add a minimum component to the backoff and retry timer
Provide stub function for sleep to allow long running sleep to
cause test to fail
spy on sleep function to determine total time attempted to sleep
Failing test demonstrating min sleep is as low as 4.6 seconds.
Increase max attempts in validation, still under 10,
but such that minimum sleep duration of one minute is reached
(but not more than 3 minutes).

Can adjust tests if window is not suitable, but I find that at least
30 seconds is needed in my region
@mergify
Copy link
Contributor

mergify bot commented Sep 3, 2019

Pull Request Checklist

  • Testing
  • Unit test added (prefer to add a new test rather than modify existing tests)
  • CLI change? Re-run/add CLI integration tests
  • Documentation
  • Inline docs: make sure all public APIs are documented (copy & paste from official AWS docs)
  • README: update module README
  • Design: for significant features, follow the design process
  • Title uses the format type(scope): text
  • Type: fix, feat, refactor go into CHANGELOG, chore is hidden
  • Scope: name of the module without the aws- or cdk- prefix or postfix (e.g. s3 instead of aws-s3-deployment)
  • Style: use all lower-case, do not end with a period
  • Description
  • Rationale: describe rationale of change and approach taken
  • Issues: Indicate issues fixed via: fixes #xxx or closes #xxx
  • Breaking?: last paragraph: BREAKING CHANGE: <describe what changed + link for details>
  • Sensitive Modules (requires 2 PR approvers)
  • IAM document library (in @aws-cdk/aws-iam)
  • EC2 security groups and ACLs (in @aws-cdk/aws-ec2)
  • Grant APIs (if not based on official documentation with a reference)

@eladb
Copy link
Contributor

eladb commented Sep 3, 2019

Please check all the boxes in the PR checklist

@elhedran
Copy link
Contributor Author

elhedran commented Sep 3, 2019

Please check all the boxes in the PR checklist

Sorry, but I'm not sure what you mean. I don't seem to have rights to edit the bot's reply, but I have done each of the checks.

  • Testing has been added,
  • Docs not updated as it isn't a functional change
  • Titled the PR as per description
  • Not breaking, gave reason for change, indicated issue fixed
  • doesn't touch sensitive modules.

As near as I can tell 'checking all the boxes' means doing what they ask (done that) and also editing the bot's reply (I don't have permission). If it means something else could you please let me know? I haven't had experience with mergify before so I may be missing something obvious

@elhedran
Copy link
Contributor Author

elhedran commented Sep 5, 2019

image

@eladb - I assume I should see an 'edit' here if I had permission to check of the PR checklist?

@eladb eladb changed the title fix(certificatemanager): Fixes #3912 increase minimum validation total timeout fix(certificatemanager): increase minimum validation total timeout Sep 6, 2019
@mergify
Copy link
Contributor

mergify bot commented Sep 6, 2019

Thank you for contributing! Your pull request is now being automatically merged.

@mergify
Copy link
Contributor

mergify bot commented Sep 6, 2019

Thank you for contributing! Your pull request is now being automatically merged.

@mergify mergify bot merged commit 4973a8c into aws:master Sep 6, 2019
@yashutanna
Copy link

Hi! thanks for the fix. how would i make use of this configuration using aws-cdk@1.8.0?

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.

minimum timeout for validating dnsvalidatedcertificates.
4 participants