Upload task from resource interface
@ mention of reviewers`
@Didayolo`
A brief description of the purpose of the changes contained in this PR.
This new feature is for uploading a task. A zip file with task.yaml and zips of datasets/programs are required to upload a task
You can use already existing datasets/programs by using their keys in your yaml. Check the following two valid tasks:
- Task upload file with only keys: valid_task_with_keys.zip
- Task upload file with only files: valid_task_with_files.zip
You can also use a mix of keys and files
Screenshots:
Click the upload task button in the tasks tab in the resource interface to start uploading a task zip
Select a zip file in the filed field and click upload to finish uploading
Documentation in wiki:
I renewed the resource interface documentation including task upload here: https://github.com/codalab/codabench/wiki/Resource-Management
Issues this PR resolves
A checklist for hand testing
-
use the provided zip files to upload a task -
try to break the uploading by planting errors either in files, keys or the yaml file
Any relevant files for testing
You can use the following files to test that uploading fails when there are problems:
- invalid_ingestion_key.zip
- invalid_ingestion_zip.zip
- invalid_yaml.zip
- missing_description.zip
- missing_ingestion_zip.zip
- missing_name.zip
- missing_scoring_program.zip
- no_yaml.zip
- scoring_program_missing_key_and_zip.zip
Checklist
-
Code review by me -
Hand tested by me -
I'm proud of my work -
Code review by reviewer -
Hand tested by reviewer -
CircleCi tests are passing -
Ready to merge