cb4
cb4 copied to clipboard
config file redesign
Redesign config file
(Draft)
Languages (renamed to toolchains if fine)
languages (toolchains) can be read by the web portal and user can select from them
in each toolchain, there is an array of commands which are used to build the code, including
-
cd
-
mount (matbe not useful)
-
copy / move
-
execute program
-
a build time directory (provided as an archive) is mounted to /build under the sandbox
Test cases
test cases are split into groups, each group contains several cases with some same attributes, including
- execute file
- execute args
- category
- time/memory limit
- support language(s)
These attributes can also be overwritten in each case.
Add UI to edit config
draft: a page like code mirror. left: the text format config file (can be freely edited) right: ui which can reflects to text config on the left
@nichujie please give some suggestions
Can we write some prebuild/afterbuild commands like drone or Github actions (CI) in config?
Can we write some prebuild/afterbuild commands like
droneorGithub actions(CI) in config?
@linsyking You need to check whether it can run in jd4 image. But I think this step should better be done on drone side.
Can we write some prebuild/afterbuild commands like
droneorGithub actions(CI) in config?@linsyking You need to check whether it can run in jd4 image. But I think this step should better be done on drone side.
My example is running clang-tidy before compilation. Drone is more suitable for those tasks, i think. But many courses like 280 doesn't have drone and only TAs run code check and students don't know the check result until they know the score, and it's too late to get those scores.
Can we write some prebuild/afterbuild commands like
droneorGithub actions(CI) in config?@linsyking You need to check whether it can run in jd4 image. But I think this step should better be done on drone side.
My example is running
clang-tidybefore compilation. Drone is more suitable for those tasks, i think. But many courses like 280 doesn't have drone and only TAs run code check and students don't know the check result until they know the score, and it's too late to get those scores.
@linsyking Yes. That is TA's responsibility.