Where to put tests and venv folders?
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
Research direction
Start by reproducing doctl sbx deploy from the project root with the tests and virtualenv folders present, using the existing project.yaml. Check how deployment selects files and whether ignored folders or a configurable exclusion mechanism is documented; done means the project can retain its local test and virtualenv folders while deployment excludes them and stays within the size limit.
Written by the indexing model from the issue text.
Description
When working on my own DO function, I created a tests folder (with unit and integration tests) as well as a virtualenv in the root folder of the project (including a bin, lib, lib64. include and share folder). But when running the doctl sbx deploy command from the root folder of the project (same location as the project.yaml file), it failed with an error saying that the bin folder was larger than the allowed 250KB. Only by removing all the virtualenv folders (and thus making the project non-runnable locally) did I manage to upload the function code.
Is there a list of folders that the doctl deploy command will ignore by default? Or is there a way to manually specify folders to ignore when deploying? Or is there an alternative way of structuring the project that avoids the problem of the deploy command trying to upload unrelated folders?
- Dominant language
- Python
- Stars
- 40
- Forks
- 60
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from digitalocean/sample-functions-python-jokes
-
Failed to deploy Open
Difficulty 3/5 1-2 days Newbie friendliness 25/100
digitalocean/sample-functions-python-jokes#11 · 4 comments · 1 reaction ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
digitalocean/sample-functions-python-jokes#7 · 7 comments ·
All issues in digitalocean/sample-functions-python-jokes
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100