Skip to content

Switch buildBazelPackage fetchConfigured on by default - #126034

Merged
lukegb merged 7 commits into
NixOS:masterfrom
lukegb:bazel-build-configured
Jun 7, 2021
Merged

lukegb merged 7 commits into
NixOS:masterfrom
lukegb:bazel-build-configured

Conversation

@lukegb

@lukegb lukegb commented Jun 7, 2021 •

Copy link
Copy Markdown
Contributor
Motivation for this change

fetchConfigured (i.e. using build --nobuild) tends to produce better result then using fetch, but it does produce different hashes.

Flip the default, and for all non-marked-as-broken packages in nixpkgs, regenerate the hashes.

Fixes #123601
Fixes #116439
Fixes #87922

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs 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
    • (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.

lukegb added 2 commits June 6, 2021 21:18
This was the intent of my previous change, but it didn't quite work
because the pipeline still exits false even if the file doesn't exist.
Oops.
@lukegb
lukegb requested review from FRidh, jonringer and ryantm as code owners June 7, 2021 02:05
@github-actions github-actions Bot added 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 6.topic: python Python is a high-level, general-purpose programming language. 8.has: changelog This PR adds or changes release notes 8.has: documentation This PR adds or changes documentation labels Jun 7, 2021
This also now seems to depend on protoc, but we substitute out the
version of protoc so that we don't download the binary artifacts,
and instead compile protoc from support.

TBD: using the Nixpkgs built version of protoc instead of building from
source.
@ofborg
ofborg Bot requested review from abbradar, andrew-d and kalbasit June 7, 2021 02:16
@ofborg ofborg Bot added 10.rebuild-darwin: 11-100 This PR causes between 11 and 100 packages to rebuild on Darwin. 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. labels Jun 7, 2021
@lukegb
lukegb force-pushed the bazel-build-configured branch from 66c3fc6 to 233b685 Compare June 7, 2021 02:20
@r-rmcgibbo

r-rmcgibbo commented Jun 7, 2021 •

Copy link
Copy Markdown

Result of nixpkgs-review pr 126034 at 233b6859 run on x86_64-linux 1

30 packages skipped due to time constraints:
  • envoy
  • gpt2tc
  • pomerium
  • python38Packages.arviz
  • python38Packages.baselines
  • python38Packages.dm-sonnet
  • python38Packages.edward
  • python38Packages.graph_nets
  • python38Packages.mask-rcnn
  • python38Packages.optuna
  • ...
3 packages built successfully:
  • bazel-watcher
  • gvisor
  • nixos-install-tools
11 suggestions:
  • warning: unused-argument

    Unused argument: protobuf.
    Near pkgs/applications/virtualization/gvisor/default.nix:14:3:

       |
    14 | , protobuf
       |   ^
    
  • warning: missing-phase-hooks

    installPhase should probably contain runHook preInstall and runHook postInstall.

    Near pkgs/development/go-modules/generic/default.nix:223:5:

        |
    223 |     installPhase = args.installPhase or ''
        |     ^
    
  • warning: missing-patch-comment

    Consider adding a comment explaining the purpose of this patch on the line preceeding.
    Near pkgs/development/tools/bazel-watcher/default.nix:11:5:

       |
    11 |     ./use-go-in-path.patch
       |     ^
    
  • warning: missing-phase-hooks

    installPhase should probably contain runHook preInstall and runHook postInstall.

    Near pkgs/applications/virtualization/gvisor/default.nix:108:5:

        |
    108 |     installPhase = ''
        |     ^
    
  • warning: name-and-version

    Did you mean to pass pname instead of name to mkDerivation?

    Near pkgs/build-support/build-bazel-package/default.nix:55:10:

       |
    55 |   inherit name bazelFlags bazelBuildFlags bazelFetchFlags bazelTarget;
       |          ^
    

    Near pkgs/development/tools/bazel-watcher/default.nix:16:3:

       |
    16 |   version = "0.14.0";
       |   ^
    
  • warning: missing-phase-hooks

    installPhase should probably contain runHook preInstall and runHook postInstall.

    Near pkgs/development/tools/bazel-watcher/default.nix:71:5:

       |
    71 |     installPhase = ''
       |     ^
    
  • warning: unused-argument

    Unused argument: future.
    Near pkgs/development/python-modules/tensorflow/default.nix:7:3:

      |
    7 | , future, setuptools, wheel, keras-preprocessing, google-pasta
      |   ^
    
  • warning: name-and-version

    Did you mean to pass pname instead of name to mkDerivation?

    Near pkgs/build-support/build-bazel-package/default.nix:55:10:

       |
    55 |   inherit name bazelFlags bazelBuildFlags bazelFetchFlags bazelTarget;
       |          ^
    

    Near pkgs/applications/virtualization/gvisor/default.nix:56:3:

       |
    56 |   version = "20210518.0";
       |   ^
    
  • warning: unused-argument

    Unused argument: pythonAtLeast.
    Near pkgs/development/python-modules/tensorflow/default.nix:4:36:

      |
    4 | , buildPythonPackage, pythonOlder, pythonAtLeast, python
      |                                    ^
    
  • warning: missing-phase-hooks

    installPhase should probably contain runHook preInstall and runHook postInstall.

    Near pkgs/servers/http/envoy/default.nix:99:5:

       |
    99 |     installPhase = ''
       |     ^
    
  • warning: unused-argument

    Unused argument: callPackage.
    Near pkgs/applications/virtualization/gvisor/default.nix:4:3:

      |
    4 | , callPackage
      |   ^
    

Result of nixpkgs-review pr 126034 at 233b6859 run on aarch64-linux 1

2 packages marked as broken and skipped:
  • python38Packages.tensorflowWithCuda
  • python39Packages.tensorflowWithCuda
25 packages skipped due to time constraints:
  • python38Packages.arviz
  • python38Packages.baselines
  • python38Packages.dm-sonnet
  • python38Packages.edward
  • python38Packages.graph_nets
  • python38Packages.mask-rcnn
  • python38Packages.optuna
  • python38Packages.pymc3
  • python38Packages.rl-coach
  • python38Packages.scikit-tda
  • ...
2 packages built successfully:
  • bazel-watcher
  • nixos-install-tools
5 suggestions:
  • warning: unused-argument

    Unused argument: pythonAtLeast.
    Near pkgs/development/python-modules/tensorflow/default.nix:4:36:

      |
    4 | , buildPythonPackage, pythonOlder, pythonAtLeast, python
      |                                    ^
    
  • warning: missing-patch-comment

    Consider adding a comment explaining the purpose of this patch on the line preceeding.
    Near pkgs/development/tools/bazel-watcher/default.nix:11:5:

       |
    11 |     ./use-go-in-path.patch
       |     ^
    
  • warning: unused-argument

    Unused argument: future.
    Near pkgs/development/python-modules/tensorflow/default.nix:7:3:

      |
    7 | , future, setuptools, wheel, keras-preprocessing, google-pasta
      |   ^
    
  • warning: missing-phase-hooks

    installPhase should probably contain runHook preInstall and runHook postInstall.

    Near pkgs/development/tools/bazel-watcher/default.nix:71:5:

       |
    71 |     installPhase = ''
       |     ^
    
  • warning: name-and-version

    Did you mean to pass pname instead of name to mkDerivation?

    Near pkgs/build-support/build-bazel-package/default.nix:55:10:

       |
    55 |   inherit name bazelFlags bazelBuildFlags bazelFetchFlags bazelTarget;
       |          ^
    

    Near pkgs/development/tools/bazel-watcher/default.nix:16:3:

       |
    16 |   version = "0.14.0";
       |   ^
    

@lukegb
lukegb force-pushed the bazel-build-configured branch from 233b685 to 98f9528 Compare June 7, 2021 08:59
@lukegb
lukegb force-pushed the bazel-build-configured branch from 98f9528 to 3d6fd37 Compare June 7, 2021 20:59
@ofborg
ofborg Bot requested a review from kalbasit June 7, 2021 21:09
@lukegb
lukegb merged commit 840f688 into NixOS:master Jun 7, 2021
@lukegb
lukegb deleted the bazel-build-configured branch June 7, 2021 22:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 6.topic: python Python is a high-level, general-purpose programming language. 8.has: changelog This PR adds or changes release notes 8.has: documentation This PR adds or changes documentation 10.rebuild-darwin: 11-100 This PR causes between 11 and 100 packages to rebuild on Darwin. 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

gvisor: Depends on Go 1.14 Update envoy to 1.17.1 Problem with deps in build-bazel-package

3 participants