Commit 0a2a1373 authored by Jan Kiene's avatar Jan Kiene
Browse files

add more debug output

parent 15fbc82e
Loading
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -3,7 +3,6 @@ import os
import pathlib
import subprocess
import sys
import csv
import shutil
from collections import namedtuple
from tempfile import TemporaryDirectory
@@ -42,6 +41,7 @@ PUBLIC_FOLDER = pathlib.Path("./public")

def main():
    PUBLIC_FOLDER.mkdir()
    print(list(pathlib.Path("./").iterdir()))

    project_id = int(os.environ["CI_PROJECT_ID"])
    jobs = JOBS_FOR_PROJECT_ID[project_id]
@@ -64,6 +64,8 @@ def main():
def setup_pages(project_id: int):
    index_html = PUBLIC_FOLDER.joinpath("index.html")

    print(list(PUBLIC_FOLDER.iterdir()))

    if project_id == PROJECT_ID_FLOAT_REPO:
        src = pathlib.Path("ci/index-pages.html").absolute()
        shutil.move(src, index_html)
@@ -105,11 +107,11 @@ def get_artifacts_for_jobs_and_return_num_failed(

                    for artifact in tmp_dir.iterdir():
                        # this is only needed until the new naming of the csv files is on main
                        print(artifact)
                        src = tmp_dir.joinpath(artifact).absolute()
                        dst = PUBLIC_FOLDER.joinpath(artifact)
                        if project_id == PROJECT_ID_BASOP_REPO:
                            dst = artifact.stem + f"-id_{job_id}" + artifact.suffix
                        print(f"{src} -> {dst}")
                        shutil.move(src, dst)

        except subprocess.CalledProcessError: