-
Notifications
You must be signed in to change notification settings - Fork 10
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
Add "X-Exodus-Query" header #338
Conversation
re-push for fixing a typo in commit message (no code change) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the commit message is misleading:
- this has nothing to do with
https://aws.amazon.com/blogs/compute/implementing-safe-aws-lambda-deployments-with-aws-codedeploy/ , which is not something we're using or will be able to use - I don't think "Because of the traffic shift and traffic will be routed to different
lambda versions (in different regions)" is correct. At best it's misleading to say this is because of "traffic shift" and then link to an article about a kind of traffic shifting we're not doing.
Could the commit message please stick with the known facts? You don't have to put forward a theory as to why we might be hitting an old version of the lambda sometimes.
I would have written something like "Our tests sometimes seem to hit an old version of our lambda, for unclear reasons. Let's make it possible to query the currently deployed lambda version so we can at least reliably detect when this happens."
@@ -33,6 +33,12 @@ def handler(self, event, context): | |||
{"key": "Digest", "value": f"id-sha-256={sum_b64}"} | |||
] | |||
|
|||
if "headers" in request and "x-exodus-query" in request["headers"]: | |||
self.logger.error("x-exodus-query exist") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please drop this as it's not an error. You could keep a debug() if you really need it.
|
Our tests sometimes seem to hit an old version of our lambda, for unclear reasons. Let's make it possible to query the currently deployed lambda version so we can at least reliably detect when this happens. The "X-Exodus-Query" header is primarily used in a request, to provide the version of exodus-lambda, "X-Exodus-Version" in response.
re-push after the rebase of #337 |
Because of the traffic shift and traffic will be routed to different
lambda versions (in different regions), integration tests may run again
an old version lambda.
The "X-Exodus-Query" header is primarily used in a request, to provide
the version of exodus-lambda, "X-Exodus-Version" in response.
For traffic shift:
https://aws.amazon.com/blogs/compute/implementing-safe-aws-lambda-deployments-with-aws-codedeploy/