aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeLines
* Change base Python version to 3.113.11Gravatar Chris Lovering2022-09-14-7/+30
| | | | This also pre-installs all the deps into the built image, so shouldn't be deployed using the deployment found in this repo.
* Merge pull request #151 from python-discord/bump-depsGravatar ChrisJL2022-08-14-15/+15
|\
| * Bump all 3rd party deps in deployment fileGravatar Chris Lovering2022-08-14-14/+14
| |
| * Remove unneeded backslash in DockerfileGravatar Chris Lovering2022-08-14-1/+1
|/
* Merge #147 - create v1 cgroups as neededGravatar Mark2022-07-09-6/+93
|\
| * Use more common binary for testing v1 cgroupsGravatar Mark2022-07-09-3/+3
| |
| * Test v1 cgroups are created as neededGravatar Mark2022-07-04-0/+68
| |
| * Create v1 cgroups as neededGravatar Mark2022-07-03-6/+25
|/ | | | | | | | | Support creating cpu and net_cls cgroups in addition to mem and pids, since custom configs may use these controllers as well. Create the cgroups only for the controllers that are in-use i.e. have configured limits in the NsJail config. Resolve #101
* Merge pull request #146 from python-discord/dawnofmidnight/typing-extensionsGravatar ChrisJL2022-06-30-0/+1
|\ | | | | add typing-extensions to snekbox
| * add typing-extensions to snekboxGravatar dawn2022-06-30-0/+1
|/
* Merge #145 - make the output size limit customisableGravatar Mark2022-06-14-46/+82
|\
| * Mention output limit can be customised and fix link in README.mdGravatar Mark2022-06-07-2/+2
| |
| * Use new NsJail instance for each test in NsJailArgsTestsGravatar Mark2022-06-07-12/+11
| |
| * Test NsJail args are set and used when passed to __init__Gravatar Mark2022-06-06-0/+37
| |
| * Fix NsJail patch for API testsGravatar Mark2022-06-06-1/+1
| |
| * Rename DEBUG env var to SNEKBOX_DEBUGGravatar Mark2022-06-06-3/+3
| | | | | | | | | | Use a more unique name to avoid accidentally using the value of a similar env var that was set for an unrelated reason.
| * Remove env var support for NsJail argsGravatar Mark2022-06-06-10/+2
| | | | | | | | The values can effectively be set via the Gunicorn config instead.
| * Accept NsJail arguments via the WSGI app (SnekAPI)Gravatar Mark2022-06-06-5/+13
| |
| * Add config path & output size args to NsJail classGravatar Mark2022-06-04-22/+27
| |
| * Fix force-exclude option for blackGravatar Mark2022-06-04-1/+1
| | | | | | | | It should be a string, not a list.
| * Remove nsjail log blacklistGravatar Mark2022-06-04-5/+0
|/ | | | | The blacklisted error no longer appears with the default config since the uid and gid are set.
* Merge #144 - add black and isortGravatar Mark2022-06-04-126/+122
|\
| * CI: use GH's Ubuntu 22.04 runner instead of the self-hosted oneGravatar Mark2022-06-04-10/+2
| |
| * Docker: never pull image when using Docker ComposeGravatar Mark2022-06-04-0/+1
| | | | | | | | Force the image to be built if it doesn't exist.
| * Add black and isortGravatar MarkKoz2022-06-03-107/+111
| |
| * Update pre-commit hooks and flake8 pluginsGravatar MarkKoz2022-06-03-12/+11
|/
* Merge pull request #143 from python-discord/feat/tests/wsgi-app-from-cfgGravatar Hassan Abouelela2022-06-03-14/+19
|\ | | | | Import the WSGI app via the config during tests
| * Import the WSGI app via the config during testsGravatar MarkKoz2022-06-01-9/+7
| | | | | | | | | | Relying more on gunicorn and its config parsing will avoid discrepancies between the test and production environments.
| * Ignore deprecation warning from Sentry's Falcon integrationGravatar MarkKoz2022-06-01-5/+12
|/
* Fix WSGI app not being calledGravatar MarkKoz2022-06-01-1/+1
|
* CI: fix version step outputGravatar MarkKoz2022-06-01-2/+2
|
* Merge #142 - use version as release tag in Sentry actionGravatar Mark2022-06-01-2/+13
|\
| * CI: use version as release tag in Sentry actionGravatar MarkKoz2022-06-01-2/+13
|/
* Merge #141 - fix version commit countGravatar Mark2022-06-01-3/+9
|\
| * CI: print the version to help with debuggingGravatar MarkKoz2022-06-01-0/+1
| |
| * Remove GIT_SHA from README.mdGravatar MarkKoz2022-06-01-1/+0
| | | | | | | | The env var is no longer used anywhere.
| * CI: fetch git history to fix version scriptGravatar MarkKoz2022-06-01-1/+6
| | | | | | | | | | The last part of the version is the commit count, which relies on the repo's commit history.
| * Fix commit count part of version being off by 1Gravatar MarkKoz2022-06-01-1/+2
|/
* Merge #140 - add pyproject.toml and versioningGravatar Mark2022-06-01-119/+255
|\
| * Fix typo in Dockerfile commentGravatar Mark2022-06-01-1/+1
| | | | | | Co-authored-by: Matteo Bertucci <[email protected]>
| * Fix typo in project descriptionGravatar MarkKoz2022-05-31-1/+1
| |
| * CI: fix container entrypoint when running testsGravatar MarkKoz2022-05-31-1/+2
| |
| * CI: tag all images with versionGravatar MarkKoz2022-05-31-2/+6
| |
| * Docker: install package in image and use version to tag itGravatar MarkKoz2022-05-31-37/+45
| |
| * Fix package discovery for setuptoolsGravatar MarkKoz2022-05-31-2/+2
| | | | | | | | Subpackages weren't being included.
| * Automatically determine the package versionGravatar MarkKoz2022-05-31-3/+47
| | | | | | | | | | | | Use the HEAD commit's date as the package's version. Append the number of commits made on the same date as HEAD to ensure multiple releases on the same date still have unique versions.
| * Add __all__ to all modulesGravatar MarkKoz2022-05-30-4/+16
| |
| * Specify wsgi_app in Gunicorn configGravatar MarkKoz2022-05-30-2/+3
| |
| * Remove redundant module for creating the WSGI appGravatar MarkKoz2022-05-30-6/+3
| |
| * Make Sentry SDK and gunicorn optional dependenciesGravatar MarkKoz2022-05-30-8/+14
| | | | | | | | | | | | | | | | | | | | | | Falcon provides a WSGI app which can be used by any server, not just gunicorn. Thus, make gunicorn optional in case the user wants to use a different server. There shouldn't be any import errors since the class is now in an isolated module. The only time that module is imported is when gunicorn loads its config. Sentry is there for Python Discord mainly, so this dependency shouldn't be imposed on others.