| Commit message (Collapse) | Author | Age | Lines | |
|---|---|---|---|---|
| * | Add a NsJail log parser test | 2019-06-22 | -0/+30 | |
| | | | | | | * Add support for debug level to log regex * Change type annotation of log_parse to Iterable | |||
| * | Rewrite NsJail tests | 2019-06-22 | -56/+77 | |
| | | | | | | | * Fix SIGSEGV test * Add embedded null byte test * Return None for stderr when there's a ValueError | |||
| * | Merge stdout and stderr | 2019-06-15 | -1/+0 | |
| | | | | | | | Removes the need for redirecting stderr using contextlib in the input. Furthermore, it captures errors which don't directly come from the input, such as SyntaxErrors. | |||
| * | Respond to eval with stdout, stderr, and the return code | 2019-06-05 | -3/+10 | |
| | | | | | | | | | | The previous implementation limited the client's flexibility in presenting the results of the process. A process can write to both stdout and stderr and do so even when the return code is not 0 or 1. * Return a CompletedProcess from NsJail * Don't check the return code; this should be done client-side now | |||
| * | Add logging for NsJail | 2019-06-05 | -1/+1 | |
| | | | | | | | | | | | | NsJail's is configured to log to a temporary file rather than stderr. The contents of the file are parsed using regex after the process exits. When not debugging, some blacklisted messages and most info-level messages are skipped. * Add a snekbox logger * Log the Python code being executed if debugging * Use nested single quotes in a test to fix a linter error | |||
| * | Merge remote-tracking branch 'origin/revitalisation' into refactor/nsjail | 2019-06-05 | -1/+66 | |
| |\ | ||||
| | * | Move SnekAPI import back to top of module | 2019-05-29 | -1/+2 | |
| | | | ||||
| | * | Add API tests for eval resource | 2019-05-29 | -1/+65 | |
| | | | ||||
| * | | Revert "Lint tests" | 2019-05-30 | -15/+0 | |
| | | | | | | | | | This reverts commit e75c764f693c3688a59af0d679e0d3e94f003503. | |||
| * | | Lint tests | 2019-05-30 | -0/+15 | |
| | | | | | | | | | | | Tests ignore all D1xx warnings because tests shouldn't require docstrings. | |||
| * | | Add flake8 plugin to only allow double quotes | 2019-05-29 | -23/+23 | |
| |/ | ||||
| * | Restructure project layout | 2019-03-28 | -8/+8 | |
| | | | | | | | | | | * Move all code into a "snekbox" package * Use logging code as __init__.py * Rename Snekbox class to NsJail * Create "site" sub-package * Move templates into this sub-package * Move Flask code into a new snekapp module | |||
| * | Remove RMQ, Add API POST request method. | 2019-01-20 | -12/+8 | |
| | | ||||
| * | upgrade alpine to 3.8 and python to 3.6.6, remove old tests also cache pipenv | 2018-07-29 | -15/+7 | |
| | | ||||
| * | update pipfile lock, handle value error, show error codes when unhandled | 2018-07-24 | -13/+16 | |
| | | ||||
| * | missing comma | 2018-07-05 | -6/+7 | |
| | | ||||
| * | I should have made an MR for this | 2018-07-05 | -13/+13 | |
| | | ||||
| * | skip tests for now :( | 2018-07-05 | -10/+9 | |
| | | ||||
| * | fix tests | 2018-07-05 | -6/+6 | |
| | | ||||
| * | adds rabbitmq service for tests | 2018-06-05 | -2/+1 | |
| | | ||||
| * | consistent naming conventions, update readme, hopefully fix travis test | 2018-06-03 | -1/+0 | |
| | | ||||
| * | nsjail workaround, fix forkbomb, add forkbomb unit test | 2018-06-03 | -2/+10 | |
| | | ||||
| * | set dependency on rmq publish | 2018-06-02 | -39/+41 | |
| | | ||||
| * | remove commented out code [ci skip] | 2018-06-02 | -1/+0 | |
| | | ||||
| * | handle autodiscover better, find the python executable automatically, log ↵ | 2018-06-02 | -2/+2 | |
| | | | | | errors not handled explicitly | |||
| * | more testing | 2018-05-31 | -0/+17 | |
| | | ||||
| * | travis is annoying | 2018-05-31 | -1/+4 | |
| | | ||||
| * | more tests | 2018-05-31 | -0/+25 | |
| | | ||||
| * | use the virtualenv python binary in travis | 2018-05-31 | -2/+2 | |
| | | ||||
| * | adds nsjail compiled for ubuntu to see if unit testing can work with that | 2018-05-31 | -2/+8 | |
| | | ||||
| * | secure python execution | 2018-05-30 | -0/+8 | |
| make snekbox a class adds nsjail 2.5 (compiled on alpine 3.7) execute python code via nsjail | ||||