Skip to content

Commit

Permalink
ci/eval: Also count added packages as rebuilds
Browse files Browse the repository at this point in the history
This is also what ofborg does
  • Loading branch information
infinisil committed Dec 2, 2024
1 parent 399699f commit 4493148
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions ci/eval/compare.jq
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down

0 comments on commit 4493148

Please sign in to comment.