Mic92 / nixpkgs-review

Review pull-requests on https://github.com/NixOS/nixpkgs
MIT License
398 stars 66 forks source link

dry run #210

Closed davidak closed 1 year ago

davidak commented 3 years ago

i don't want to build any package, but just see which packages would be build to decide if it's too much

i used --skip-package-regex '' to skip all package builds (i think)

maybe that use case could be documented or implemented with a parameter

[davidak@gaming:~/code/nixpkgs]$ nix run -f channel:nixos-unstable nixpkgs-review -c nixpkgs-review pr --post-result --token ***** --skip-package-regex '' 132359
$ git -c fetch.prune=false fetch --force https://github.com/NixOS/nixpkgs master:refs/nixpkgs-review/0 pull/132359/head:refs/nixpkgs-review/1
remote: Enumerating objects: 13, done.
remote: Counting objects: 100% (11/11), done.
remote: Compressing objects: 100% (7/7), done.
remote: Total 13 (delta 4), reused 8 (delta 4), pack-reused 2
Unpacking objects: 100% (13/13), 278.54 KiB | 1.84 MiB/s, done.
From https://github.com/NixOS/nixpkgs
 + e47b93b402f...fc8a8266d79 master                -> refs/nixpkgs-review/0  (forced update)
 + 1a69d54885d...98b46e7498f refs/pull/132359/head -> refs/nixpkgs-review/1  (forced update)
$ git worktree add /home/davidak/.cache/nixpkgs-review/pr-132359/nixpkgs fc8a8266d798da8e1bcf432f451db0155356b788
Preparing worktree (detached HEAD fc8a8266d79)
Updating files: 100% (27246/27246), done.
HEAD is now at fc8a8266d79 sirula: init at unstable-2021-07-11
$ nix-env --option system x86_64-linux -f /home/davidak/.cache/nixpkgs-review/pr-132359/nixpkgs -qaP --xml --out-path --show-trace
$ git merge --no-commit --no-ff 98b46e7498f06911cc1269d873cceb0bda5f92ae
Automatic merge went well; stopped before committing as requested
$ nix-env --option system x86_64-linux -f /home/davidak/.cache/nixpkgs-review/pr-132359/nixpkgs -qaP --xml --out-path --show-trace --meta
184 packages updated:
adapta-gtk-theme almanah altair-v4.0.2 apparix appimage-run appimage-run-tests Apple.Music asciidoc-full asciidoc-full asciidoc-full-with-plugins aws-mturk-clt betterdiscord-installer bfr blockbench-electron bogofilter btrbk ccache ccache-links-wrapper- ccze chain-desktop-wallet chrome-gnome-shell chrysalis clevis collectd collectd-data convmv crip dbacl deltachat-electron denemo detox devdocs-desktop disorderfs dmg2img dvtm dvtm-unstable ElectronMail electronplayer elementary-session-settings-unstable ent evolution evolution-ews evolution-with-plugins fancy-motd-unstable fasd-unstable figlet fileschanged flacon flexoptix-app freetube frescobaldi git-fire-unstable gnome-session gnome-shell gnome-shell-extension-EasyScreenCast-unstable gnome-shell-extension-gsconnect gnome-shell-extension-night-theme-switcher gnome-shell-pomodoro gnome-terminal gnome-tweaks ino irccloud jdiskreport jitsi-meet-electron joplin-desktop kcollectd keeweb kermit kisslicer lbry-desktop ledger-live-desktop lens libvmi lilypond lilypond lilypond-with-fonts linuxband logseq logtop losslesscut lrzsz luksmeta lunar-client makebootfat marktext-v0.16.2-binary mathpix-snipping-tool midisheetmusic minetime minicom mma moc molotov mrtg munin MyCrypto mysql2pgsql neo4j-desktop notable ntopng nuclear-v0.6.6 octant-desktop p3x-onenote pal Patchwork pcloud pg_top phosh picocom pk2cmd plexamp pv python3.8-labgrid python3.8-xmodem python3.9-labgrid python3.9-xmodem qemu-xen-host-cpu-only qemu-xen-host-cpu-only qemu-xen-host-cpu-only qemu-xen-host-cpu-only qjoypad qubes-core-vchan-xen radicle-upstream rambox-pro renameutils rep riemann-c-client ripcord rkflashtool rrdtool sanoid sixpair slsnif smc smokeping solfege soulseekqt soundkonverter soundkonverter soundkonverter split2flac spring springlobby standardnotes station stdenv-linux super-productivity surf-display-unstable Sylk syslog-ng syslog-ng-incubator t1utils tang timedoctor timeular timidity tmpwatch tmux-cssh (20151015 → 2015-10-15) todoist-electron trezor-suite ttf-mkfontdir ttf2pt1 tusk-v0.23.0 udiskie unclutter unityhub uucp uudeview via vial vorbisgain wootility wv2 xdxf2slob-unstable xen xen xen xflux xflux-gui xtitle ytmdesktop yubico-piv-tool yubikey-personalization-gui zettlr zulip

Nothing to be built.

Link to currently reviewing PR:
https://github.com/NixOS/nixpkgs/pull/132359

Posting result comment on https://github.com/NixOS/nixpkgs/pull/132359
$ nix-shell /home/davidak/.cache/nixpkgs-review/pr-132359/shell.nix
these 6 paths will be fetched (0.76 MiB download, 4.01 MiB unpacked):
  /nix/store/b39yxip6di5gq3q8513hfvmhfwz4yq77-stdenv-linux
  /nix/store/lpas0k4ca636czq0na9jv1wlbf10r5ww-bash-interactive-4.4-p23-doc
  /nix/store/nfvkbp8rvlfm9n1v4rv243hwrdpmwr9v-bash-interactive-4.4-p23-info
  /nix/store/pyv3351wlsa5r8sa8bbjpici3ksbvcqc-gnumake-4.3
  /nix/store/wl5vdx1g9wkjgsjb8z1g9gxp5dwr8dfx-patchelf-0.12
  /nix/store/wv1mbc34jaws00lyhgqr6aix5ql0c1r6-bash-interactive-4.4-p23-dev
copying path '/nix/store/lpas0k4ca636czq0na9jv1wlbf10r5ww-bash-interactive-4.4-p23-doc' from 'https://cache.nixos.org'...
copying path '/nix/store/nfvkbp8rvlfm9n1v4rv243hwrdpmwr9v-bash-interactive-4.4-p23-info' from 'https://cache.nixos.org'...
copying path '/nix/store/wv1mbc34jaws00lyhgqr6aix5ql0c1r6-bash-interactive-4.4-p23-dev' from 'https://cache.nixos.org'...
copying path '/nix/store/pyv3351wlsa5r8sa8bbjpici3ksbvcqc-gnumake-4.3' from 'https://cache.nixos.org'...
copying path '/nix/store/wl5vdx1g9wkjgsjb8z1g9gxp5dwr8dfx-patchelf-0.12' from 'https://cache.nixos.org'...
downloading 'https://cache.nixos.org/nar/07n6wnnsa7c2vv42qbvgjc7brnwnsypgyc9lssvzl714cwn6nr1w.nar.xz'...
downloading 'https://cache.nixos.org/nar/0ylhf6zplkgxwl12fvn5zw3aqvd6w4qhcifgrmh4gghgzyn9asy1.nar.xz'...
downloading 'https://cache.nixos.org/nar/1brmf40hl5hys4b8fn1hxhkzsrzjir7wk8qcbycsmfzgpa4lvpx6.nar.xz'...
downloading 'https://cache.nixos.org/nar/1wx852l69i9aczr38rmk23qsh4ai1r96dm4d870ir2r3dfcjv3k5.nar.xz'...
downloading 'https://cache.nixos.org/nar/13vmv4cy17vwwi31jc0yk4qmjjpvdgw7cxyyvk91wmwm8d8js05n.nar.xz'...
copying path '/nix/store/b39yxip6di5gq3q8513hfvmhfwz4yq77-stdenv-linux' from 'https://cache.nixos.org'...
downloading 'https://cache.nixos.org/nar/0qliwbij14g7j6ndn9cfk6m6g436hxvjmizgwgd1fr5x44fchbi2.nar.xz'...
Artturin commented 3 years ago

+1 i'd like to see which packages would be affected by a change

paveloom commented 1 year ago

Seems like it's nixpkgs-review pr --build-args="--dry-run" $PR nowadays.

Mic92 commented 1 year ago

That should be good enough.