Comments (2)
This is what I'm thinking of currently:
- Download all the solution files and store them in a temporary directory.
- 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.).
- 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.
- 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.
- Delete files specific to this test case.
- Repeat 3-5 for all test cases in a problem.
- Clean up the entire directory made for this solution.
from sztos.
Alright, this seems to make sense, I'm moving this list to the wiki.
from sztos.
Related Issues (20)
- Multiple execution environments
- Differentiate types of users
- Improve logging in workers
- Add sign up option
- Allow users to create new Courses and Problems
- Allow users to download solution files
- Adjust UI to new features
- CRUD for existing models
- Separate solution view
- Allow teachers to view specific student's solution
- Restrict users from sending solutions to problems they're not assigned to
- Restrict users from accessing and downloading solutions authored by others
- Create default groups
- Breadcrumbs
- Add ListView of all students attending given course
- Allow teachers to download all solutions for a given problem
- Create reports with grades for the entire course
- Allow teachers to do bulk assignments
- Allow teachers to provide rich descriptions
- Re-run solutions when a problem's test cases are updated
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sztos.