Commit message (Collapse) | Author | Age | Lines | |
---|---|---|---|---|
* | Update test_forkbomb_resource_unavailable to disable memory limitsHEADmain | 5 days | -5/+13 | |
| | | | | | | | This was still producing unpredictable behaviour in CI (sometimes being killed and exiting with 137/OOM kill). Disabling the memory limit ensures that the only reason this test case will kill the executing code is because of PID exhaustion. | |||
* | Reduce PID limits for test_forkbomb_resource_unavailable | 9 days | -4/+14 | |
| | | | | | | | | This test case was being caught and nsjail was killing it, but not because of PID exhaustion but memory exhaustion. To ensure PID exhaustion is guarded against the PID count is now reduced to a level where nsjail will kill the process earlier before the memory limit. | |||
* | Update nsjail tests to try avoid multiprocessing exception | 10 days | -10/+11 | |
| | ||||
* | Close & unlick SharedMemory object in tests | 2025-07-30 | -0/+2 | |
| | | | | Not doing so outputs a warning about leaking SharedMemory, which fails the test | |||
* | Reuse the default executable path const in tests | 2024-10-05 | -4/+2 | |
| | ||||
* | Update all references to /lang to /snekbin | 2024-10-03 | -2/+2 | |
| | ||||
* | Allow setting a binary_path when calling /eval | 2024-10-03 | -1/+3 | |
| | ||||
* | Raise error if attachment pathname contains invalid bytes (#209) | 2024-04-09 | -0/+14 | |
| | ||||
* | Refactor modules into subpackages | 2023-10-27 | -2/+2 | |
| | ||||
* | Use lower timeout for file parsing timeout test | 2023-09-16 | -2/+2 | |
| | | | | | | | Updating to Bookworm may have increased performance of the file processing. In any case, this test started failing intermittently on when running on a local machine. Lower the timeout so even fast machines will hit the timeout. | |||
* | Merge branch 'main' into jb3/shared-mem | 2023-08-30 | -4/+59 | |
|\ | ||||
| * | Merge pull request #181 from python-discord/feat/158/multi-version | 2023-08-29 | -2/+2 | |
| |\ | | | | | | | Install Multiple Python Versions in the Image | |||
| | * | Install multiple Python versions in image | 2023-08-19 | -2/+2 | |
| | | | | | | | | | | | | | | | | | | | | | | | | 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. | |||
| * | | Limit total file size read from tmpfs to avoid high memory usage | 2023-08-29 | -2/+57 | |
| |/ | ||||
* / | Update tests to account for shared memory | 2023-08-28 | -17/+64 | |
|/ | ||||
* | Add unit test for deeply nested path file parsing | 2023-03-11 | -0/+23 | |
| | | | | Using example for reproducing issue #172 | |||
* | Add unit test for hidden paths exclusion | 2023-03-09 | -0/+19 | |
| | ||||
* | Add new -B flag to unit tests | 2023-03-08 | -1/+1 | |
| | ||||
* | Update file write error unit test | 2023-03-02 | -3/+9 | |
| | ||||
* | Update unit tests for home output directory | 2023-03-02 | -3/+3 | |
| | ||||
* | Add refactors for Size enum rename | 2022-12-04 | -2/+2 | |
| | ||||
* | Change Size to IntEnum, change usage in tests | 2022-11-28 | -2/+3 | |
| | ||||
* | Refactor FileAttachment as non generic | 2022-11-28 | -4/+4 | |
| | ||||
* | Switch null byte test to use eval_code | 2022-11-28 | -3/+2 | |
| | ||||
* | Add additional tests for py_args | 2022-11-28 | -9/+14 | |
| | ||||
* | Add request file IO error handling | 2022-11-24 | -0/+8 | |
| | ||||
* | Refactor output files in `output` dir | 2022-11-24 | -3/+3 | |
| | ||||
* | Fixed leading empty filter for py_args | 2022-11-22 | -5/+12 | |
| | ||||
* | Refactor file parse timeout | 2022-11-22 | -6/+28 | |
| | ||||
* | Clarify resource unit test | 2022-11-21 | -3/+3 | |
| | ||||
* | Refactor config patches in tests | 2022-11-21 | -28/+3 | |
| | ||||
* | Add root back to unit test | 2022-11-21 | -1/+1 | |
| | ||||
* | Combined file handling to FileAttachment class | 2022-11-20 | -4/+4 | |
| | ||||
* | Add unit test for multiple python files | 2022-11-19 | -0/+11 | |
| | ||||
* | Implement files request form | 2022-11-19 | -25/+35 | |
| | ||||
* | Remove /dev/shm mounts | 2022-11-19 | -17/+4 | |
| | ||||
* | Refactored tests to use new kwargs | 2022-11-17 | -13/+15 | |
| | ||||
* | Added additional unit tests | 2022-11-16 | -7/+65 | |
| | ||||
* | Fixed unit tests | 2022-11-16 | -6/+23 | |
| | ||||
* | Use more common binary for testing v1 cgroups | 2022-07-09 | -3/+3 | |
| | ||||
* | Test v1 cgroups are created as needed | 2022-07-04 | -0/+68 | |
| | ||||
* | Use new NsJail instance for each test in NsJailArgsTests | 2022-06-07 | -12/+11 | |
| | ||||
* | Test NsJail args are set and used when passed to __init__ | 2022-06-06 | -0/+37 | |
| | ||||
* | Add config path & output size args to NsJail class | 2022-06-04 | -3/+3 | |
| | ||||
* | Add black and isort | 2022-06-03 | -39/+51 | |
| | ||||
* | Fix NsJail args test | 2021-12-21 | -1/+2 | |
| | | | | | Dynamically calculate the position of the arguments rather than hard-coding them. | |||
* | test: add test_multiprocess_resource_limits to test memory limit sharing | 2021-07-17 | -0/+28 | |
| | | | | This test ensures that spawned child processes inherit the same resource group as the parent by spawning 2 child processes which each allocate a 40MB object, it then verifies that one of the child processes was killed with SIGKILL for violating the resource quota. | |||
* | test: update pid limit tests to account for new increased limit | 2021-07-17 | -1/+10 | |
| | ||||
* | chore: Add tests for py_args and ns_jail args | 2021-05-18 | -0/+13 | |
| | ||||
* | Match new unicode eval tests and output to the format and functions of others | 2021-04-08 | -12/+8 | |
| |