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

Rustfmt: 0.9.0 -> 0.99.5 #50960

Merged
merged 3 commits into from Jan 10, 2019

Conversation

Projects
None yet
6 participants
@symphorien
Copy link
Contributor

symphorien commented Nov 23, 2018

Motivation for this change

the current version of rustfmt is unable to parse code accepted by our current version of rustc.
Also enable tests in rustc-bindgen (they were disabled because our version of rustfmt was too old)

cc @Ralith and @globin as maintainers.

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/): tested cargo fmt and rustfmt
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Assured whether relevant documentation is up to date
  • Fits CONTRIBUTING.md.

@symphorien

This comment has been minimized.

Copy link
Contributor Author

symphorien commented Nov 23, 2018

Ah and I forgot to mention: I know that 1.0 is released, but our rustc is not nightly enough to build this version. I packaged the latest version I could.

@symphorien

This comment has been minimized.

Copy link
Contributor Author

symphorien commented Nov 23, 2018

The ofborg failure seems unrelated. Is master broken ?

@globin

This comment has been minimized.

Copy link
Member

globin commented Nov 23, 2018

@GrahamcOfBorg build rust-bindgen

@GrahamcOfBorg

This comment has been minimized.

Copy link

GrahamcOfBorg commented Nov 23, 2018

Failure on x86_64-darwin (full log)

Attempted: rust-bindgen

Partial log (click to expand)



error: aborting due to previous error

error: Could not compile `serde_derive`.

To learn more, run the command again with --verbose.
builder for '/nix/store/jlbsr8w0aymkl8w50h5xvicwp0fb1nr4-rustfmt-0.99.5.drv' failed with exit code 101
cannot build derivation '/nix/store/lhj64vpdyx00yvf5war5dfj9vgfib6zc-rust-bindgen-0.42.2.drv': 1 dependencies couldn't be built
error: build of '/nix/store/lhj64vpdyx00yvf5war5dfj9vgfib6zc-rust-bindgen-0.42.2.drv' failed

@GrahamcOfBorg

This comment has been minimized.

Copy link

GrahamcOfBorg commented Nov 23, 2018

Failure on x86_64-linux (full log)

Attempted: rust-bindgen

Partial log (click to expand)



failures:
    no_system_header_includes

test result: FAILED. 434 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out

error: test failed, to rerun pass '--test tests'
builder for '/nix/store/8mdy9bg9ck7xxqpg9x4vj21bz2sl455x-rust-bindgen-0.42.2.drv' failed with exit code 101
error: build of '/nix/store/8mdy9bg9ck7xxqpg9x4vj21bz2sl455x-rust-bindgen-0.42.2.drv' failed

@c0bw3b

This comment has been minimized.

Copy link
Contributor

c0bw3b commented Nov 23, 2018

(typo in your commit short message - rustmft instead of rustfmt)

@GrahamcOfBorg eval

@GrahamcOfBorg

This comment has been minimized.

Copy link

GrahamcOfBorg commented Nov 23, 2018

Failure on aarch64-linux (full log)

Attempted: rust-bindgen

Partial log (click to expand)



failures:
    no_system_header_includes

test result: FAILED. 434 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out

error: test failed, to rerun pass '--test tests'
builder for '/nix/store/s779vqq278pbciqg9gis6r08q0gqnma2-rust-bindgen-0.42.2.drv' failed with exit code 101
error: build of '/nix/store/s779vqq278pbciqg9gis6r08q0gqnma2-rust-bindgen-0.42.2.drv' failed

symphorien added some commits Nov 23, 2018

rustfmt: 0.9.0 -> 0.99.5
rustfmt 1.0 has been released, but requires a more recent rustc.
rust-bindgen: enable tests
now that we have a recent enough rustfmt

@symphorien symphorien force-pushed the symphorien:rustfmt branch to 1d63496 Nov 23, 2018

@symphorien

This comment has been minimized.

Copy link
Contributor Author

symphorien commented Nov 23, 2018

Sorry for the spurious review, I messed up my rebase.

  • typo fixed
  • bindgen test fixed with patchShebang
  • tentative fix for the darwin issue.
@globin

This comment has been minimized.

Copy link
Member

globin commented Nov 24, 2018

@GrahamcOfBorg build rust-bindgen

@GrahamcOfBorg

This comment has been minimized.

Copy link

GrahamcOfBorg commented Nov 24, 2018

Success on x86_64-linux (full log)

Attempted: rust-bindgen

Partial log (click to expand)

installing
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/11wq51mdisj2s23nqg0kwygn3caz2r87-rust-bindgen-0.42.2
shrinking /nix/store/11wq51mdisj2s23nqg0kwygn3caz2r87-rust-bindgen-0.42.2/bin/.bindgen-wrapped
strip is /nix/store/rpbg8gmqxhz8g61p1plz5d2srs84pvmv-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/11wq51mdisj2s23nqg0kwygn3caz2r87-rust-bindgen-0.42.2/bin
patching script interpreter paths in /nix/store/11wq51mdisj2s23nqg0kwygn3caz2r87-rust-bindgen-0.42.2
/nix/store/11wq51mdisj2s23nqg0kwygn3caz2r87-rust-bindgen-0.42.2/bin/bindgen: interpreter directive changed from "/usr/bin/env bash" to "/nix/store/n2hjbpkf4c0m48945ivxs3lmsczzw2rg-bash-4.4-p23/bin/bash"
checking for references to /build in /nix/store/11wq51mdisj2s23nqg0kwygn3caz2r87-rust-bindgen-0.42.2...
/nix/store/11wq51mdisj2s23nqg0kwygn3caz2r87-rust-bindgen-0.42.2

@GrahamcOfBorg

This comment has been minimized.

Copy link

GrahamcOfBorg commented Nov 24, 2018

Failure on x86_64-darwin (full log)

Attempted: rust-bindgen

Partial log (click to expand)



failures:
    src/ir/annotations.rs - ir::annotations::Annotations::use_instead_of (line 121)

test result: FAILED. 0 passed; 1 failed; 9 ignored; 0 measured; 0 filtered out

error: test failed, to rerun pass '--doc'
builder for '/nix/store/fd3hs67i2r291rms21arvxd64qa8h121-rust-bindgen-0.42.2.drv' failed with exit code 101
error: build of '/nix/store/fd3hs67i2r291rms21arvxd64qa8h121-rust-bindgen-0.42.2.drv' failed

@GrahamcOfBorg

This comment has been minimized.

Copy link

GrahamcOfBorg commented Nov 24, 2018

Success on aarch64-linux (full log)

Attempted: rust-bindgen

Partial log (click to expand)

installing
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/fky1yj12c9wg1x6fqnd2q4lyi8w7cwcy-rust-bindgen-0.42.2
shrinking /nix/store/fky1yj12c9wg1x6fqnd2q4lyi8w7cwcy-rust-bindgen-0.42.2/bin/.bindgen-wrapped
strip is /nix/store/6dpnd5aniypn8124mmy8f88s4mq2zl07-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/fky1yj12c9wg1x6fqnd2q4lyi8w7cwcy-rust-bindgen-0.42.2/bin
patching script interpreter paths in /nix/store/fky1yj12c9wg1x6fqnd2q4lyi8w7cwcy-rust-bindgen-0.42.2
/nix/store/fky1yj12c9wg1x6fqnd2q4lyi8w7cwcy-rust-bindgen-0.42.2/bin/bindgen: interpreter directive changed from "/usr/bin/env bash" to "/nix/store/n1kfdl37qpzh3xn6klbym1ay6xpxvmw1-bash-4.4-p23/bin/bash"
checking for references to /build in /nix/store/fky1yj12c9wg1x6fqnd2q4lyi8w7cwcy-rust-bindgen-0.42.2...
/nix/store/fky1yj12c9wg1x6fqnd2q4lyi8w7cwcy-rust-bindgen-0.42.2

@Mic92

This comment has been minimized.

Copy link
Contributor

Mic92 commented Nov 24, 2018

The rust error is hopefully fixed, when we merge: #50876

@edolstra

This comment has been minimized.

Copy link
Member

edolstra commented Jan 10, 2019

Merged, thanks.

@edolstra edolstra closed this Jan 10, 2019

@edolstra edolstra merged commit 1d63496 into NixOS:master Jan 10, 2019

9 checks passed

grahamcofborg-eval ^.^!
Details
grahamcofborg-eval-check-meta config.nix: checkMeta = true
Details
grahamcofborg-eval-nixos-manual nix-instantiate --arg nixpkgs { outPath=./.; revCount=999999; shortRev="ofborg"; } ./nixos/release.nix -A manual
Details
grahamcofborg-eval-nixos-options nix-instantiate --arg nixpkgs { outPath=./.; revCount=999999; shortRev="ofborg"; } ./nixos/release.nix -A options
Details
grahamcofborg-eval-nixpkgs-manual nix-instantiate --arg nixpkgs { outPath=./.; revCount=999999; shortRev="ofborg"; } ./pkgs/top-level/release.nix -A manual
Details
grahamcofborg-eval-nixpkgs-tarball nix-instantiate --arg nixpkgs { outPath=./.; revCount=999999; shortRev="ofborg"; } ./pkgs/top-level/release.nix -A tarball
Details
grahamcofborg-eval-nixpkgs-unstable-jobset nix-instantiate --arg nixpkgs { outPath=./.; revCount=999999; shortRev="ofborg"; } ./pkgs/top-level/release.nix -A unstable
Details
grahamcofborg-eval-package-list nix-env -qa --json --file .
Details
grahamcofborg-eval-package-list-no-aliases nix-env -qa --json --file . --arg config { allowAliases = false; }
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment