Code Monkey home page Code Monkey logo

Comments (2)

LiquidLemon avatar LiquidLemon commented on August 15, 2024

This is what I'm thinking of currently:

  1. Download all the solution files and store them in a temporary directory.
  2. Run a dedicated Docker container which will build the program (it should try to sandbox the compilation process as much as possible, apply timeouts, etc.).
  3. If compilation succeeded download a test case, mount the resulting binary in a new container, run it with the test case as input and store the output.
  4. Update the state:
    • If the process exited cleanly compare the actual output to the expected output (or run a verification script in an extended scenario) and update the state appropriately.
    • If errors occurred save them in the database.
  5. Delete files specific to this test case.
  6. Repeat 3-5 for all test cases in a problem.
  7. Clean up the entire directory made for this solution.

from sztos.

LiquidLemon avatar LiquidLemon commented on August 15, 2024

Alright, this seems to make sense, I'm moving this list to the wiki.

from sztos.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.