Skip to content

Commit

Permalink
ci/eval: Also count added packages as rebuilds (#361206)
Browse files Browse the repository at this point in the history
  • Loading branch information
philiptaron authored Dec 2, 2024
2 parents b43da9a + 4493148 commit cc423c2
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 cc423c2

Please sign in to comment.