diff --git a/Dockerfile b/Dockerfile index 3a67ff1f3..93541187f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ FROM python:3.8 -RUN apt-get update && apt-get install -yy gcc build-essential python-setuptools +RUN apt-get update && apt-get install -y gcc build-essential && rm -rf /var/lib/apt/lists/* ENV PYTHONUNBUFFERED 1 @@ -9,6 +9,4 @@ ADD requirements.txt . RUN pip install -U pip RUN pip install -r requirements.dev.txt -# INSTALL CHROMEDRIVER HERE? - WORKDIR /app diff --git a/compute_worker/compute_worker.py b/compute_worker/compute_worker.py index 152ab2d0e..5057e3778 100644 --- a/compute_worker/compute_worker.py +++ b/compute_worker/compute_worker.py @@ -497,9 +497,16 @@ async def _run_program_directory(self, program_dir, kind, can_be_output=False): logger.info(f"Metadata path is {os.path.join(program_dir, metadata_path)}") with open(os.path.join(program_dir, metadata_path), 'r') as metadata_file: - metadata = yaml.load(metadata_file.read(), Loader=yaml.FullLoader) - logger.info(f"Metadata contains:\n {metadata}") - command = metadata.get("command") if metadata is not None else None # in case the file exists but is empty + try: # try to find a command in the metadata, in other cases set metadata to None + metadata = yaml.load(metadata_file.read(), Loader=yaml.FullLoader) + logger.info(f"Metadata contains:\n {metadata}") + if isinstance(metadata, dict): # command found + command = metadata.get("command") + else: + command = None + except yaml.YAMLError as e: + print("Error parsing YAML file: ", e) + command = None if not command and kind == "ingestion": raise SubmissionException("Program directory missing 'command' in metadata") elif not command: diff --git a/src/static/riot/competitions/detail/_header.tag b/src/static/riot/competitions/detail/_header.tag index 55950fa64..3b34c066f 100644 --- a/src/static/riot/competitions/detail/_header.tag +++ b/src/static/riot/competitions/detail/_header.tag @@ -32,6 +32,7 @@
Interested in joining the development team? Join us on Github or contact us directly.
+Interested in joining the development team? Join us on Github or contact us directly.
+@article{codabench,
+ title = {Codabench: Flexible, easy-to-use, and reproducible meta-benchmark platform},
+ author = {Zhen Xu and Sergio Escalera and Adrien Pavão and Magali Richard and
+ Wei-Wei Tu and Quanming Yao and Huan Zhao and Isabelle Guyon},
+ journal = {Patterns},
+ volume = {3},
+ number = {7},
+ pages = {100543},
+ year = {2022},
+ issn = {2666-3899},
+ doi = {https://doi.org/10.1016/j.patter.2022.100543},
+ url = {https://www.sciencedirect.com/science/article/pii/S2666389922001465}
+}
+