cms-dev / cms-dev/cms

Problems with submitting BatchAndOutput tasks

Open
#1,446 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
1k
Forks
412
Avg merge
6d 10h
Merged PRs (30d)
3

Description

I have problems with submitting BatchAndOutput tasks via the API.

I am trying to submit one or more output files without a source file and without choosing an explicit language (there is none).
CMS rejects the submission with Invalid submission format! - Please select the correct files. in the log.
The problem is that match_files_and_language finds multiple candidate languages.

CWS sidesteps the problem by always sending a concrete language even if there are only output files submitted.

We can probably ignore the problem for this IOI, because it's going to have a single language enabled, which avoids the problem.
But we should fix it before the next release.

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 locating the API submission path and the match_files_and_language logic. Reproduce a BatchAndOutput submission with output files only, no source file, and no explicit language; done means CMS accepts the submission without selecting among multiple candidate languages, with the behavior verified before the next release.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api, 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.