aboutsummaryrefslogtreecommitdiffstats
path: root/tests (follow)
Commit message (Collapse)AuthorAgeLines
* Update test_forkbomb_resource_unavailable to disable memory limitsHEADmainGravatar Joe Banks7 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.
* Add integration test for validating JIT builds of PythonGravatar Joe Banks7 days-0/+27
|
* Reduce PID limits for test_forkbomb_resource_unavailableGravatar Joe Banks10 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 exceptionGravatar Joe Banks11 days-10/+11
|
* Update integration tests accordingly for new defaultsGravatar Joe Banks11 days-5/+5
|
* Close & unlick SharedMemory object in testsGravatar Chris Lovering2025-07-30-0/+2
| | | | Not doing so outputs a warning about leaking SharedMemory, which fails the test
* update tests to use new default python versionGravatar Chris Lovering2025-05-17-3/+3
|
* Make nogil test more readable by spliting logic across more linesGravatar Chris Lovering2024-10-12-4/+5
|
* Add test to ensure free threaded versions have GIL disabledGravatar Chris Lovering2024-10-07-0/+19
|
* Reuse the default executable path const in testsGravatar Chris Lovering2024-10-05-4/+2
|
* Use 'executable' over 'binary' to be clearer as to what is supportedGravatar Chris Lovering2024-10-05-13/+19
|
* Correct spelling errorsGravatar ChrisJL2024-10-05-3/+3
| | | Co-authored-by: Mark <[email protected]>
* Update invalid binary paths test to cover new error handlingGravatar Chris Lovering2024-10-03-7/+7
|
* Update all references to /lang to /snekbinGravatar Chris Lovering2024-10-03-7/+7
|
* Correct spelling in test casesGravatar Chris Lovering2024-10-03-2/+2
|
* Add additional tests to ensure invalid binary paths are not ranGravatar Chris Lovering2024-10-03-0/+19
|
* Allow setting a binary_path when calling /evalGravatar Chris Lovering2024-10-03-1/+3
|
* Add tests for multi-version supportGravatar Chris Lovering2024-10-03-0/+29
|
* Raise error if attachment pathname contains invalid bytes (#209)Gravatar Esther Goldberg2024-04-09-0/+14
|
* Refactor writing of input files into a separate functionGravatar Mark2023-10-27-1/+1
|
* Refactor modules into subpackagesGravatar Mark2023-10-27-7/+7
|
* Use lower timeout for file parsing timeout testGravatar Mark2023-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-memGravatar wookie1842023-08-30-4/+59
|\
| * Merge pull request #181 from python-discord/feat/158/multi-versionGravatar ChrisJL2023-08-29-2/+2
| |\ | | | | | | Install Multiple Python Versions in the Image
| | * Install multiple Python versions in imageGravatar Mark2023-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 usageGravatar wookie1842023-08-29-2/+57
| |/
* / Update tests to account for shared memoryGravatar Joe Banks2023-08-28-17/+64
|/
* Kill process after waiting for it to terminateGravatar wookie1842023-06-23-2/+3
|
* Attempt to fix flaky integration testsGravatar wookie1842023-06-22-0/+11
|
* Fix issue when running individual integration testsGravatar wookie1842023-06-22-0/+6
|
* Add unit tests for time_limitGravatar Ionite2023-03-16-0/+30
|
* Add unit test for deeply nested path file parsingGravatar Ionite2023-03-11-0/+23
| | | | Using example for reproducing issue #172
* Add unit test for hidden paths exclusionGravatar Ionite2023-03-09-0/+19
|
* Add new -B flag to unit testsGravatar Ionite2023-03-08-1/+1
|
* Update file write error unit testGravatar Ionite2023-03-02-3/+9
|
* Update unit tests for home output directoryGravatar Ionite2023-03-02-6/+6
|
* Add null byte schema validation testsGravatar ionite342022-12-04-1/+21
|
* Refactor test_filesystem to use tempfileGravatar ionite342022-12-04-8/+8
|
* Add tests for test_eval 200Gravatar ionite342022-12-04-0/+3
|
* Add usage of ExitStack, remove warning suppressGravatar ionite342022-12-04-20/+18
|
* Add refactors for Size enum renameGravatar ionite342022-12-04-2/+2
|
* Change Size to IntEnum, change usage in testsGravatar ionite342022-11-28-2/+3
|
* Refactor MemFS for implicit cleanup supportGravatar ionite342022-11-28-22/+33
|
* Fix input append to argsGravatar ionite342022-11-28-2/+2
|
* Add input/args integration testGravatar ionite342022-11-28-0/+13
|
* Add compat support for `input` argGravatar ionite342022-11-28-7/+11
|
* parse_files refactor as instance methodGravatar ionite342022-11-28-1/+1
|
* Rename `libmount` to `filesystem`Gravatar ionite342022-11-28-17/+17
|
* Add tests for invalid base64 file contentGravatar ionite342022-11-28-0/+58
|
* Add ParsingError handling for invalid base64Gravatar ionite342022-11-28-1/+1
|