aws / aws/chalice

Chalice deploy extremely slow: Overwhelming amount fo 'b "ZipFile" output

Open
#2,032 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
11.1k
Forks
1k
Avg merge
1d 22h
Merged PRs (30d)
2

Description

The `chalice deploy` is extremely slow, as in, it will take say 10-20 minutes to deploy, and each time I try, it shows an immense amount of code in the terminal, see below:

```
DEBUG:botocore.endpoint:Making request for OperationModel(name=UpdateFunctionCode) with params: {'url_path': '/2015-03-31/functions/fitness-session-dev/code', 'query_string': {}, 'method': 'PUT', 'headers':
{'Content-Type': 'application/json', 'User-Agent': 'aws-chalice/1.27.3 Python/3.7.0 Windows/10 exec-env/AWS_Lambda aws-chalice/1.27.3 Botocore/1.29.104'}, 'body': b'{"ZipFile": "UEsDBBQAAAAIAAAAIQDS9eTPASE
AAPWGAAAGAAAAc2l4LnB5xT37c9s2k7/7r8Ap0zGVT+Eldtq7y9SdOo7T6D6/Tnaa9vJ5aIqELNYUqfJhW/3m/vfbB0CCT8lybs6TiUhgd7HYXSwWDwIvxFG8XCXB7TwTljcUe6/fvH6193rvtXgvoz/cRRCJC5nJJI2jnRc7L+AlWQRpGsSRCFIxl4mcrsRt4kaZ9Edilkgp4
pnw5m5yK0cii4UbrcSS8EU8zdwgCqJb4QoPSgVyAJvNgVAaz7IHN5EA7gs3TWMvcIGi8GMvX8goczMscRaEMhVWNpdicKkwBkMqxpduCPSAXczVmeIhyOZxnolEplkSeEhlBEBemPvIh84Og0WgykB0EkcK5IBwnkI9kNuRWMR+MMNfSZVb5tMwSOcj4QdIfJpnkJhioicjxIK
6/GuciFSGyBrQCIB7qnHJIUFhOUsUbKZElWLKwzxeVGsTIE+zPImgWElYfgyio1L/kF6GKYgwi8MwfsAKenHkB1iv9B2p7wpy3Wl8L6lKrPYozoBj5gN1sSxVrLLSuRuGYiqV5KBokLNbqVWCPKQZ2EHghmIZJ1RovbY2M/HpWFyef7z6cjg5FuNLcTE5/3X84fiDGBxewvtgJ
L6Mrz6df74SADE5PLv6XZx/FIdnv4u/j88+jMTxbxeT48tLcT4BYuPTi5PxMaSOz45OPn8Yn/0i3gPm2fmVOBmfjq+A7NU5FamIjY8vkdzp8eToE7wevh+fjK9+HwGpj+OrM6T78XwiDsXF4eRqfPT55HAiLj5PLs4vj4GFD0D4bHz2cQLlHJ8en13ZUC6kieNf4UVcfjo8OcH
```

This continue for a few minutes, and happens everytime I try to deploy, even if a zip file is present in the `deployments` dir.

I have tried to run it with and without "pandas" and "numpy" in the requirements.txt, still the same situation.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue with the `chalice deploy` entry point and inspect the verbose terminal output around the `UpdateFunctionCode` request. Compare behavior with and without `pandas` and `numpy` in `requirements.txt`, and check whether an existing archive in `deployments` is reused; done means deployment completes without repeatedly printing the encoded `ZipFile` payload and without the reported delay.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, python
Domain
cloud, devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.