Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • container-builder container-builder
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 6
    • Issues 6
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • olcfolcf
  • container-buildercontainer-builder
  • Merge requests
  • !23

Cleans Spack build area of failed build remnants.

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Belhorn, Matt requested to merge bugfix/clear_spack_cache into master Jan 31, 2018
  • Overview 0
  • Commits 1
  • Pipelines 0
  • Changes 2

Spack builds that fail can sometimes leave staged source files and CMake caches in the build area. These are cleaned up when builds are successful, but are left around when builds fail to allow for post-mortem analysis of the build errors.

There is a small possibility that new builds will have the same unique hash as previous builds, even if details of the build have changed. In this case, old source and CMake caches from the previous faild build attempt may be re-used for the new build. This is almost always undesired.

We can just go ahead and clean the spack build staging directory of any cruft prior to attempting a new build to avoid this, while also keeping these staged artifacts after build failures for study.

Latest versions of spack can clean the staging directory with the command:

spack clean --stage --misc-cache

but older versions used the command:

spack purge --stage --misc-cache

in case this error re-appears when using older Spack v0.10 or earlier.

This commit also adds annotation to the deployment scripts explaining the purpose of each of the spack setup and build steps.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: bugfix/clear_spack_cache