Skip to content

maintainers/scripts/haskell: Add r-deps information to build-report#138048

Merged
maralorn merged 1 commit intoNixOS:haskell-updatesfrom
maralorn:r-deps
Sep 18, 2021
Merged

maintainers/scripts/haskell: Add r-deps information to build-report#138048
maralorn merged 1 commit intoNixOS:haskell-updatesfrom
maralorn:r-deps

Conversation

@maralorn
Copy link
Copy Markdown
Member

@maralorn maralorn commented Sep 15, 2021

Motivation for this change

We would like to sort and display the list of broken packages in our build-report (compare https://github.com/cdepillabout/nix-haskell-updates-status) to be sorted by the number of reverse dependencies that a package breaks.

This is a continuation #137235, because github thinks it’s smarter than me. I now have first working version but it only counts direct dependencies not transitive dependencies, which is interesting but not super useful.

Edited: Should be ready now.

Things done
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • 21.11 Release Notes (or backporting 21.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

@github-actions github-actions bot added the 6.topic: haskell General-purpose, statically typed, purely functional programming language label Sep 15, 2021
@maralorn maralorn marked this pull request as draft September 15, 2021 20:12
@ofborg ofborg bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. labels Sep 15, 2021
@maralorn
Copy link
Copy Markdown
Member Author

maralorn commented Sep 15, 2021

I have created the following example report with the current version of this: (Updated to newest version)

haskell-updates build report from hydra

evaluation 1704520 of nixpkgs commit 4a4e737 as of 2021-09-14 21:06 UTC

Build summary

Platform Failed ❌ DependencyFailed ❗ TimedOut ⌛🚫 Success ✔️
aarch64-linux 📱 20 9 3 6718
x86_64-darwin 🍎 51 32 2 6619
x86_64-linux 🐧 3 6792

Unmaintained packages with build failure

69 job(s)

Unmaintained packages with failed dependency

41 job(s)

Top 50 broken packages, sorted by number of reverse dependencies

50 job(s)

gogol-core ⤴️ 182
haskell98 ⤴️ 153
dependent-map ⤴️ 106
enumerator ⤴️ 56
cryptohash-sha256 ⤴️ 54
polysemy ⤴️ 51
derive ⤴️ 48
contiguous ⤴️ 44
MonadCatchIO-transformers ⤴️ 41
parseargs ⤴️ 41
bytesmith ⤴️ 34
data-lens ⤴️ 34
distributed-process ⤴️ 30
iteratee ⤴️ 29
jmacro ⤴️ 29
ip ⤴️ 26
either-unwrap ⤴️ 25
HList ⤴️ 23
numhask ⤴️ 23
sydtest ⤴️ 23
Crypto ⤴️ 22
SciBaseTypes ⤴️ 22
haskelldb ⤴️ 22
hsc3 ⤴️ 22
wxdirect ⤴️ 22
BiobaseTypes ⤴️ 21
wxc ⤴️ 21
biocore ⤴️ 20
secp256k1-haskell ⤴️ 20
wxcore ⤴️ 20
attoparsec-enumerator ⤴️ 19
bytestring-show ⤴️ 19
bytestring-trie ⤴️ 19
polysemy-plugin ⤴️ 19
wx ⤴️ 19
BiobaseENA ⤴️ 18
asn1-data ⤴️ 18
dbus-core ⤴️ 18
gtksourceview2 ⤴️ 18
BiobaseXNA ⤴️ 17
HGamer3D-Data ⤴️ 17
certificate ⤴️ 17
dbus-client ⤴️ 17
gconf ⤴️ 17
gtk-serialized-event ⤴️ 17
uuid-orphans ⤴️ 17
cuda ⤴️ 16
happstack-jmacro ⤴️ 16
manatee-core ⤴️ 16
monads-fd ⤴️ 16

⤴️: The number of packages that depend (directly or indirectly) on this package (if any). If two numbers are shown the first (lower) number considers only packages which currently have enabled hydra jobs, i.e. are not marked broken. The second (higher) number considers all packages.

Report generated with maintainers/scripts/haskell/hydra-report.hs

@maralorn maralorn marked this pull request as ready for review September 15, 2021 22:21
@maralorn
Copy link
Copy Markdown
Member Author

The ux is not yet great this way, I am open for suggestions as to how to format the information better.

I am a bit weary of the increasing complexity of this script. But I think maintaining it outside of nixpkgs would mean even more overhead and I guess it’s not hurting anyone in tree?

@maralorn maralorn force-pushed the r-deps branch 4 times, most recently from a95e829 to 5ab506c Compare September 18, 2021 10:17
@sternenseemann
Copy link
Copy Markdown
Member

maintaintainers

Something happened to the commit message :)

@maralorn maralorn changed the title maintaintainers/scripts/haskell: Add r-deps information to build-report maintainers/scripts/haskell: Add r-deps information to build-report Sep 18, 2021
@maralorn maralorn merged commit 4de9b2b into NixOS:haskell-updates Sep 18, 2021
@maralorn maralorn deleted the r-deps branch September 18, 2021 13:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: haskell General-purpose, statically typed, purely functional programming language 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants