-
Notifications
You must be signed in to change notification settings - Fork 42
chore: improve stability of tests by copying SSM Parameter Value #830
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
Conversation
`{Fn::GetAtt}` on an `AWS::SSM::Parameter` is eventually consistent. If an SSM Parameter was just created in a stack deployment, the `{Fn::GetAtt}` may sometimes fail with a "Parameter not found" error. This causes ~2 canary failures per week (about 1% failure rate). We don't actually need to `{Fn::GetAtt}` the value as we know what it is (it is static, after all). Copy the same literal value into both places to reduce the canary failure rate by a little bit, and add a test to make sure the values don't accidentally drift apart. Internal reference D259904064.
Pull request was closed
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #830 +/- ##
==========================================
- Coverage 82.82% 82.15% -0.68%
==========================================
Files 65 65
Lines 9509 9509
Branches 1120 1105 -15
==========================================
- Hits 7876 7812 -64
- Misses 1599 1664 +65
+ Partials 34 33 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
{Fn::GetAtt}
on anAWS::SSM::Parameter
is eventually consistent. If an SSM Parameter was just created in a stack deployment, the{Fn::GetAtt}
may sometimes fail with a "Parameter not found" error.This causes ~2 canary failures per week (about 1% failure rate).
We don't actually need to
{Fn::GetAtt}
the value as we know what it is (it is static, after all). Copy the same literal value into both places to reduce the canary failure rate by a little bit, and add a test to make sure the values don't accidentally drift apart.Internal reference D259904064.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license