-
Notifications
You must be signed in to change notification settings - Fork 0
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
LIO contest loader #14
base: lio
Are you sure you want to change the base?
Conversation
Successfully imported warmup2 contest. My observations:
All other settings are set up correctly. |
Successfully imported regional contests that share one task. See svn for configuration file setup. Additionally, tested the case when there are submissions and task configuration (tests, public groups) is changed. For example, I saw this message: Publiski redzamais rezultāts:
10 / 6 What happens. When a user sees the score or the detailed results for submission, he sees the results for the old dataset. Detailed results don't seem to leak any information about the new dataset, it shows detailed results for old dataset. (with scores for old public groups) Therefore, when setting up contest before the start, we can execute the import multiple times. After each import we should reevaluate all solutions for affected tasks (use task importer if necessary). In conclusion, the configuration part of contests and tasks before the start is moved to these config files. We can keep version history of them. |
Running
Is it supposed to work this way? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I really like how the newlines are converted :)
Default values for following options: timezone, allowed_localizations, minimum interval between submissions, minimum interval between user tests, maximum number of submissions, maximum number of user tests.
When importing contest you need to pass the relevant flags to define the behaviour for importer:
|
b0de4b1
to
f02f736
Compare
I think this is good now, thanks :) The diff shows some unrelated changes, can you please fix this before merge? |
Implemented simple LIO format loader based mainly on Italy (yaml) format and taking some ideas from polygon loader. Implemented only features that are needed for lio. #12
This can be run on contest configuration file or on task configuration file.
./cmscontrib/ImportContest.py -L Lio-contest contest_dir/contest.yaml
./cmscontrib/ImportTask.py -L Lio-task contest_dir/task_dir/task.yaml
Example configuration files for a part of this year warmup contest:
Some observations:
All contest, task imports of cms are intended to be run on the path that points to a directory. This creates a small issue for us because we often have the same task in two different contests. Additionally, we keep the tasks for each contest in the same directory. So we need to split them apart. Therefore I implemented loaders to work on the path to a config file instead of to the path to a directory.
The only issue with this is ContestLoader and
get_task_loader
already assumes that the provided task name is the real name of the task, therefore this creates a duplication in both config files: task configuration name field and contest configuration task name must be set to the same name.If we implemented this with separate directories then this duplication is simply kept in a different form (in the name of a task directory and still in the contest config file) And this still would rise issues with one task in two contests.
Remaining issue: