github/workflows/eval: add markdown of added, removed and changed

This commit is contained in:
Noa Aarts 2024-11-30 08:58:30 +01:00
parent 57feb2a16f
commit 0e27bc3f9e
No known key found for this signature in database
GPG key ID: 1850932741EFF672
2 changed files with 6 additions and 1 deletions

View file

@ -210,7 +210,7 @@ jobs:
--arg beforeResultDir ./baseResult \ --arg beforeResultDir ./baseResult \
--arg afterResultDir ./prResult \ --arg afterResultDir ./prResult \
-o comparison -o comparison
cat comparison/step-summary.md >> "$GITHUB_STEP_SUMMARY"
# TODO: Request reviews from maintainers for packages whose files are modified in the PR # TODO: Request reviews from maintainers for packages whose files are modified in the PR
- name: Upload the combined results - name: Upload the combined results

View file

@ -261,6 +261,11 @@ let
--slurpfile after ${afterResultDir}/outpaths.json \ --slurpfile after ${afterResultDir}/outpaths.json \
> $out/changed-paths.json > $out/changed-paths.json
jq -r '
"## Added\n" + (.attrdiff.added | map("- \(. )") | join("\n")) + "\n" +
"## Removed\n" + (.attrdiff.removed | map("- \(. )") | join("\n")) + "\n" +
"## Changed\n" + (.attrdiff.changed | map("- \(. )") | join("\n")) + "\n"
' < $out/changed-paths.json > $out/step-summary.md
# TODO: Compare eval stats # TODO: Compare eval stats
''; '';