Skip to content

rust-cbindgen: disable tests#348935

Merged
emilazy merged 1 commit intoNixOS:staging-nextfrom
fabianhjr:cbindgen-disable-testing
Oct 16, 2024
Merged

rust-cbindgen: disable tests#348935
emilazy merged 1 commit intoNixOS:staging-nextfrom
fabianhjr:cbindgen-disable-testing

Conversation

@fabianhjr
Copy link
Copy Markdown
Member

@fabianhjr fabianhjr commented Oct 16, 2024

Targetting: #348827

currently fails with:

error: builder for '/nix/store/7g13ladvphijvrhswzl6zdwx373ks6ac-rust-cbindgen-0.27.0.drv' failed with exit code 101;
       last 25 log lines:
       >   left: ["release", "x86_64-unknown-linux-gnu"]
       >  right: ["release"]
       > note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
       >
       > ---- bin_explicit_debug_build stdout ----
       > thread 'bin_explicit_debug_build' panicked at tests/profile.rs:93:5:
       > assertion `left == right` failed
       >   left: ["debug", "x86_64-unknown-linux-gnu"]
       >  right: ["debug"]
       >
       > ---- bin_default_uses_debug_build stdout ----
       > thread 'bin_default_uses_debug_build' panicked at tests/profile.rs:87:5:
       > assertion `left == right` failed
       >   left: ["debug", "x86_64-unknown-linux-gnu"]
       >  right: ["debug"]
       >
       >
       > failures:
       >     bin_default_uses_debug_build
       >     bin_explicit_debug_build
       >     bin_explicit_release_build
       >
       > test result: FAILED. 0 passed; 3 failed; 0 ignored; 0 measured; 3 filtered out; finished in 0.42s
       >
       > error: test failed, to rerun pass `--test profile`
       For full logs, run 'nix log /nix/store/7g13ladvphijvrhswzl6zdwx373ks6ac-rust-cbindgen-0.27.0.drv'.

Related to: #348031

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.

currently fails with:

```
error: builder for '/nix/store/7g13ladvphijvrhswzl6zdwx373ks6ac-rust-cbindgen-0.27.0.drv' failed with exit code 101;
       last 25 log lines:
       >   left: ["release", "x86_64-unknown-linux-gnu"]
       >  right: ["release"]
       > note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
       >
       > ---- bin_explicit_debug_build stdout ----
       > thread 'bin_explicit_debug_build' panicked at tests/profile.rs:93:5:
       > assertion `left == right` failed
       >   left: ["debug", "x86_64-unknown-linux-gnu"]
       >  right: ["debug"]
       >
       > ---- bin_default_uses_debug_build stdout ----
       > thread 'bin_default_uses_debug_build' panicked at tests/profile.rs:87:5:
       > assertion `left == right` failed
       >   left: ["debug", "x86_64-unknown-linux-gnu"]
       >  right: ["debug"]
       >
       >
       > failures:
       >     bin_default_uses_debug_build
       >     bin_explicit_debug_build
       >     bin_explicit_release_build
       >
       > test result: FAILED. 0 passed; 3 failed; 0 ignored; 0 measured; 3 filtered out; finished in 0.42s
       >
       > error: test failed, to rerun pass `--test profile`
       For full logs, run 'nix log /nix/store/7g13ladvphijvrhswzl6zdwx373ks6ac-rust-cbindgen-0.27.0.drv'.
````

Related to: NixOS#348031
@fabianhjr fabianhjr requested review from emilazy and vcunat October 16, 2024 00:29
Copy link
Copy Markdown
Member

@emilazy emilazy left a comment

Choose a reason for hiding this comment

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

Seems like an acceptable stopgap while we wait for upstream to act.

@emilazy emilazy merged commit 2254408 into NixOS:staging-next Oct 16, 2024
@fabianhjr fabianhjr deleted the cbindgen-disable-testing branch October 16, 2024 01:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants