lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

ci: have `eval.full` return the report as displayed in CI

Update the README.md to document what gets returned.
We might in the future split these up into other attrsets but I don't see a usecase for that at the moment.

+17 -3
+3
ci/eval/README.md
··· 43 43 ``` 44 44 45 45 Keep in mind to otherwise pass the same set of arguments for both commands (`evalSystems`, `quickTest`, `chunkSize`). 46 + Running this command will evaluate the difference between the baseline statistics and the ones at the time of running the command. 47 + From that difference, it will produce a human-readable report in `$out/step-summary.md`. 48 + If no packages were added or removed, then performance statistics will also be generated as part of this report.
+14 -3
ci/eval/default.nix
··· 267 267 chunkSize ? 5000, 268 268 quickTest ? false, 269 269 baseline, 270 + # Which maintainer should be considered the author? 271 + # Defaults to nixpkgs-ci which is not a maintainer and skips the check. 272 + githubAuthorId ? "nixpkgs-ci", 273 + # What files have been touched? Defaults to none; use the expression below to calculate it. 274 + # ``` 275 + # git diff --name-only --merge-base master HEAD \ 276 + # | jq --raw-input --slurp 'split("\n")[:-1]' > touched-files.json 277 + # ``` 278 + touchedFilesJson ? builtins.toFile "touched-files.json" "[ ]", 270 279 }: 271 280 let 272 281 diffs = symlinkJoin { ··· 282 291 } 283 292 ) evalSystems; 284 293 }; 294 + comparisonReport = compare { 295 + combinedDir = combine { diffDir = diffs; }; 296 + inherit touchedFilesJson githubAuthorId; 297 + }; 285 298 in 286 - combine { 287 - diffDir = diffs; 288 - }; 299 + comparisonReport; 289 300 290 301 in 291 302 {