Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

buildDotnetModule: inherit enableParallelBuilding #339335

Merged
merged 4 commits into from
Sep 4, 2024

Conversation

tie
Copy link
Member

@tie tie commented Sep 3, 2024

Description of changes

After this change, enableParallelBuilding defaults to true for packages using buildDotnetModule. The argument value already defaults to true, but we did not use it. Note that default values in Nix are not present in the arguments attribute set, e.g. args does not contain def for { def ? true }@args: … function unless this argument is explicitly passed.

References:

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 24.11 Release Notes (or backporting 23.11 and 24.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.

Add a 👍 reaction to pull requests you find important.

After this change, enableParallelBuilding defaults to true for packages
using buildDotnetModule. The argument value already defaults to true,
but we did not use it. Note that default values in Nix are not present
in the arguments attribute set, e.g. `args` does not contain `def` for
`{ def ? true }@Args: …` function unless this argument is explicitly
passed.
@github-actions github-actions bot added the 6.topic: dotnet Language: .NET label Sep 3, 2024
@tie
Copy link
Member Author

tie commented Sep 3, 2024

Result of nixpkgs-review pr 339335 run on aarch64-linux 1

1 package marked as broken and skipped:
  • naps2
4 packages failed to build:
  • nexusmods-app
  • nexusmods-app-unfree
  • recyclarr
  • ryujinx
66 packages built:
  • ArchiSteamFarm
  • am2rlauncher
  • avalonia-ilspy
  • beatsabermodmanager
  • bicep
  • blendfarm
  • boogie
  • btcpayserver
  • btcpayserver-altcoins
  • cavalier
  • celeste64
  • certdump
  • csharp-ls
  • csharpier
  • csharprepl
  • cyclonedx-cli
  • dafny
  • denaro
  • depotdownloader
  • dotnet-outdated
  • fable
  • famistudio
  • fantomas
  • formula
  • fsautocomplete
  • galaxy-buds-client
  • garnet
  • gh-gei
  • git-credential-manager
  • github-runner
  • gitversion
  • ilspycmd
  • jackett
  • jellyfin
  • juniper
  • kavita
  • knossosnet
  • kryptor
  • libation
  • lubelogger
  • lumafly
  • marksman
  • mqttmultimeter
  • msbuild
  • nbxplorer
  • netcoredbg
  • networkminer
  • omnisharp-roslyn
  • opentabletdriver
  • openutau
  • pablodraw
  • parabolic
  • pbm
  • pinta
  • pupdate
  • retrospy
  • roslyn
  • roslyn-ls
  • scarab
  • slskd
  • sonarr
  • tagger
  • technitium-dns-server
  • tone
  • torrentstream
  • wiseunpacker

@tie
Copy link
Member Author

tie commented Sep 3, 2024

Result of nixpkgs-review pr 339335 run on aarch64-linux 1

1 package marked as broken and skipped:
  • naps2
70 packages built:
  • ArchiSteamFarm
  • am2rlauncher
  • avalonia-ilspy
  • beatsabermodmanager
  • bicep
  • blendfarm
  • boogie
  • btcpayserver
  • btcpayserver-altcoins
  • cavalier
  • celeste64
  • certdump
  • csharp-ls
  • csharpier
  • csharprepl
  • cyclonedx-cli
  • dafny
  • denaro
  • depotdownloader
  • dotnet-outdated
  • fable
  • famistudio
  • fantomas
  • formula
  • fsautocomplete
  • galaxy-buds-client
  • garnet
  • gh-gei
  • git-credential-manager
  • github-runner
  • gitversion
  • ilspycmd
  • jackett
  • jellyfin
  • juniper
  • kavita
  • knossosnet
  • kryptor
  • libation
  • lubelogger
  • lumafly
  • marksman
  • mqttmultimeter
  • msbuild
  • nbxplorer
  • netcoredbg
  • networkminer
  • nexusmods-app
  • nexusmods-app-unfree
  • omnisharp-roslyn
  • opentabletdriver
  • openutau
  • pablodraw
  • parabolic
  • pbm
  • pinta
  • pupdate
  • recyclarr
  • retrospy
  • roslyn
  • roslyn-ls
  • ryujinx
  • scarab
  • slskd
  • sonarr
  • tagger
  • technitium-dns-server
  • tone
  • torrentstream
  • wiseunpacker

@tie tie marked this pull request as ready for review September 3, 2024 23:36
@tie tie requested a review from corngood as a code owner September 3, 2024 23:36
Copy link
Contributor

@corngood corngood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good find. Most of @args is a bit of a mess. There are a lot of unused default values, as well as things that should be stripped before stdenv. At least it looks like the rest of the default values are all null/false/[].

Cc: @NixOS/dotnet

@@ -25,6 +25,8 @@ buildDotnetModule (finalAttrs: {
hash = "sha256-FzQphMhiC1g+6qmk/R1v4rq2ldy35NcaWm0RR1UlwLA=";
};

enableParallelBuilding = false;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume you tried to build in parallel but it failed?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was in the first nixpkgs-review, on aarch64-linux. Something we should look into.

@corngood
Copy link
Contributor

corngood commented Sep 4, 2024

Result of nixpkgs-review pr 339335 run on aarch64-darwin 1

2 packages marked as broken and skipped:
  • certdump
  • pablodraw
45 packages built:
  • ArchiSteamFarm
  • avalonia-ilspy
  • azure-functions-core-tools
  • bicep
  • blendfarm
  • boogie (dotnetPackages.Boogie)
  • btcpayserver
  • btcpayserver-altcoins
  • csharp-ls
  • csharpier
  • csharprepl
  • cyclonedx-cli
  • dafny
  • depotdownloader
  • dotnet-outdated
  • famistudio
  • fantomas
  • formula
  • fsautocomplete
  • garnet
  • gh-gei
  • git-credential-manager
  • github-runner
  • gitversion
  • ilspycmd
  • jackett
  • jellyfin
  • juniper
  • knossosnet
  • kryptor
  • libation
  • lubelogger
  • marksman
  • msbuild
  • nbxplorer
  • netcoredbg
  • omnisharp-roslyn
  • openutau
  • recyclarr
  • roslyn
  • roslyn-ls
  • sonarr
  • tests.dotnet.structured-attrs.no-structured-attrs
  • torrentstream
  • wiseunpacker

@corngood
Copy link
Contributor

corngood commented Sep 4, 2024

Result of nixpkgs-review pr 339335 run on x86_64-linux 1

93 packages built:
  • ArchiSteamFarm
  • alttpr-opentracker
  • am2rlauncher
  • avalonia-ilspy
  • azure-functions-core-tools
  • beatsabermodmanager
  • bicep
  • blendfarm
  • boogie (dotnetPackages.Boogie)
  • btcpayserver
  • btcpayserver-altcoins
  • cavalier
  • celeste64
  • certdump
  • csharp-ls
  • csharpier
  • csharprepl
  • cyclonedx-cli
  • dafny
  • denaro
  • depotdownloader
  • discordchatexporter-cli
  • dotnet-outdated
  • eventstore
  • fable
  • famistudio
  • fantomas
  • formula
  • fsautocomplete
  • galaxy-buds-client
  • garnet
  • gh-gei
  • git-credential-manager
  • github-runner
  • gitversion
  • ilspycmd
  • inklecate
  • jackett
  • jellyfin
  • juniper
  • kavita
  • knossosnet
  • kryptor
  • libation
  • lubelogger
  • lumafly
  • marksman
  • mqttmultimeter
  • msbuild
  • naps2
  • nbxplorer
  • netcoredbg
  • networkminer
  • nexusmods-app
  • nexusmods-app-unfree
  • omnisharp-roslyn
  • openra
  • opentabletdriver
  • openutau
  • osu-lazer
  • pablodraw
  • parabolic
  • pbm
  • pinta
  • ps3-disc-dumper
  • pupdate
  • recyclarr
  • retrospy
  • roslyn
  • roslyn-ls
  • ryujinx
  • scarab
  • slskd
  • sonarr
  • space-station-14-launcher
  • tagger
  • technitium-dns-server
  • tests.dotnet.final-attrs.check-output
  • tests.dotnet.final-attrs.output-matches-const
  • tests.dotnet.final-attrs.override-has-no-effect
  • tests.dotnet.final-attrs.override-modifies-output
  • tests.dotnet.project-references
  • tests.dotnet.structured-attrs.check-output
  • tests.dotnet.structured-attrs.no-structured-attrs
  • tests.dotnet.use-dotnet-from-env.fallback
  • tests.dotnet.use-dotnet-from-env.use-dotnet-path-env
  • tests.dotnet.use-dotnet-from-env.use-dotnet-root-env
  • tests.dotnet.use-dotnet-from-env.without-fallback
  • tone
  • torrentstream
  • wasabibackend
  • wiseunpacker
  • xivlauncher

@corngood corngood merged commit 683ffbd into NixOS:master Sep 4, 2024
45 of 47 checks passed
@tie tie deleted the dotnet-parallel branch September 6, 2024 08:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants