| Commit message (Collapse) | Author | Age | Lines | 
| |  | 
 | 
| |  | 
 | 
| |  | 
 | 
| | 
| 
| 
| 
|  | 
* Add succeededOrFailed condition to code coverage publish task
* Rename test publish task for unit tests
 | 
| |  | 
 | 
| | 
| 
| 
|  | 
* Exclude DEBUG checks from coverage reports
 | 
| | 
| 
| 
| 
|  | 
* 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
 | 
| | 
| 
| 
|  | 
Fixes #30
 | 
| |  | 
 | 
| | 
| 
| 
| 
| 
|  | 
* Mount volume to the same path as the source directory on the host
* Keep the container up in the background so it doesn't have to be
  restarted or the ownership fix
 | 
| | 
| 
| 
| 
| 
|  | 
When coverage runs in a container, it is ran under root so the resulting
coverage file is owned by root. chown is used to change ownership to
be the same as the folder it is in.
 | 
| | 
| 
| 
|  | 
* Use unittest and directly use coverage.py instead of pytest
 | 
| | 
| 
| 
|  | 
* Put scripts in a new scripts folder
 | 
| |  | 
 | 
| | 
| 
| 
| 
| 
| 
|  | 
* Venv image can sync dev dependencies
* Copy tests to image
* Add a Pipenv script for running  a development shell in a container
* Add Pipenv scripts for building dev images
 | 
| | 
| 
| 
| 
| 
| 
| 
|  | 
The handler now shares formats with the rest of the handlers. The
message is formatted to show the request method, URL + query, response
code, response size in bytes, and the request time in seconds.
* Use the default ISO 8601 date format for all handlers
 | 
| | 
| 
| 
| 
| 
| 
|  | 
* Remove -S option from Python to re-enable importing of site module
* Add environment variable NSJAIL_PATH
* Remove environment variables that were passed to NsJail subprocess
* Add type annotations to NsJail.__init__()
 | 
| | 
| 
| 
| 
| 
|  | 
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.
 | 
| |\  
| | 
| |  | 
Improve NsJail
 | 
| | | 
| | 
| | 
| | 
| | 
| | 
| | 
| | 
| |  | 
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
 | 
| | | 
| | 
| | 
| | 
| |  | 
Gunicorn's access logger makes the middleware redundant.
This reverts commit c1c854e0ad4deb5c4fa8eb2a35b43a042f15255c.
 | 
| | | 
| | 
| | 
| | 
| | 
| | 
| | 
| | 
| | 
| | 
| |  | 
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
 | 
| | |\  
| |/  
|/|    | 
 | 
| |\ \  
| | | 
| | |  | 
Replace Flask with Falcon
 | 
| | | |  | 
 | 
| | | |  | 
 | 
| | | |  | 
 | 
| | | |  | 
 | 
| | | |  | 
 | 
| | | |  | 
 | 
| | | | 
| | | 
| | | 
| | | 
| | |  | 
This way, it is easier for tests to use the application because they
can instead create their own instances after patching.
 | 
| | | |  | 
 | 
| | | |  | 
 | 
| |/ /   | 
 | 
| | |  | 
 | 
| | | 
| | 
| | 
| | 
| |  | 
* Ignore D1xx for tests because they shouldn't require docstrings
* Update pre-commit-hooks repo to v2.2.3
 | 
| | | 
| | 
| | 
| |  | 
This reverts commit c2416eb672afc80476fe2da1b364af5d018a16b0.
 | 
| | | 
| | 
| | 
| |  | 
This reverts commit e75c764f693c3688a59af0d679e0d3e94f003503.
 | 
| | |  | 
 | 
| | | 
| | 
| | 
| | 
| | 
| | 
| | 
| | 
| |  | 
Pre-commit is a nice wrapper for this particularily because it allows
both the snekbox and tests to be linted with a single command while
clearly distinguishing their results.
The Python script is a cross-platform implementation of the following:
    git ls-files -- '*.py' | xargs pre-commit run flake8 --files
 | 
| | | 
| | 
| | 
| | 
| |  | 
Tests ignore all D1xx warnings because tests shouldn't require
docstrings.
 | 
| | | 
| | 
| | 
| | 
| | 
| | 
| | 
| | 
| | 
| | 
| |  | 
Excluded files and directories in the flake8 config file are overwritten
by the --files argument, which is considered intended behaviour.
However, this is problematic due to pre-commit's reliance on the
--files argument. Therefore, pre-commit's own exclude config option
must be leveraged.
* Properly exclude tests directory
* Add flake8 plugins as dependencies so that they are actually used
 | 
| |/   | 
 | 
| |\   | 
 | 
| | |\  
| | | 
| | |  | 
Docstring lint change
 | 
| | | |  | 
 | 
| | | | 
| | | 
| | | 
| | |  | 
Oops
 | 
| | | |  | 
 | 
| | | | 
| | | 
| | | 
| | | 
| | | 
| | |  | 
Remove docstring-ends-with-period enforcement to allow for freedom of punctuation.
Removes D202, D204, D400
 |