-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
spack install --monitor
fails with Error: 'full_hash'
#29704
Comments
@vsoch ping |
The full hash needs to be in a spec for spack monitor to receive it. If someone removed or changed it, it needs to be added back. |
I need a better reproducer - this one was created by dumping the spec with missing |
Here is full spec: https://cernbox.cern.ch/index.php/s/RGtCwNtFBw0aMQR . And the lock file after doing |
Why is the spec in yaml? Isn’t that a really old format? |
To debug, I have made two changes:
and got the following output:
|
Yeah I guess someone renamed full_hash to hash without thinking about spack monitor. |
IIRC, the lock file was changed to JSON, the environment itself is still YAML |
You could try just renaming the index to use that instead. |
I thought |
well, for spack monitor's sake it really just needs a unique id for the spec. It was a pretty arbitrary decision when it was first made. Technically we can present any of the hashes (changed and newly deemed worthy) for it to use. If the key is wrong for the server, the easiest thing to do will be just to add full_hash to be whatever spack is now using (e.g., dag). |
OK, I have a better reproducer. Let me update the first message... |
So, IIUC, |
That should be okay, try changing: - as_dict = {"spec": spec.to_dict(hash=ht.full_hash)['spec'],
+ as_dict = {"spec": spec.to_dict(hash=ht.hash)['spec'], or choose any hash that you want that you have. I'm not sure ht.hash is an option, maybe ht.dag_hash is, for example. |
Since spack monitor is going away, I'm closing this issue. |
Steps to reproduce
Error message
Information on your system
General information
spack debug report
and reported the version of Spack/Python/PlatformThe text was updated successfully, but these errors were encountered: