cb4 icon indicating copy to clipboard operation
cb4 copied to clipboard

config file redesign

Open tc-imba opened this issue 6 years ago • 5 comments
trafficstars

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

tc-imba avatar Sep 08 '19 17:09 tc-imba

@nichujie please give some suggestions

tc-imba avatar Sep 08 '19 17:09 tc-imba

Can we write some prebuild/afterbuild commands like drone or Github actions (CI) in config?

linsyking avatar Nov 14 '22 09:11 linsyking

Can we write some prebuild/afterbuild commands like drone or Github 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.

BoYanZh avatar Nov 14 '22 11:11 BoYanZh

Can we write some prebuild/afterbuild commands like drone or Github 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.

linsyking avatar Nov 14 '22 12:11 linsyking

Can we write some prebuild/afterbuild commands like drone or Github 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.

@linsyking Yes. That is TA's responsibility.

BoYanZh avatar Nov 14 '22 13:11 BoYanZh