Skip to content

[Proposition] Results only competitions (with copy to predictions dir)#1879

Closed
ihsaan-ullah wants to merge 2 commits intodevelopfrom
duplocate_files
Closed

[Proposition] Results only competitions (with copy to predictions dir)#1879
ihsaan-ullah wants to merge 2 commits intodevelopfrom
duplocate_files

Conversation

@ihsaan-ullah
Copy link
Collaborator

@ihsaan-ullah ihsaan-ullah commented Jun 17, 2025

@Didayolo

Description

Now we have two types of phases:

  1. Accepts only result submissions
  2. Accepts both result and code submissions

Users can choose this option from yaml and from the interface
Screenshot 2025-06-19 at 12 43 37 PM

YAML documentation is updated here.

Now the submission content is copied to predictions output only when the phase to which the submission is submitted has accepts_only_result_submissions set to True.

I have added some comments to the compute worker code for clarification.

Issues this PR resolves

A checklist for hand testing

  • Play with this new attribute and submit both result and code submissions. Check that files are duplicated only when accepts_only_result_submissions is true and that submissions are executed as expected.
  • Check that from the interface and from yaml you can change this attribute
  • Check that the comments added make sense and are easy to understand

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

@ihsaan-ullah
Copy link
Collaborator Author

Closing this for now. I haven't tested this. I will reopen or create a new one after the tests

@Didayolo
Copy link
Member

Related to #1874

@ihsaan-ullah ihsaan-ullah reopened this Jun 19, 2025
…ses and other phases. Submissions submitted to result only phases are considered result submissiona and their content is copied to predictions output for scoring, for other the submisison content is not copied to save space. Some cleanup and comments are added. Functionality added to set result only submissions to true/false from the interface
@ihsaan-ullah
Copy link
Collaborator Author

@Didayolo This is ready for testing

@ihsaan-ullah ihsaan-ullah linked an issue Jun 19, 2025 that may be closed by this pull request
3 tasks
@Didayolo
Copy link
Member

@ihsaan-ullah

So for a competition like Iris that accepts both results and code submissions, won't results submissions fail?

@ihsaan-ullah
Copy link
Collaborator Author

Yes I think result submission will fail. BUT if you want both result and code submission to work, you have to set accepts_only_result_submissions to True.

Maybe we want to change the name of accepts_only_result_submissions to accepts_only_code_submissions and reverse the logic.

@Didayolo
Copy link
Member

Post-it: think and discuss about the design. Should we simply allow the scoring program to access the submission?

Then we do not need to copy files, nor to have these flags like "result only competition".

@Didayolo Didayolo changed the title fix to run result sbmission(with copy to predictions dir) [Proposition] Results only competitions (with copy to predictions dir) Jun 20, 2025
@Didayolo
Copy link
Member

Didayolo commented Feb 4, 2026

I am not sure that we want this architectural change. It adds up new options that does not really improve the platform.

About the duplication of submission files, we proposed another solution here: #1874

What do you think @ihsaan-ullah ? Should we close this PR?

@ihsaan-ullah
Copy link
Collaborator Author

I am closing this PR because this is not a solution we want. Check the proposed solution in 1874

@Didayolo Didayolo deleted the duplocate_files branch February 5, 2026 00:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Compute worker - Avoid duplicating submission files

2 participants