From 449314825e46de832d5852f4d182e5bc2a6fdc9a Mon Sep 17 00:00:00 2001 From: Silvan Mosberger Date: Mon, 2 Dec 2024 21:28:47 +0100 Subject: [PATCH] ci/eval: Also count added packages as rebuilds This is also what ofborg does --- ci/eval/compare.jq | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/ci/eval/compare.jq b/ci/eval/compare.jq index fa335aadae96e..9f3a032d13841 100644 --- a/ci/eval/compare.jq +++ b/ci/eval/compare.jq @@ -109,11 +109,23 @@ def diff($before; $after): | ($after[0] | expand_system) as $after | .attrdiff = diff($before; $after) | .rebuildsByKernel = ( - .attrdiff.changed - | map({ - key: ., - value: diff($before."\(.)"; $after."\(.)").changed - }) + [ + ( + .attrdiff.changed[] + | { + key: ., + value: diff($before."\(.)"; $after."\(.)").changed + } + ) + , + ( + .attrdiff.added[] + | { + key: ., + value: ($after."\(.)" | keys) + } + ) + ] | from_entries | transpose )