You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instead of doing the copy during ingestion program, we do it during scoring program. This way, the files are not saved in the storage as part of the ingestion output, because they are added to it after, only temporarily. No need for updating existing competitions. We may need to make changes in order to access the submission during scoring program execution.
I checked in detail and tried to access submission in scoring but this is not possible. This is not a mistake but a design decision someone took so that during scoring you don't have access to the submission files.
It all starts from this line of code where submission data is passed only when running ingestion.
If you want to check, you will find scoring program files in place of submission files in compute worker while scoring.
We can discuss this more in the next meeting to decide what to do next
OK. Probably we can have the duplication only for results submissions. That would already be a win. Also it looks like it was the original intent of the code in compute_worker.py with the arguments kind='program' and can_be_output=True.
EDIT: we changed our mind, see "current solution" on the main post of the issue.
TODO: Perform the copy during scoring (instead of during ingestion)
It is not clear actually. The copy is performed there (function _run_program_directory):
# Display a warning in logs when there is no metadata file in submission/program dirifkind=="program":
logger.warning(
"Program directory missing metadata, assuming it's going to be handled by ingestion"
)
# Copy submission files into prediction output# This is useful for results submissions but wrongly uses storageshutil.copytree(program_dir, self.output_dir)
return
But kind == "program" seems to indicate that we are inside scoring program:
logger.info("Running scoring program, and then ingestion program")
loop=asyncio.new_event_loop()
gathered_tasks=asyncio.gather(
self._run_program_directory(program_dir, kind="program"),
self._run_program_directory(ingestion_program_dir, kind="ingestion"),
self.watch_detailed_results(),
loop=loop,
return_exceptions=True,
)
In the other hand, we observed that the copy goes into the ingestion output... To be sorted out.
OK, I guess we should discuss this during a meeting.
Just to clarify, even if here "program" means submission, isn't the second line (kind="ingestion") for running ingestion program? Then the first is not for the scoring program? I'm completely confused.
Just to clarify, even if here "program" means submission, isn't the second line (kind="ingestion") for running ingestion program? Then the first is not for the scoring program? I'm completely confused.
When a scoring submission is executed, the function call with kind=ingestion does nothing. The second call for kind = program executes the scoring program.
Then kind='program' is either the submission or scoring program. kind='ingestion' runs ingestion program or does nothing in case we are in the scoring.
We basically need to sort this out, always passing the submission path, and running either scoring or ingestion depending which is relevant.
Activity
Didayolo commentedon Jun 12, 2025
@ihsaan-ullah I still need to put more details here but basically we have this issue to share information about the problem
ihsaan-ullah commentedon Jun 14, 2025
I checked in detail and tried to access submission in scoring but this is not possible. This is not a mistake but a design decision someone took so that during scoring you don't have access to the submission files.
It all starts from this line of code where submission data is passed only when running ingestion.
If you want to check, you will find scoring program files in place of submission files in compute worker while scoring.
We can discuss this more in the next meeting to decide what to do next
Didayolo commentedon Jun 16, 2025
OK. Probably we can have the duplication only for results submissions. That would already be a win. Also it looks like it was the original intent of the code in
compute_worker.pywith the argumentskind='program'andcan_be_output=True.EDIT: we changed our mind, see "current solution" on the main post of the issue.
Didayolo commentedon Feb 6, 2026
It is not clear actually. The copy is performed there (function
_run_program_directory):But
kind == "program"seems to indicate that we are inside scoring program:In the other hand, we observed that the copy goes into the ingestion output... To be sorted out.
ihsaan-ullah commentedon Feb 6, 2026
NOTE: "program" is used for both submission and scoring program.
Everytime a submission runs, the function
_run_program_directoryis called twiceThe design is confusing and the naming is not good. This could be improved.
Didayolo commentedon Feb 6, 2026
OK, I guess we should discuss this during a meeting.
Just to clarify, even if here "program" means submission, isn't the second line (
kind="ingestion")for running ingestion program? Then the first is not for the scoring program? I'm completely confused.ihsaan-ullah commentedon Feb 6, 2026
When a scoring submission is executed, the function call with kind=ingestion does nothing. The second call for kind = program executes the scoring program.
I can explain this in our next meeting
Didayolo commentedon Feb 24, 2026
This code line sends either the submission or the scoring program:
codabench/src/apps/competitions/tasks.py
Line 189 in 3aff869
Then
kind='program'is either the submission or scoring program.kind='ingestion'runs ingestion program or does nothing in case we are in the scoring.We basically need to sort this out, always passing the submission path, and running either scoring or ingestion depending which is relevant.
Then we do not need copy anymore.
ObadaS commentedon Jul 29, 2026
Closing since #2303 fixed this problem