Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

config file redesign #31

Open
tc-imba opened this issue Sep 8, 2019 · 5 comments
Open

config file redesign #31

tc-imba opened this issue Sep 8, 2019 · 5 comments

Comments

@tc-imba
Copy link
Member

tc-imba commented Sep 8, 2019

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
Copy link
Member Author

tc-imba commented Sep 8, 2019

@nichujie please give some suggestions

@linsyking
Copy link

linsyking commented Nov 14, 2022

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

@BoYanZh
Copy link
Member

BoYanZh commented Nov 14, 2022

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.

@linsyking
Copy link

linsyking commented Nov 14, 2022

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.

@BoYanZh
Copy link
Member

BoYanZh commented Nov 14, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants