benchpark icon indicating copy to clipboard operation
benchpark copied to clipboard

[WIP] Add spack-python script to output diff in tree format

Open scheibelp opened this issue 1 year ago • 0 comments

To use it, you run

spack-python altdiff.py spec1 spec2

e.g. for specs like:

$ spack spec --yaml dray+mpi > dray-mpi.yaml
$ spack spec --yaml dray~mpi > dray-nompi.yaml
Screenshot 2024-02-08 at 5 49 38 PM

Differences are highlighted red. There's quite a bit of extra output (and e.g. the exact same openmpi implementation appears in both DAGs because even in the dray~mpi case it ends up being used for a dependency), but the red highlighting is anticipated to be useful.

This command could also:

  • separately list out the diffs to ensure they aren't missed
  • optionally omit most details that are the same

scheibelp avatar Feb 09 '24 01:02 scheibelp