Unverified Commit 350a469f authored by Wolfgang Walther's avatar Wolfgang Walther
Browse files

ci/eval/diff: avoid copying paths.json

Currently the `diff-<system>` artifacts are 6-7 MB in size - and almost
all of that is the `paths.json` file, which is only used to generate the
diff itself. This had been stored in the artifact previously for
debugging purposes. Ever since we moved to Cachix this is not required
anymore, since it's possible to run the same eval locally and thus fetch
the `eval.singleSystem` result, including `paths.json`, from Cachix.

This will be even more helpful when the next step adds `meta.json` -
which is magnitudes bigger than `paths.json`.
parent 6ae5f33c
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -80,7 +80,10 @@ in
runCommand "diff" { } ''
  mkdir -p $out/${evalSystem}

  cp -r ${before} $out/before
  cp -r ${after} $out/after
  cp -r --no-preserve=mode ${before} $out/before
  cp -r --no-preserve=mode ${after} $out/after
  # JSON files will be processed above explicitly, so avoid copying over
  # the source files to keep the artifacts smaller.
  find $out/before $out/after -iname '*.json' -delete
  cp ${diffJson} $out/${evalSystem}/diff.json
''