python-discord / snekbox

Easy, safe evaluation of arbitrary Python code
https://pythondiscord.com
MIT License
214 stars 39 forks source link

Update to Debian Bookworm #193

Closed MarkKoz closed 1 year ago

MarkKoz commented 1 year ago

Mount /dev/shm in the container by setting ipc to "private". This is the same as "none" (the previous value) with the only difference being that shm is mounted. This is needed for integration tests to pass.

The integration tests always relied on shared memory due to their use of multiprocessing. They managed to work because glibc used to fall back to /tmp if /dev/shm wasn't available. However, newer versions of glibc, which Debian Bookworm now uses, removed that fallback behaviour.

coveralls commented 1 year ago

Coverage Status

coverage: 90.96% (+0.01%) from 90.947% when pulling 64e9ab5a36e9459276e02e9df220177114c0e72c on feat/deps/debian-bookworm into f763dba0789076c7962e1cdc226062a0a2119c60 on main.