Commit graph

11 commits

Author SHA1 Message Date
Wolfgang Walther 200b74373a ci/eval/utils: refactor to use lib.init
(cherry picked from commit 5c01bd9df6)
2025-10-31 11:34:39 +00:00
NAHO 8756682109 treewide: remove optional builtins prefixes from prelude functions
Remove optional builtins prefixes from prelude functions by running:

    builtins=(
      abort
      baseNameOf
      break
      derivation
      derivationStrict
      dirOf
      false
      fetchGit
      fetchMercurial
      fetchTarball
      fetchTree
      fromTOML
      import
      isNull
      map
      null
      placeholder
      removeAttrs
      scopedImport
      throw
      toString
      true
    )

    fd --type file --exec-batch sed --in-place --regexp-extended "
      s/\<builtins\.($(
        printf '%s\n' "${builtins[@]}" |
          paste --delimiter '|' --serial -
      ))\>/\1/g
    "

    nix fmt

(cherry picked from commit dec908b169)
2025-10-04 18:33:51 +00:00
Matt Sturgeon 114ac8bdbc ci/eval: fix comparing to null in getLabels
Check if `to` is null _before_ comparing it to `rebuildCount`.

(cherry picked from commit 7c7009a3da)
2025-06-22 19:41:57 +00:00
Wolfgang Walther 6346ef5210 workflows/labels: manage labels with a single API call
Instead of deleting each label separately and then making another call
to add new labels, this replaces all labels at once, thus saving API
calls in some cases. Also, the labels are now managed in object-style
compared to the array-style before. This allows putting all the
knowledge about each label into a single place instead of in multiple
places. For example, the rebuild labels had to be special cased in the
workflow before - and the nix code to compare had to match that. Also,
the approval labels had to be considered in the `before` and `after`
phases.

The next commit shows how easy it is to add a new label now.

(cherry picked from commit 5b5b18c875)
2025-06-22 16:37:36 +00:00
Wolfgang Walther edd12277b0 workflows/eval: diff outpaths immediately
This moves the diff of outpaths into the outpaths job, mainly as a
preparation to allow future improvements. For example, this will allow
running the purity release checks only on changed outpaths instead of
the whole eval.

This also removes the inefficiency introduced in the last commit about
uploading the intermediate paths twice. Now, only the diff is passed on.

Also, technically, the diff is now run in parallel across 4 jobs. This
should be *slightly* faster than before, where outpaths from all systems
were combined first and then diffed. It's probably only a few seconds,
though.

(cherry picked from commit 8a39ce4a48)
2025-05-25 19:05:43 +00:00
zowoq b94f270650 ci/eval: restore 501+ label 2025-01-22 09:14:10 +10:00
Peder Bergebakken Sundt a226f13211 ci/eval: support "10.rebuild-${kernel}: 1" labels
This should restore the old behavior of ofborg
2025-01-20 11:45:52 +01:00
Silvan Mosberger b9d800d468 workflows/eval: Request reviews from changed package maintainers
Currently we need to rely on ofborg requesting reviews from package
maintainers, which takes a while with ofborg's eval queue. Since
recently we're doing faster evaluations with GitHub Actions, which contain all
necessary information to determine reviewers of changed packages the
same way ofborg does. This PR takes advantage of that.
2024-12-18 22:13:37 +01:00
Gaetan Lepage 518ae8fd58 ci/eval: add rebuildsByPlatform to the comparison result 2024-12-11 16:37:25 +01:00
Gaetan Lepage 214cb79aa6 ci/eval: fix compare label assignment 2024-12-10 10:00:11 +01:00
Gaetan Lepage f94b4bd945 ci/eval: re-implement compare in nix 2024-12-08 10:23:40 +01:00