Compute Worker - Scoring program with dir structure
@ mention of reviewers`
@Didayolo`
Note:
This a critical PR as it changes the Compute worker. I have added comments to the added code but if that is not sufficient, more explanation should be added. The only part of the code touched is when the program
is extracted while scoring. I checked and when destination == "program"
and is_scoring
is True
then this means that scoring program is being extracted. We may need the same functionality i.e. extract with or without parent directory for other programs too (to be tested and discussed)
Also note that we can identify a scoring program running by self.is_scoring
in the compute worker
A brief description of the purpose of the changes contained in this PR.
Now a scoring program with directory structure will work in the compute worker to execute a submission
scoring_program.zip
|-- scoring_program/
|---|-- score.py
|---|-- metadata
Issues this PR resolves
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