codalab / codalab/codabench

The "Dump with files" option produces duplicate files

Open
#1,393 16 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Bug
Dominant language
Python
Stars
176
Forks
74
Avg merge
5d 3h
Merged PRs (30d)
21

Description

Todos

  • Fix duplicate files generated when using dump with files
  • Fix creation of multiple datasets/programs when multiple tasks use the same files
  • Fix the task indexes in the yaml file when dump created
Details below by Johann-petrak

I have created a competition with input data, scoring programs from uploading a bundle file and there are also already test submissions.

When I then try to download using the "Dump with files" option I see the following oddities/problems:

  • The zip file that I get contains several files with the same name, in my case this is input_data-6224.zip feference_data-6224.zip and scoring_program-6224.zip which all occur twice in the zip file with identical names.
  • some of the reference*.zip files contain files which are definitely not from the project where I downloaded the dump from but from other projects I created (and deleted) previously
  • I also seem to get different versions of the scoring program

What is going on here, should the dump not be restricted to those data/program files which are actually part of the project?

And if I upload a bundle that contains e.g. a target file or scorer and then remove the project, should those files and scorers not get removed with the project they belong to?

UPDATE: to avoid confusion, after further investigation, the problem here is only that the chose file names are duplicates, not the content, this was my mistake.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the "Dump with files" workflow described in the issue with a competition containing uploaded input data, reference data, and scoring programs. Trace the dump generation entry point and verify how archive filenames are selected when multiple tasks use the same files. Done means the exported archive contains no duplicate filenames and includes only files belonging to the selected project.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.