benchpark icon indicating copy to clipboard operation
benchpark copied to clipboard

we need alternative location to ~/.spack

Open jdomke opened this issue 11 months ago • 2 comments

i ran two instances of ramble workspace setup and it broke ~/.spack/bootstrap/config/linux/config.yaml by adding a lonely 6 in the last line:

 57   debug: false
 58   build_jobs: 16
 59 6

consequently some new exec of workspace setup failed:

==> Error: error parsing YAML: near /home/u10016/.spack/bootstrap/config/linux/config.yaml, 58, 0: could not find expected ':'
    while scanning a simple key
  in "/home/u10016/.spack/bootstrap/config/linux/config.yaml", line 59, column 1
could not find expected ':'
  in "/home/u10016/.spack/bootstrap/config/linux/config.yaml", line 60, column 1

To fix that, benchpark shouldn't use ~/.spack but something local like .//.spack (or at least try to lock the files before writing to it, but that is less preferred because i would like to have a "clear" ~/.spack folder for other work, which isn't altered by benchpark).

jdomke avatar Mar 09 '24 05:03 jdomke

When you ran

benchpark setup <experiment> <config> <workspace-dir>

did you run

source <workspace-dir>/setup.sh

?

if so, then SPACK_DISABLE_LOCAL_CONFIG should be set in your shell. If you see that shell variable, but are still getting complaints about ~/.spack, can you mention that here (and likewise, if this resolves your problem, can you mention that)?

scheibelp avatar Mar 13 '24 17:03 scheibelp

yes, i'm 99% sure i ran benchpark setup ... and then source <workspace-dir>/setup.sh from two different directories which resulted in the described error (actually from 3 instances, but that shouldn't matter), but can double check tomorrow to see if the env var is set correctly

jdomke avatar Mar 13 '24 17:03 jdomke