cms icon indicating copy to clipboard operation
cms copied to clipboard

Implementation for alternative sandboxes?

Open junukwon7 opened this issue 3 years ago • 1 comments

Since the ioi-isolate sandbox environment uses advanced features from the Linux kernel, the system only supports Linux for its host os (as far as I know).

So, making documentation for implementing other judge servers (such as judge0 or something else) would be helpful.

Or, providing an official docker image would be an alternative way to achieve the goal: multi-platform cms. Any changes from #802?

junukwon7 avatar Aug 24 '22 06:08 junukwon7

In theory we have a "fake" sandbox that just executes programs without an actual sandbox:

https://github.com/cms-dev/cms/blob/0401c5336b34b1731736045da4877fef11889274/cms/grading/Sandbox.py#L525

However:

  1. It's probably not easy to actually use it, since we always import the IsolateSandbox directly and use that.
  2. Even if there was a documented way of using it, it's a not a real sandbox so it could create issues even with local development (I'm not sure it can even prevent TLE / MLE).

I will look into this.

I also like the idea of integrating with Judge0, but I would need to investigate it more.

wil93 avatar Nov 27 '22 14:11 wil93