Mentions légales du service

Skip to content

Integrate `nix-output-monitor` to NixOS Compose

QUENTIN Guilloteau requested to merge nix-output into master

This MR adds the --monitor flag to nxc build command to monitor the dependencies and what is currently building.

using this under the hood: https://github.com/maralorn/nix-output-monitor

Example:

[quentin@kagel:.../nxc/nxc]$ nxc build -f g5k-image --monitor
Build list of flavours
Starting Build
these 15 derivations will be built:
  /nix/store/szhhs2aljzbvkrlmwzww791yghc120lj-system-path.drv
  /nix/store/pp48fdyl7w8bh5hlfkwr7xdjkf09bga7-dbus-1.drv
  /nix/store/mf20n3giviyp3ybfg8dyzxr85vy77q37-unit-dbus.service.drv
  /nix/store/7x6rc9cpf552qv97fw1mjzss51lhwv35-user-units.drv
  /nix/store/w6lly4gz874spbrhn15srjrhdinnggdi-unit-dbus.service.drv
  /nix/store/yvajnisqg5v2z5jzw949nh709ggkrhf6-unit-systemd-fsck-.service.drv
  /nix/store/bd5jzslgsdk0qbib6x6y6cmkxj13hlij-system-units.drv
  /nix/store/01g5gjmpxyy1ycfkb2v3kfjf3lm394c7-etc.drv
  /nix/store/vm46ywzb8kwapdxb2hgsx6c922ifxwk9-nixos-system-unnamed-22.11pre-git.drv
  /nix/store/lhhpyr23jk97l4v9b4n190bka5zgi96v-closure-info.drv
  /nix/store/rv7g2cnpc38n2blmy7l2fc8nzn8n766m-all-store-info.drv
  /nix/store/l9yadf4ddgpj0i0hj5ykmfvq5jkv10qb-compositions-info.json.drv
  /nix/store/xqn6nla8zmgpm9ba1sf6393w6x6ia18d-all-compositions-registration-store-paths.drv
  /nix/store/7yyvijfr6bmcavr33gn8g1cv428yc8xs-tarball.drv
  /nix/store/54k9jbv190f1fh61c15b0kyaw7kyvays-compose-info.json.drv
these 3 paths will be fetched (154.09 MiB download, 2153.47 MiB unpacked):
  /nix/store/scpaiqhx25l3wnkjznnvadk3bdivyapv-ghc-9.0.2
  /nix/store/sq3hm1arb77zb833mld18fi4liydbf18-ghc-9.0.2-doc
  /nix/store/zf444rv2m75hdfi4w49piawnr4pqn46y-ior-3.3.0
copying path '/nix/store/zf444rv2m75hdfi4w49piawnr4pqn46y-ior-3.3.0' from 'https://cache.nixos.org'
copying path '/nix/store/sq3hm1arb77zb833mld18fi4liydbf18-ghc-9.0.2-doc' from 'https://cache.nixos.org'
copying path '/nix/store/scpaiqhx25l3wnkjznnvadk3bdivyapv-ghc-9.0.2' from 'https://cache.nixos.org'
system-path> building '/nix/store/szhhs2aljzbvkrlmwzww791yghc120lj-system-path.drv'
system-path> created 2188 symlinks in user environment
dbus> building '/nix/store/pp48fdyl7w8bh5hlfkwr7xdjkf09bga7-dbus-1.drv'
unit-systemd-fsck-.service> building '/nix/store/yvajnisqg5v2z5jzw949nh709ggkrhf6-unit-systemd-fsck-.service.drv'
unit-dbus.service> building '/nix/store/mf20n3giviyp3ybfg8dyzxr85vy77q37-unit-dbus.service.drv'
unit-dbus.service> building '/nix/store/w6lly4gz874spbrhn15srjrhdinnggdi-unit-dbus.service.drv'
user-units> building '/nix/store/7x6rc9cpf552qv97fw1mjzss51lhwv35-user-units.drv'
system-units> building '/nix/store/bd5jzslgsdk0qbib6x6y6cmkxj13hlij-system-units.drv'
etc> building '/nix/store/01g5gjmpxyy1ycfkb2v3kfjf3lm394c7-etc.drv'
nixos-system-unnamed-22.11pre-git> building '/nix/store/vm46ywzb8kwapdxb2hgsx6c922ifxwk9-nixos-system-unnamed-22.11pre-git.drv'
closure-info> building '/nix/store/lhhpyr23jk97l4v9b4n190bka5zgi96v-closure-info.drv'
all-store-info> building '/nix/store/rv7g2cnpc38n2blmy7l2fc8nzn8n766m-all-store-info.drv'
all-store-info> /nix/store/npnvg01dvcc7nrp2wydigdzvq28fz365-closure-info/registration nix-path-registration-composition-foo
all-compositions-registration-store-paths> building '/nix/store/xqn6nla8zmgpm9ba1sf6393w6x6ia18d-all-compositions-registration-store-paths.drv'
compositions-info.json> building '/nix/store/l9yadf4ddgpj0i0hj5ykmfvq5jkv10qb-compositions-info.json.drv'
all-compositions-registration-store-paths> copy /nix/store/ny87cv5938qb93015a6vhjizc2as5bc0-all-store-info/nix-path-registration-composition-foo
tarball> building '/nix/store/7yyvijfr6bmcavr33gn8g1cv428yc8xs-tarball.drv'
┏━ Dependency Graph:
┃    ┌─ ✔︎ all-compositions-registration-store-paths
┃ ┌─ ⏵︎ tarball ⏱︎ 1m32s
┃ │                 ┌─ ✔︎ unit-dbus.service
┃ │              ┌─ ✔︎ user-units
┃ │              │  ┌─ ✔︎ unit-systemd-fsck-.service
┃ │              │  │        ┌─ ↓︎ ✔︎ ior-3.3.0
┃ │              │  │        ├─ ↓︎ ✔︎ ghc-9.0.2
┃ │              │  │     ┌─ ✔︎ system-path
┃ │              │  │  ┌─ ✔︎ dbus-1
┃ │              │  ├─ ✔︎ unit-dbus.service
┃ │              ├─ ✔︎ system-units
┃ │           ┌─ ✔︎ etc
┃ │        ┌─ ✔︎ nixos-system-unnamed-22.11pre-git
┃ │     ┌─ ✔︎ closure-info
┃ │  ┌─ ✔︎ all-store-info
┃ ├─ ✔︎ compositions-info.json
┃ ⏳︎ compose-info.json
┣━━━ Builds            │ Downloads        │ Host
┃    ⏵︎ 1 │ ✔︎ 13 │      │     │     │      │ localhost
┃        │      │      │     │ ↓︎ 3 │      │ https://cache.nixos.org
┗━ ∑︎ ⏵︎ 1 │ ✔︎ 13 │ ⏳︎ 1 │ ↓︎ 0 │ ↓︎ 3 │ ⏳︎ 0 │ ⏱︎ 2m2s

Merge request reports