awslabs / aws-greengrass-labs-certificate-rotator

Greengrass component and companion cloud backend for rotating the core device certificate and private key
Apache License 2.0
13 stars 2 forks source link

Intermittent automated test failures #51

Closed gregbreen closed 6 months ago

gregbreen commented 6 months ago

A single run of the Robot suite performs hundreds or thousands of certificate roations, depending on the test fleet size. Occasional test case failures are observed due to:

  1. Expiry of the 3s Lambda timeout on the job execution terminal Lambda; this timeout needs to be longer to deal with occasional outliers.
  2. Eventual consistency of the greengrassv2 API operations; sometimes GetDeployment returns a ResourceNotFound exception in the seconds after CreateDeployment.

Both issues are rare, but could happen on certificate rotations performed on production fleets, with greater likelhood of occuring on bigger fleet sizes.