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

Add required source code upload for OuputOnly tasks #1202

Open
CristianCantoro opened this issue Feb 20, 2022 · 1 comment
Open

Add required source code upload for OuputOnly tasks #1202

CristianCantoro opened this issue Feb 20, 2022 · 1 comment

Comments

@CristianCantoro
Copy link
Contributor

Is your feature request related to a problem? Please describe.
We would like to organize a contest with the OutputOnly configuration. However, given the fact that the contest is supposed to run for a week and with multiple teams competing we would like to require every submission to be accompanied by its source code, so that we can check the code after the end of the contest for plagiarism and to make sure that the final submissions do produce the claimed output. As far as I know, this is also how Google Hashcode works.

To be fair, it seems that we could work with how CMS currently work, but this feature would make our life a little bit easier.

Describe the solution you'd like
Add the possibility to upload a source code file for each submission of a OutputOnly type task and make it required for making a submission.

Describe alternatives you've considered
I have tried changing the submission format adding taskname.%l, it works but the source code is not required. Also, for some reason, it eliminates the possibility to upload the solution as a zip file.

Original submission interface (no source code)
Laboratoriodialgoritmi—MozillaFirefox_2022-02-20_15:49:49

Changing submission format (do not worry about the secret warning, this is a test instance and not connected to the internet):
Admin:Laboratoriodialgoritmi—MozillaFirefox_2022-02-20_15:57:54

Example submission with and without source code, note that the possibility to upload a zip file has disappeared:
Laboratoriodialgoritmi—MozillaFirefox_2022-02-20_15:55:55
Laboratoriodialgoritmi—MozillaFirefox_2022-02-20_15:56:12

@wil93
Copy link
Member

wil93 commented Nov 27, 2022

I think this could be an interesting feature. I see there's a constant ALLOW_PARTIAL_SUBMISSION = True defined by the OutputOnly tasktype, which maybe would need to be made more granular (specify that the source code must be provided in every submission) since now it's just a boolean. Not sure what's the best way to do it.

Anyway it seems that the reason why the zip upload gets disabled is because of this commit: 10cb40f.

@wil93 wil93 added this to the P2 milestone Nov 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants