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

bazel-watcher: init at 4d5928e #46509

Closed
wants to merge 3 commits into from

Conversation

kalbasit
Copy link
Member

@kalbasit kalbasit commented Sep 11, 2018

Motivation for this change

Tools for building Bazel targets when source files change. https://github.com/bazelbuild/bazel-watcher

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • 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 nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Fits CONTRIBUTING.md.

@kalbasit
Copy link
Member Author

@GrahamcOfBorg build bazel-watcher

@GrahamcOfBorg
Copy link

No attempt on aarch64-linux (full log)

The following builds were skipped because they don't evaluate on aarch64-linux: bazel-watcher

Partial log (click to expand)


a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowUnfree = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowUnfree = true; }
to ~/.config/nixpkgs/config.nix.


@kalbasit kalbasit changed the title bazel-watcher: init at 4d5928e [WIP] bazel-watcher: init at 4d5928e Sep 11, 2018
@GrahamcOfBorg
Copy link

No attempt on aarch64-linux (full log)

The following builds were skipped because they don't evaluate on aarch64-linux: bazel-watcher

Partial log (click to expand)


a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowUnfree = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowUnfree = true; }
to ~/.config/nixpkgs/config.nix.


@kalbasit kalbasit changed the title [WIP] bazel-watcher: init at 4d5928e bazel-watcher: init at 4d5928e Sep 11, 2018
@GrahamcOfBorg
Copy link

Unexpected error: command failed with exit code 1 on x86_64-linux (full log)

Attempted: bazel-watcher

Partial log (click to expand)

Building: no action
Building: no action
INFO: SHA256 (https://codeload.github.com/google/protobuf/zip/48cb18e5c419ddd23d9badcfe4e9df7bde1979b2) = b6b42f90c60b54732f764ae875623a9b05e6eede064173c36c6fea12dd376cdd
Building: no action
Building: no action
Building: no action
installing
fixed-output derivation produced path '/nix/store/i423a4q0rsxw3jyslz1mfm41i5m1sq4j-bazel-watcher-2018-09-09-deps' with sha256 hash '0xc9dp41p9ipx891nz5c1mp3mplk71ph20yl3vcpvgpj4111lwb7' instead of the expected hash '1c1nplw4ziavp7yc66cdq7wsrlq2qqhih89cc04n45sbcmh90ynm'
cannot build derivation '/nix/store/5kf8ah3px8qs3bh9i8dfssv0ds6a93v0-bazel-watcher-2018-09-09.drv': 1 dependencies couldn't be built
error: build of '/nix/store/5kf8ah3px8qs3bh9i8dfssv0ds6a93v0-bazel-watcher-2018-09-09.drv' failed

@GrahamcOfBorg
Copy link

Unexpected error: command failed with exit code 1 on x86_64-linux (full log)

Attempted: bazel-watcher

Partial log (click to expand)

Building: no action
Building: no action
Building: no action
INFO: SHA256 (https://codeload.github.com/google/protobuf/zip/48cb18e5c419ddd23d9badcfe4e9df7bde1979b2) = b6b42f90c60b54732f764ae875623a9b05e6eede064173c36c6fea12dd376cdd
Building: no action
Building: no action
Building: no action
installing
warning: path '/nix/store/2wvyv2lcrcknspb117ad1c21h7h1lw7z-bazel-watcher-2018-09-09-deps' claims to be content-addressed but isn't
error: unexpected end-of-file

@kalbasit kalbasit force-pushed the nixpkgs_add-bazel-watcher branch 2 times, most recently from 35d8795 to dec14b6 Compare September 11, 2018 06:04
Bazel computes the default value of output_user_root before parsing the
flag[0]. The computation of the default value involves getting the $USER
from the environment. I don't have that variable when building with
sandbox enabled.

[0]: https://github.com/bazelbuild/bazel/blob/9323c57607d37f9c949b60e293b573584906da46/src/main/cpp/startup_options.cc#L123-L124
@GrahamcOfBorg
Copy link

No attempt on aarch64-linux (full log)

The following builds were skipped because they don't evaluate on aarch64-linux: bazel-watcher

Partial log (click to expand)


a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowUnfree = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowUnfree = true; }
to ~/.config/nixpkgs/config.nix.


@GrahamcOfBorg
Copy link

Unexpected error: command failed with exit code 1 on x86_64-linux (full log)

Attempted: bazel-watcher

Partial log (click to expand)

Building: no action
Building: no action
Building: no action
INFO: SHA256 (https://codeload.github.com/google/protobuf/zip/48cb18e5c419ddd23d9badcfe4e9df7bde1979b2) = b6b42f90c60b54732f764ae875623a9b05e6eede064173c36c6fea12dd376cdd
Building: no action
Building: no action
Building: no action
installing
warning: path '/nix/store/z28x9a6nc8736cb4pzzkcrcl6knyryfm-bazel-watcher-2018-09-09-deps' claims to be content-addressed but isn't
error: unexpected end-of-file

@kalbasit
Copy link
Member Author

@GrahamcOfBorg build bazel-watcher

@GrahamcOfBorg
Copy link

No attempt on aarch64-linux (full log)

The following builds were skipped because they don't evaluate on aarch64-linux: bazel-watcher

Partial log (click to expand)


a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowUnfree = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowUnfree = true; }
to ~/.config/nixpkgs/config.nix.


@GrahamcOfBorg
Copy link

No attempt on aarch64-linux (full log)

The following builds were skipped because they don't evaluate on aarch64-linux: bazel-watcher

Partial log (click to expand)


a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowUnfree = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowUnfree = true; }
to ~/.config/nixpkgs/config.nix.


@GrahamcOfBorg
Copy link

Unexpected error: command failed with exit code 1 on x86_64-linux (full log)

Attempted: bazel-watcher

Partial log (click to expand)

Building: no action
Building: no action
INFO: SHA256 (https://codeload.github.com/google/protobuf/zip/48cb18e5c419ddd23d9badcfe4e9df7bde1979b2) = b6b42f90c60b54732f764ae875623a9b05e6eede064173c36c6fea12dd376cdd
Building: no action
Building: no action
Building: no action
installing
fixed-output derivation produced path '/nix/store/zclclnn1rq4ha7kqqqk7vq12p2bb7kvq-bazel-watcher-2018-09-09-deps' with sha256 hash '0p0661p5d9fyba88isgyb81zzap5f4fjrydpkrknm25hgw2b2dvm' instead of the expected hash '158xsci1g7nq6wif1dkbfqg6m24h68jg7vaw7klzd67ml1y2fay6'
cannot build derivation '/nix/store/2drf0kxcj138fmx8lrwsi85bvcxpcvvc-bazel-watcher-2018-09-09.drv': 1 dependencies couldn't be built
error: build of '/nix/store/2drf0kxcj138fmx8lrwsi85bvcxpcvvc-bazel-watcher-2018-09-09.drv' failed

@GrahamcOfBorg
Copy link

Unexpected error: command failed with exit code 1 on x86_64-linux (full log)

Attempted: bazel-watcher

Partial log (click to expand)

Building: no action
Building: no action
Building: no action
INFO: SHA256 (https://codeload.github.com/google/protobuf/zip/48cb18e5c419ddd23d9badcfe4e9df7bde1979b2) = b6b42f90c60b54732f764ae875623a9b05e6eede064173c36c6fea12dd376cdd
Building: no action
Building: no action
Building: no action
installing
warning: path '/nix/store/8shd7ggx26zfhpjqra9bvaza7llrva09-bazel-watcher-2018-09-09-deps' claims to be content-addressed but isn't
error: unexpected end-of-file

@GrahamcOfBorg
Copy link

No attempt on aarch64-linux (full log)

The following builds were skipped because they don't evaluate on aarch64-linux: bazel-watcher

Partial log (click to expand)


a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowUnfree = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowUnfree = true; }
to ~/.config/nixpkgs/config.nix.


@GrahamcOfBorg
Copy link

Unexpected error: command failed with exit code 1 on x86_64-linux (full log)

Attempted: bazel-watcher

Partial log (click to expand)

Building: no action
Building: no action
INFO: SHA256 (https://codeload.github.com/google/protobuf/zip/48cb18e5c419ddd23d9badcfe4e9df7bde1979b2) = b6b42f90c60b54732f764ae875623a9b05e6eede064173c36c6fea12dd376cdd
Building: no action
Building: no action
Building: no action
installing
fixed-output derivation produced path '/nix/store/gqiirz9zc61fqbb15r1ydm8ijghg2a6c-bazel-watcher-2018-09-09-deps' with sha256 hash '195p83q27vrc9xh47j7h0cy7kjn49g2ppym6p9daycfprfmwn603' instead of the expected hash '0m7sjlbhg3p3l3mhs5smd28mj3zyzf6jrk3dgg0mjfb3zwfnfz32'
cannot build derivation '/nix/store/h9014x570wabs2ik44mpnkw8zav61f1l-bazel-watcher-2018-09-09.drv': 1 dependencies couldn't be built
error: build of '/nix/store/h9014x570wabs2ik44mpnkw8zav61f1l-bazel-watcher-2018-09-09.drv' failed

@GrahamcOfBorg
Copy link

No attempt on aarch64-linux (full log)

The following builds were skipped because they don't evaluate on aarch64-linux: bazel-watcher

Partial log (click to expand)


a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowUnfree = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowUnfree = true; }
to ~/.config/nixpkgs/config.nix.


@GrahamcOfBorg
Copy link

Unexpected error: command failed with exit code 1 on x86_64-linux (full log)

Attempted: bazel-watcher

Partial log (click to expand)

Building: no action
Building: no action
Building: no action
INFO: SHA256 (https://codeload.github.com/google/protobuf/zip/48cb18e5c419ddd23d9badcfe4e9df7bde1979b2) = b6b42f90c60b54732f764ae875623a9b05e6eede064173c36c6fea12dd376cdd
Building: no action
Building: no action
Building: no action
installing
warning: path '/nix/store/wh4908nxhv5l08gk3dq2fyi54bq3hh1z-bazel-watcher-2018-09-09-deps' claims to be content-addressed but isn't
error: unexpected end-of-file

@kalbasit kalbasit changed the title bazel-watcher: init at 4d5928e [WIP] bazel-watcher: init at 4d5928e Sep 11, 2018
@kalbasit
Copy link
Member Author

@GrahamcOfBorg build bazel-watcher

@GrahamcOfBorg
Copy link

No attempt on aarch64-linux (full log)

The following builds were skipped because they don't evaluate on aarch64-linux: bazel-watcher

Partial log (click to expand)


a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowUnfree = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowUnfree = true; }
to ~/.config/nixpkgs/config.nix.


@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: bazel-watcher

Partial log (click to expand)

post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/pksq8x5c0by92d2f19vwh0gq503xz4nb-bazel-watcher-2018-09-09
shrinking /nix/store/pksq8x5c0by92d2f19vwh0gq503xz4nb-bazel-watcher-2018-09-09/bin/ibazel
cannot find section .dynamic
strip is /nix/store/h0lbngpv6ln56hjj59i6l77vxq25flbz-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/pksq8x5c0by92d2f19vwh0gq503xz4nb-bazel-watcher-2018-09-09/bin
patching script interpreter paths in /nix/store/pksq8x5c0by92d2f19vwh0gq503xz4nb-bazel-watcher-2018-09-09
checking for references to /build in /nix/store/pksq8x5c0by92d2f19vwh0gq503xz4nb-bazel-watcher-2018-09-09...
cannot find section .dynamic
/nix/store/pksq8x5c0by92d2f19vwh0gq503xz4nb-bazel-watcher-2018-09-09

@kalbasit
Copy link
Member Author

@GrahamcOfBorg build bazel-watcher

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: bazel-watcher

Partial log (click to expand)

/nix/store/pksq8x5c0by92d2f19vwh0gq503xz4nb-bazel-watcher-2018-09-09

@GrahamcOfBorg
Copy link

No attempt on aarch64-linux (full log)

The following builds were skipped because they don't evaluate on aarch64-linux: bazel-watcher

Partial log (click to expand)


a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowUnfree = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowUnfree = true; }
to ~/.config/nixpkgs/config.nix.


@kalbasit kalbasit changed the title [WIP] bazel-watcher: init at 4d5928e bazel-watcher: init at 4d5928e Sep 11, 2018
@kalbasit
Copy link
Member Author

@GrahamcOfBorg build bazel-deps bazel-watcher

@GrahamcOfBorg
Copy link

No attempt on aarch64-linux (full log)

The following builds were skipped because they don't evaluate on aarch64-linux: bazel-deps, bazel-watcher

Partial log (click to expand)


a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowUnfree = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowUnfree = true; }
to ~/.config/nixpkgs/config.nix.


@GrahamcOfBorg
Copy link

Unexpected error: command failed with exit code 1 on x86_64-linux (full log)

Attempted: bazel-deps, bazel-watcher

Partial log (click to expand)

Building: no action
Building: no action
Building: no action
Building: no action
Building: no action
Building: no action
installing
fixed-output derivation produced path '/nix/store/s6jlc348f7zry427zd68p8r1j3b418bj-bazel-deps-2018-08-16-deps' with sha256 hash '1myamfsw63chrr6fnayjam84jxs1r91fw3zxzjm6a91qa58ls5fy' instead of the expected hash '1hzgxly27qyan2vjrsd55f17k0gvnihclm45cgj6i5i45yh1j86w'
cannot build derivation '/nix/store/p42gi72whv5jr6d4027mbd6i8sibsxsz-bazel-deps-2018-08-16.drv': 1 dependencies couldn't be built
error: build of '/nix/store/p42gi72whv5jr6d4027mbd6i8sibsxsz-bazel-deps-2018-08-16.drv' failed

@kalbasit
Copy link
Member Author

@GrahamcOfBorg build bazel-watcher

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: bazel-watcher

Partial log (click to expand)

/nix/store/pksq8x5c0by92d2f19vwh0gq503xz4nb-bazel-watcher-2018-09-09

@GrahamcOfBorg
Copy link

No attempt on aarch64-linux (full log)

The following builds were skipped because they don't evaluate on aarch64-linux: bazel-watcher

Partial log (click to expand)


a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowUnfree = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowUnfree = true; }
to ~/.config/nixpkgs/config.nix.


@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: bazel-watcher

Partial log (click to expand)

/nix/store/pksq8x5c0by92d2f19vwh0gq503xz4nb-bazel-watcher-2018-09-09

@GrahamcOfBorg
Copy link

No attempt on aarch64-linux (full log)

The following builds were skipped because they don't evaluate on aarch64-linux: bazel-watcher

Partial log (click to expand)


a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowUnfree = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowUnfree = true; }
to ~/.config/nixpkgs/config.nix.


kalbasit added a commit to kalbasit/shabka that referenced this pull request Sep 14, 2018
@kalbasit kalbasit closed this Sep 27, 2018
@kalbasit kalbasit mentioned this pull request Oct 1, 2018
9 tasks
kalbasit added a commit to kalbasit/shabka that referenced this pull request Oct 3, 2018
kalbasit added a commit to kalbasit/shabka that referenced this pull request Oct 3, 2018
…th_stable_channels

* origin/master:
  Revert "pkgs/bazel-watcher: import bazel-watcher from NixOS/nixpkgs#46509"
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.

None yet

2 participants