-
Notifications
You must be signed in to change notification settings - Fork 2
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
Fix: Service responses are not compressed (#6360) #6412
Fix: Service responses are not compressed (#6360) #6412
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #6412 +/- ##
===========================================
- Coverage 85.42% 85.39% -0.03%
===========================================
Files 156 156
Lines 20674 20680 +6
===========================================
Hits 17660 17660
- Misses 3014 3020 +6 ☔ View full report in Codecov by Sentry. |
56e0429
to
86f06dd
Compare
86f06dd
to
8594d4a
Compare
8594d4a
to
d5cea4b
Compare
|
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.
Consider the following suggestion, otherwise looks good!
src/azul/terraform.py
Outdated
# Using these AWS API Gateway extensions to the OpenAPI specification | ||
# avoids maintaining a complicated `replace_triggered_by` and `triggers` | ||
# dependency between Terraform resources in order to ensure that the API | ||
# gateway is deployed when these properties are modified. |
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.
# Using these AWS API Gateway extensions to the OpenAPI specification | |
# avoids maintaining a complicated `replace_triggered_by` and `triggers` | |
# dependency between Terraform resources in order to ensure that the API | |
# gateway is deployed when these properties are modified. | |
# Using these AWS API Gateway extensions to the OpenAPI specification | |
# eliminates the need to maintain a complicated `replace_triggered_by` and | |
# `triggers` dependency between Terraform resources, thereby ensuring the | |
# API Gateway resource is deployed when these properties are modified. |
or as you may see appropriate.
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.
Since there is only one of these API Gateway extensions being added in this PR, I changed the verbiage to be singular. Later, when other extensions are added in we can change the comment to be plural (e.g. "this property" -> "these properties").
820ce2b
to
e09ec05
Compare
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.
Approved ✅
@@ -25,7 +25,6 @@ | |||
"manage_iam_role": False, | |||
"iam_role_arn": "${aws_iam_role.%s.arn}" % app_name, | |||
"environment_variables": config.lambda_env, | |||
"minimum_compression_size": config.minimum_compression_size, |
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'm having a hard time parsing this, probably due to the elaborate prompt setup you have going there. We usually use $
to indicate a shell prompt in terminal transcripts. Could you simplify your evidence according to that convention. The */.chalice/terraform/chalice.tf.json
files are intermediates, what counts ultimately are the tf.json
files in terraform/
. Please use those. Lastly, please use jq
to extract the resource that would contain the conflicting property.
@@ -25,7 +25,6 @@ | |||
"manage_iam_role": False, | |||
"iam_role_arn": "${aws_iam_role.%s.arn}" % app_name, | |||
"environment_variables": config.lambda_env, | |||
"minimum_compression_size": config.minimum_compression_size, |
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.
Scratch that. In fact, since we're post-processing the Chalice-generated TF config, please just add an assertion that the corresponding TF resource property is absent. Then we won't need any evidence.
c5ea756
to
a2ae7b7
Compare
src/azul/terraform.py
Outdated
# dependency between Terraform resources. | ||
# | ||
rest_api = resources['aws_api_gateway_rest_api'][app_name] | ||
assert 'minimum_compression_size' not in rest_api, rest_api.keys() |
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.
assert 'minimum_compression_size' not in rest_api, rest_api.keys() | |
assert 'minimum_compression_size' not in rest_api, rest_api |
When it's unexpectedly set, you'd want to see what it's set to.
src/azul/terraform.py
Outdated
# specification lets us avoid maintaining a complicated trigger | ||
# dependency between Terraform resources. |
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.
This will not make sense to anyone not intimately familiar with the issue. I think you shouldn't explain what the solution was (the complicated dependencies) but rather what the problem was (the property reset, and when it occurred).
a2ae7b7
to
25220b3
Compare
25220b3
to
c5d660d
Compare
c5d660d
to
9004360
Compare
Security design review
|
9004360
to
606e717
Compare
Connected issues: #6360
Checklist
Author
develop
issues/<GitHub handle of author>/<issue#>-<slug>
1 when the issue title describes a problem, the corresponding PR
title is
Fix:
followed by the issue titleAuthor (partiality)
p
tag to titles of partial commitspartial
or completely resolves all connected issuespartial
labelAuthor (chains)
base
or this PR is not chained to another PRchained
or is not chained to another PRAuthor (reindex, API changes)
r
tag to commit title or the changes introduced by this PR will not require reindexing of any deploymentreindex:dev
or the changes introduced by it will not require reindexing ofdev
reindex:anvildev
or the changes introduced by it will not require reindexing ofanvildev
reindex:anvilprod
or the changes introduced by it will not require reindexing ofanvilprod
reindex:prod
or the changes introduced by it will not require reindexing ofprod
reindex:partial
and its description documents the specific reindexing procedure fordev
,anvildev
,anvilprod
andprod
or requires a full reindex or carries none of the labelsreindex:dev
,reindex:anvildev
,reindex:anvilprod
andreindex:prod
API
or this PR does not modify a REST APIa
(A
) tag to commit title for backwards (in)compatible changes or this PR does not modify a REST APIapp.py
or this PR does not modify a REST APIAuthor (upgrading deployments)
make image_manifests.json
and committed the resulting changes or this PR does not modifyazul_docker_images
, or any other variables referenced in the definition of that variableu
tag to commit title or this PR does not require upgrading deploymentsupgrade
or does not require upgrading deploymentsdeploy:shared
or does not modifyimage_manifests.json
, and does not require deploying theshared
component for any other reasondeploy:gitlab
or does not require deploying thegitlab
componentdeploy:runner
or does not require deploying therunner
imageAuthor (hotfixes)
F
tag to main commit title or this PR does not include permanent fix for a temporary hotfixanvilprod
andprod
) have temporary hotfixes for any of the issues connected to this PRAuthor (before every review)
develop
, squashed old fixupsmake requirements_update
or this PR does not modifyrequirements*.txt
,common.mk
,Makefile
andDockerfile
R
tag to commit title or this PR does not modifyrequirements*.txt
reqs
or does not modifyrequirements*.txt
make integration_test
passes in personal deployment or this PR does not modify functionality that could affect the IT outcomePeer reviewer (after approval)
System administrator (after approval)
demo
orno demo
no demo
no sandbox
N reviews
label is accurateOperator (before pushing merge the commit)
reindex:…
labels andr
commit title tagno demo
develop
_select dev.shared && CI_COMMIT_REF_NAME=develop make -C terraform/shared apply_keep_unused
or this PR is not labeleddeploy:shared
_select dev.gitlab && CI_COMMIT_REF_NAME=develop make -C terraform/gitlab apply
or this PR is not labeleddeploy:gitlab
_select anvildev.shared && CI_COMMIT_REF_NAME=develop make -C terraform/shared apply_keep_unused
or this PR is not labeleddeploy:shared
_select anvildev.gitlab && CI_COMMIT_REF_NAME=develop make -C terraform/gitlab apply
or this PR is not labeleddeploy:gitlab
deploy:gitlab
deploy:gitlab
System administrator
dev.gitlab
are complete or this PR is not labeleddeploy:gitlab
anvildev.gitlab
are complete or this PR is not labeleddeploy:gitlab
Operator (before pushing merge the commit)
_select dev.gitlab && make -C terraform/gitlab/runner
or this PR is not labeleddeploy:runner
_select anvildev.gitlab && make -C terraform/gitlab/runner
or this PR is not labeleddeploy:runner
sandbox
label or PR is labeledno sandbox
dev
or PR is labeledno sandbox
anvildev
or PR is labeledno sandbox
sandbox
deployment or PR is labeledno sandbox
anvilbox
deployment or PR is labeledno sandbox
sandbox
deployment or PR is labeledno sandbox
anvilbox
deployment or PR is labeledno sandbox
sandbox
or this PR does not remove catalogs or otherwise causes unreferenced indices indev
anvilbox
or this PR does not remove catalogs or otherwise causes unreferenced indices inanvildev
sandbox
or this PR is not labeledreindex:dev
anvilbox
or this PR is not labeledreindex:anvildev
sandbox
or this PR is not labeledreindex:dev
anvilbox
or this PR is not labeledreindex:anvildev
p
if the PR is also labeledpartial
Operator (chain shortening)
develop
or this PR is not labeledbase
chained
label from the blocked PR or this PR is not labeledbase
base
base
label from this PR or this PR is not labeledbase
Operator (after pushing the merge commit)
dev
anvildev
dev
dev
anvildev
anvildev
_select dev.shared && make -C terraform/shared apply
or this PR is not labeleddeploy:shared
_select anvildev.shared && make -C terraform/shared apply
or this PR is not labeleddeploy:shared
dev
anvildev
Operator (reindex)
dev
or this PR is neither labeledreindex:partial
norreindex:dev
anvildev
or this PR is neither labeledreindex:partial
norreindex:anvildev
dev
or this PR is neither labeledreindex:partial
norreindex:dev
anvildev
or this PR is neither labeledreindex:partial
norreindex:anvildev
dev
or this PR is neither labeledreindex:partial
norreindex:dev
anvildev
or this PR is neither labeledreindex:partial
norreindex:anvildev
dev
or this PR does not require reindexingdev
anvildev
or this PR does not require reindexinganvildev
dev
or this PR does not require reindexingdev
anvildev
or this PR does not require reindexinganvildev
dev
or this PR does not require reindexingdev
anvildev
or this PR does not require reindexinganvildev
Operator
deploy:shared
,deploy:gitlab
,deploy:runner
,API
,reindex:partial
,reindex:anvilprod
andreindex:prod
labels to the next promotion PRs or this PR carries none of these labelsdeploy:shared
,deploy:gitlab
,deploy:runner
,API
,reindex:partial
,reindex:anvilprod
andreindex:prod
labels, from the description of this PR to that of the next promotion PRs or this PR carries none of these labelsShorthand for review comments
L
line is too longW
line wrapping is wrongQ
bad quotesF
other formatting problem