workflows/eval: add markdown of added, removed and changed#360339
workflows/eval: add markdown of added, removed and changed#360339Mic92 merged 3 commits intoNixOS:masterfrom
Conversation
|
Do you have a test PR, what this looks like? Just make a pull request against your |
93bde89 to
56d214a
Compare
|
https://github.com/itepastra/nixpkgs/actions/runs/12095524145/attempts/1#summary-33728887151 <- this is what it currently looks like |
56d214a to
963677a
Compare
963677a to
0e27bc3
Compare
ci/eval/default.nix
Outdated
| "## Added\n" + (.attrdiff.added | map("- \(. )") | join("\n")) + "\n" + | ||
| "## Removed\n" + (.attrdiff.removed | map("- \(. )") | join("\n")) + "\n" + | ||
| "## Changed\n" + (.attrdiff.changed | map("- \(. )") | join("\n")) + "\n" |
There was a problem hiding this comment.
| "## Added\n" + (.attrdiff.added | map("- \(. )") | join("\n")) + "\n" + | |
| "## Removed\n" + (.attrdiff.removed | map("- \(. )") | join("\n")) + "\n" + | |
| "## Changed\n" + (.attrdiff.changed | map("- \(. )") | join("\n")) + "\n" | |
| .attrdiff, .rebuildsByKernel | to_entries[] | "* \(.key | ascii_upcase) \(.value | length | tostring)", " * \(.value[])" |
How about this, will produce something like:
Edit: Update to include .rebuildsByKernel
- ADDED 0
- REMOVED 0
- CHANGED 6
- hello
- tests.checkpointBuildTools
- tests.config.allowPkgsInPermittedInsecurePackages
- tests.devShellTools.nixos
- tests.devShellTools.unstructuredDerivationInputEnv
- tests.devShellTools.valueToString
- DARWIN 4
- hello
- tests.checkpointBuildTools
- tests.config.allowPkgsInPermittedInsecurePackages
- tests.devShellTools.nixos
- LINUX 6
- hello
- tests.checkpointBuildTools
- tests.config.allowPkgsInPermittedInsecurePackages
- tests.devShellTools.nixos
- tests.devShellTools.unstructuredDerivationInputEnv
- tests.devShellTools.valueToString
|
Some experiments:
|
Can produce very similar result to #360339 (comment) ADDED 0REMOVED 0CHANGED 5
|
|
Update #360339 (comment):
See if you like it or not :D |
929c3b6 to
8b7ed6e
Compare
|
@azuwis I took the idea of adding numbers to each section, but also added a truncate function as step summaries have a 1MB size limit. Because of the size limitation, I would for now not include other section and just stick to |
…ns in a summary list
|
I now also added links to the github search: https://gist.github.com/Mic92/b3f1200a4b92535c4dc3ecde9bab6019 |
|
Git push to origin failed for release-24.11 with exitcode 1 |
|
Manual backport: #361168 |
|
Whoops we have a problem:
|
|
To be honest, do we want those markdown files anyway for mass-rebuilds? |
|
Maybe we just truncate the document with |
|
Actually I already did a limit function there. So maybe we just need to adjust the limit to a safe value? |
|
@Mic92 Oh yeah that sounds good |
|
Ideally it also shows how to get the full list |
Makes the github action for eval output the added, removed and changed paths in the summary.
The paths were already available in json format in
changed-paths.json.This PR adds a human-readable representation to the summary of the format (not in a code block)
Things done
created itepastra#3 to see what the result looks like
Add a 👍 reaction to pull requests you find important.