| Commit message (Collapse) | Author | Age | Lines | 
| |  | 
 | 
| | 
| 
| 
| 
|  | 
This is a test for #53, which fixed numpy failing to import due to
using multiple threads by default.
 | 
| |  | 
 | 
| | 
| 
| 
|  | 
Co-authored-by: 0xf0f <[email protected]>
 | 
| |  | 
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
|  | 
If memory swapping was enabled locally, the memory test would fail.
Explicitly disabling swapping also removes reliance on the assumption
that it'll be disabled in production.
* Add a constant for the maximum memory
* Simplify the timeout test; it'd otherwise first run out of memory now
 | 
| | 
| 
| 
| 
|  | 
* Add support for debug level to log regex
* Change type annotation of log_parse to Iterable
 | 
| | 
| 
| 
| 
| 
|  | 
* Fix SIGSEGV test
* Add embedded null byte test
* Return None for stderr when there's a ValueError
 | 
| | 
| 
| 
| 
| 
|  | 
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.
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
|  | 
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
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
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
 | 
| |\   | 
 | 
| | |  | 
 | 
| | |  | 
 | 
| | | 
| | 
| | 
| |  | 
This reverts commit e75c764f693c3688a59af0d679e0d3e94f003503.
 | 
| | | 
| | 
| | 
| | 
| |  | 
Tests ignore all D1xx warnings because tests shouldn't require
docstrings.
 | 
| |/   | 
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
|  | 
* 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
 | 
| |  | 
 | 
| |  | 
 | 
| |  | 
 | 
| |  | 
 | 
| |  | 
 | 
| |  | 
 | 
| |  | 
 | 
| |  | 
 | 
| |  | 
 | 
| |  | 
 | 
| |  | 
 | 
| |  | 
 | 
| | 
| 
| 
|  | 
errors not handled explicitly
 | 
| |  | 
 | 
| |  | 
 | 
| |  | 
 | 
| |  | 
 | 
| |  | 
 | 
|   
  
  
  
  
   | 
make snekbox a class
adds nsjail 2.5 (compiled on alpine 3.7)
execute python code via nsjail
 |