Skip to content

final tarball for built compat layer not created correctly by bot/build.sh #189

Closed

Description

@boegel

As shown in #188, building the 2023.06 compat layer autonomously worked, but creating the tarball for ingestion failed because of a bug at the end of the bot/build.sh script.

Relevant part of output of the Slurm build job:

PLAY RECAP *********************************************************************
localhost                  : ok=63   changed=38   unreachable=0    failed=0    skipped=3    rescued=0    ignored=1

Left container; tar'ing up /tmp/bot/EESSI/eessi.BM69QGLjmn for future inspection
...
created tarball '/mnt/shared/home/bot/eessi-bot-software-layer/jobs/2023.06/pr_188/event_bf958ee0-0a82-11ee-93ec-8e0bfaa03c26/run_001/linux_aarch64_generic/eessi-2023.06-compat/job_4940_1686744594.tgz'
To resume work add '--resume /tmp/bot/EESSI/eessi.BM69QGLjmn'
Directory //cvmfs/pilot.eessi-hpc.org/versions/2023.06 was not created, not creating tarball.

The job_*.tgz mentioned not only includes /cvmfs/..., but also /tmp and apptainer_cache, so it can't be used for ingestion.

Activity

  1. added
    bug
    on Jun 14, 2023
  2. trz42 commented on Jun 14, 2023

    @trz42
    Contributor

    Left container; tar'ing up /tmp/bot/EESSI/eessi.BM69QGLjmn for future inspection
    ...
    created tarball '/mnt/shared/home/bot/eessi-bot-software-layer/jobs/2023.06/pr_188/event_bf958ee0-0a82-11ee-93ec-8e0bfaa03c26/run_001/linux_aarch64_generic/eessi-2023.06-compat/job_4940_1686744594.tgz'
    To resume work add '--resume /tmp/bot/EESSI/eessi.BM69QGLjmn'
    Directory //cvmfs/pilot.eessi-hpc.org/versions/2023.06 was not created, not creating tarball.

    
    The `job_*.tgz` mentioned not only includes `/cvmfs/...`, but also `/tmp` and `apptainer_cache`, so it can't be used for ingestion.
    

    As the first line states, this tarball is intended for future inspection not for ingestion. It's essentially the complete temporary directory used during the job or more precisely what install_compatibility_layer.sh uses as base folder for temporary data. It includes cvmfs, home, tmp and possibly container_cachedir.

    What's missing in the bot/build.sh script is assigning a value to eessi_tmpdir. Adding a line such as

    eessi_tmpdir=${STORAGE}

    before

    # create tarball -> should go into a separate script when this is supported by the bot
    target_tgz=eessi-${eessi_version}-compat-linux-${eessi_arch}-$(date +%s).tar.gz
    if [ -d ${eessi_tmp}/${tar_topdir}/${eessi_version} ]; then
    echo ">> Creating tarball ${target_tgz} from ${eessi_tmp}/${tar_topdir}..."
    tar cfvz ${target_tgz} -C ${eessi_tmp}/${tar_topdir} ${eessi_version}/compat/${eessi_os}/${eessi_arch}
    echo ${target_tgz} created!
    else
    echo "Directory ${eessi_tmp}/${tar_topdir}/${eessi_version} was not created, not creating tarball."
    exit 1
    fi
    would probably fix it.

  3. bedroge commented on Jul 2, 2025

    @bedroge
    Collaborator

    This has probably been solved in the meantime, it worked fine for 2025.06, so I guess we can close this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions