aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeLines
...
| * Update to Debian BookwormGravatar Mark2023-09-15-5/+5
|/ | | | | | | | | | | Mount /dev/shm in the container by setting ipc to "private". This is the same as "none" (the previous value) with the only difference being that shm is mounted. This is needed for integration tests to pass. The integration tests always relied on shared memory due to their use of multiprocessing. They managed to work because glibc used to fall back to /tmp if /dev/shm wasn't available. However, newer versions of glibc, which Debian Bookworm now uses, removed that fallback behaviour.
* Merge pull request #192 from python-discord/bump-Python-versionsGravatar Joe Banks2023-09-11-5/+5
|\ | | | | Bump Python versions
| * Bump numpy up to 1.26.0rc1 when running on 3.12Gravatar Chris Lovering2023-09-11-1/+1
| |
| * Bump python versions used by snekbox to latestGravatar Chris Lovering2023-09-11-4/+4
|/ | | | | | 3.11.5 requires at least pyenv 2.3.25, so bumped to latest (2.3.26) for good measure anyway. 3.12.0rc2 requires pyenv 2.3.25
* Merge pull request #186 from python-discord/update-eval-depsGravatar Joe Banks2023-09-01-14/+14
|\ | | | | Update eval deps
| * Merge branch 'main' into update-eval-depsGravatar Joe Banks2023-09-01-14/+13
| |\ | |/ |/|
* | Include install eval deps in final image (#191)Gravatar ChrisJL2023-08-31-0/+1
| |
* | Make CI and deployment.yaml share the same dependency install script (#190)Gravatar ChrisJL2023-08-31-14/+12
| | | | | | | | | | | | | | | | | | * Make CI and deployment.yaml share the same dependency install script * squashme: add set -euo pipefail as sane defaults This also requires running under bash rather than sh * squashme: add make target for installing eval deps
| * Add references to when eval packages will be updated for 3.12Gravatar Chris Lovering2023-08-30-3/+3
| |
| * Bump eval-deps to latest versionsGravatar Chris Lovering2023-08-30-13/+13
|/
* Fix link in readme (#189)Gravatar wookie1842023-08-30-1/+1
|
* Merge pull request #188 from python-discord/test-init-container-in-CIGravatar Joe Banks2023-08-30-0/+29
|\ | | | | Test deployment init container in CI
| * Test deployment init container in CIGravatar Chris Lovering2023-08-30-0/+29
|/
* Merge pull request #113 from python-discord/jb3/shared-memGravatar wookie1842023-08-30-17/+72
|\ | | | | Enable a limited tmpfs for shared memory
| * Merge branch 'main' into jb3/shared-memGravatar wookie1842023-08-30-114/+247
| |\ | |/ |/|
* | Merge pull request #185 from python-discord/jb3/refactor-eval-depsGravatar Joe Banks2023-08-29-35/+40
|\ \ | | | | | | Refactor how we process eval dependencies
| * | Switch from using post start hooks to init containersGravatar Joe Banks2023-08-29-35/+16
| | | | | | | | | | | | Switch from using a post-start hook to using an init container to install dependencies on all configured versions
| * | Move eval deps into their own requirements fileGravatar Joe Banks2023-08-29-0/+24
|/ /
* | Merge pull request #184 from python-discord/jb3/3.12-ignoresGravatar Joe Banks2023-08-29-5/+6
|\ \ | | | | | | Disable dependencies without wheels on 3.12
| * | Disable dependencies without wheels on 3.12Gravatar Joe Banks2023-08-29-5/+6
|/ / | | | | | | Also use a numpy release candidate to maintain numpy and scipy
* | Merge pull request #181 from python-discord/feat/158/multi-versionGravatar ChrisJL2023-08-29-77/+135
|\ \ | | | | | | Install Multiple Python Versions in the Image
| * | Install eval dependencies with --user & ensure user base var is setGravatar Joe Banks2023-08-29-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | Due to the way that `find` executes -exec arguments we need to run the pip install's inside another `sh` instance so that the PYTHONUSERBASE environment variable is correctly picked up. Additionally, we need to specify `--user` so that pip respects the PYTHONUSERBASE variable at all.
| * | Fix numpy install for testGravatar Mark2023-08-19-1/+1
| | | | | | | | | | | | Need to use `export` to set vars when && is used between the commands.
| * | Remove leading empty strings from NsJail config argsGravatar Mark2023-08-19-2/+2
| | | | | | | | | | | | | | | Prevent an empty exec_bin.args from manifesting as an empty string in the fully built arguments.
| * | Use --link with COPY in DockerfileGravatar Mark2023-08-19-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | Re-use already built COPY layers in subsequent builds even if the previous layers have changed, which is especially helpful when copying from another build stage. See https://docs.docker.com/engine/reference/builder/#copy---link
| * | Install multiple Python versions in imageGravatar Mark2023-08-19-56/+117
| | | | | | | | | | | | | | | | | | | | | | | | Separate snekbox's Python interpreter from the interpreter used by NsJail. This allows for the interpreters to be updated on different cadences and provides better isolation of packages. Each Python interpreter adds about 70 MB to the built image.
| * | Use buildpack-deps as the builder base imageGravatar Mark2023-08-07-9/+6
| | | | | | | | | | | | | | | Get some of the NsJail build dependencies pre-installed thanks to the base image.
| * | Remove explicit package versions from DockerfileGravatar Mark2023-08-07-14/+14
| | | | | | | | | | | | | | | It's using a stable version of Debian, so it's redundant to lock packages to specific versions.
* | | Merge pull request #183 from python-discord/enforce-filesize-limitsGravatar Joe Banks2023-08-29-7/+76
|\ \ \ | |/ / |/| | Enforce filesize limits
| * | Limit total file size read from tmpfs to avoid high memory usageGravatar wookie1842023-08-29-4/+73
| | |
| * | Use pip-tools version that supports newer pip versionsGravatar wookie1842023-08-29-3/+3
|/ /
| * Update tests to account for shared memoryGravatar Joe Banks2023-08-28-17/+64
| |
| * Enable a limited tmpfs for shared memoryGravatar Joe Banks2021-07-21-0/+8
|/
* Merge #180 - fix integration testsGravatar Mark2023-06-23-0/+18
|\
| * Kill process after waiting for it to terminateGravatar wookie1842023-06-23-2/+3
| |
| * Attempt to fix flaky integration testsGravatar wookie1842023-06-22-0/+11
| |
| * Fix issue when running individual integration testsGravatar wookie1842023-06-22-0/+6
|/
* Merge pull request #178 from python-discord/fix-status-badgeGravatar ChrisJL2023-06-22-2/+2
|\ | | | | Fix actions status badge
| * Fix actions status badgeGravatar wookie1842023-06-22-2/+2
|/
* Merge pull request #173 from python-discord/file-scan-recursion-fixGravatar ChrisJL2023-05-09-41/+117
|\ | | | | Fix recursion error during file attachment parsing of deep nested paths
| * Merge branch 'main' into file-scan-recursion-fixGravatar ChrisJL2023-05-09-49/+34
| |\ | |/ |/|
* | Update Sentry SDK to support Falcon 3Gravatar Bradley Reynolds2023-03-13-49/+34
| | | | | | Signed-off-by: Bradley Reynolds <[email protected]>
| * Update type hint for `files_timeout` to be `int` to be compatible with ↵Gravatar Ionite2023-03-16-1/+1
| | | | | | | | `timed.time_limit`
| * Add unit tests for time_limitGravatar Ionite2023-03-16-0/+30
| |
| * Include TimeoutError in raises docstring fieldGravatar Ionite2023-03-16-4/+6
| |
| * Rename `count` variableGravatar Ionite2023-03-16-3/+3
| |
| * Use log.exception for catch allGravatar Ionite2023-03-16-1/+1
| |
| * Update snekbox/utils/timed.pyGravatar Ionite2023-03-15-1/+1
| | | | | | Co-authored-by: Mark <[email protected]>
| * Remove unused timed functionGravatar Ionite2023-03-13-33/+4
| |
| * Add SIGALRM based time limitGravatar Ionite2023-03-13-13/+42
| |