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

The compilation fails with current beta compiler #113

Closed
github-actions bot opened this issue Dec 22, 2024 · 1 comment · Fixed by #114
Closed

The compilation fails with current beta compiler #113

github-actions bot opened this issue Dec 22, 2024 · 1 comment · Fixed by #114

Comments

@github-actions
Copy link

Hello, I have detected, that this repository does not work with the current beta compiler.

It looks like, there were changes introduced, that broke this repository. The error was:

    Updating crates.io index
 Downloading crates ...
  Downloaded autocfg v1.3.0
  Downloaded normalize-line-endings v0.3.0
  Downloaded doc-comment v0.3.3
  Downloaded unicode-linebreak v0.1.5
  Downloaded termtree v0.2.4
  Downloaded float-cmp v0.9.0
  Downloaded serde-xml-rs v0.5.1
  Downloaded wait-timeout v0.2.0
  Downloaded thiserror v1.0.39
  Downloaded xml-rs v0.8.20
  Downloaded unicode-ident v1.0.13
  Downloaded serde v1.0.147
  Downloaded textwrap v0.14.2
  Downloaded regex-automata v0.1.10
  Downloaded itertools v0.10.5
  Downloaded aho-corasick v0.7.20
  Downloaded memchr v2.5.0
  Downloaded log v0.4.18
  Downloaded unicode-width v0.1.12
  Downloaded syn v1.0.109
  Downloaded regex v1.7.3
  Downloaded bstr v0.2.17
  Downloaded serde_derive v1.0.147
  Downloaded regex-syntax v0.6.29
  Downloaded rustix v0.37.27
  Downloaded proc-macro2 v1.0.86
  Downloaded num-traits v0.2.18
  Downloaded difflib v0.4.0
  Downloaded io-lifetimes v1.0.11
  Downloaded colored v1.9.4
  Downloaded thiserror-impl v1.0.39
  Downloaded terminal_size v0.1.17
  Downloaded smawk v0.3.2
  Downloaded quote v1.0.37
  Downloaded lazy_static v1.5.0
  Downloaded is-terminal v0.4.7
  Downloaded assert_cmd v2.0.5
  Downloaded predicates-tree v1.0.5
  Downloaded predicates-core v1.0.3
  Downloaded predicates v2.1.1
  Downloaded either v1.13.0
  Downloaded bytesize v1.1.0
  Downloaded bitflags v1.3.2
  Downloaded libc v0.2.158
  Downloaded linux-raw-sys v0.3.8
   Compiling libc v0.2.158
   Compiling proc-macro2 v1.0.86
   Compiling unicode-ident v1.0.13
   Compiling syn v1.0.109
   Compiling memchr v2.5.0
   Compiling io-lifetimes v1.0.11
   Compiling autocfg v1.3.0
   Compiling num-traits v0.2.18
   Compiling quote v1.0.37
   Compiling rustix v0.37.27
   Compiling serde_derive v1.0.147
   Compiling thiserror v1.0.39
   Compiling log v0.4.18
   Compiling linux-raw-sys v0.3.8
   Compiling lazy_static v1.5.0
   Compiling serde v1.0.147
   Compiling bitflags v1.3.2
   Compiling aho-corasick v0.7.20
   Compiling doc-comment v0.3.3
   Compiling either v1.13.0
   Compiling regex-syntax v0.6.29
   Compiling predicates-core v1.0.3
   Compiling thiserror-impl v1.0.39
   Compiling is-terminal v0.4.7
   Compiling itertools v0.10.5
   Compiling regex v1.7.3
   Compiling float-cmp v0.9.0
   Compiling terminal_size v0.1.17
   Compiling difflib v0.4.0
   Compiling smawk v0.3.2
   Compiling xml-rs v0.8.20
   Compiling unicode-linebreak v0.1.5
   Compiling normalize-line-endings v0.3.0
   Compiling regex-automata v0.1.10
   Compiling termtree v0.2.4
   Compiling unicode-width v0.1.12
   Compiling textwrap v0.14.2
   Compiling predicates-tree v1.0.5
   Compiling bstr v0.2.17
   Compiling predicates v2.1.1
   Compiling colored v1.9.4
   Compiling wait-timeout v0.2.0
   Compiling bytesize v1.1.0
   Compiling assert_cmd v2.0.5
   Compiling serde-xml-rs v0.5.1
   Compiling cargo-valgrind v2.2.1 (/home/runner/work/cargo-valgrind/cargo-valgrind)
    Finished `test` profile [unoptimized + debuginfo] target(s) in 11.83s
     Running unittests src/main.rs (target/debug/deps/cargo_valgrind-f6179bc77d3ff919)

running 6 tests
test valgrind::xml::tests::invalid_hex_digits_are_an_error ... ok
test valgrind::xml::tests::missing_hex_prefix_is_an_error ... ok
test valgrind::xml::tests::hex_and_prefix_case_is_ignored ... ok
test valgrind::xml::tests::unique_id_is_64bit ... ok
test valgrind::xml::tests::unique_ids_have_to_be_in_hex_with_prefix ... ok
test valgrind::xml::tests::sample_output ... ok

test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s

     Running tests/cli.rs (target/debug/deps/cli-5b01a9654b24aabe)

running 4 tests
test help_is_supported ... ok
test tests_are_runnable ... FAILED
test leak_detected ... ok
test examples_are_runnable ... FAILED

failures:

---- tests_are_runnable stdout ----
thread 'tests_are_runnable' panicked at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/ops/function.rs:250:5:
Unexpected failure.
code-200
stderr=```"   Compiling ffi-bug v0.0.0 (/home/runner/work/cargo-valgrind/cargo-valgrind/tests/ffi-bug)\n    Finished `test` profile [unoptimized + debuginfo] target(s) in 0.24s\n     Running unittests src/main.rs (tests/ffi-bug/target/debug/deps/ffi_bug-8732476416af301f)\nerror: valgrind executable not found\nerror: test failed, to rerun pass `--bin ffi-bug`\n\nCaused by:\n  process didn\'t exit successfully: `/home/runner/work/cargo-valgrind/cargo-valgrind/target/debug/cargo-valgrind /home/runner/work/cargo-valgrind/cargo-valgrind/tests/ffi-bug/target/debug/deps/ffi_bug-8732476416af301f` (exit status: 1)\nnote: test exited abnormally; to see the full output pass --nocapture to the harness.\n"```
command=`"/home/runner/work/cargo-valgrind/cargo-valgrind/target/debug/cargo-valgrind" "valgrind" "test" "--manifest-path" "tests/ffi-bug/Cargo.toml"`
code=200
stdout=""
stderr="   Compiling ffi-bug v0.0.0 (/home/runner/work/cargo-valgrind/cargo-valgrind/tests/ffi-bug)\n    Finished `test` profile [unoptimized + debuginfo] target(s) in 0.24s\n     Running unittests src/main.rs (tests/ffi-bug/target/debug/deps/ffi_bug-8732476416af301f)\nerror: valgrind executable not found\nerror: test failed, to rerun pass `--bin ffi-bug`\n\nCaused by:\n  process didn\'t exit successfully: `/home/runner/work/cargo-valgrind/cargo-valgrind/target/debug/cargo-valgrind /home/runner/work/cargo-valgrind/cargo-valgrind/tests/ffi-bug/target/debug/deps/ffi_bug-8732476416af301f` (exit status: 1)\nnote: test exited abnormally; to see the full output pass --nocapture to the harness.\n"

note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

---- examples_are_runnable stdout ----
thread 'examples_are_runnable' panicked at /rustc/202008a1b8de96d2e5b6bc02d379db03a877d34d/library/core/src/ops/function.rs:250:5:
Unexpected failure.
code-200
stderr=```"    Blocking waiting for file lock on build directory\n    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.37s\n     Running `/home/runner/work/cargo-valgrind/cargo-valgrind/target/debug/cargo-valgrind tests/ffi-bug/target/debug/examples/no-leak`\nerror: valgrind executable not found\n"```
command=`"/home/runner/work/cargo-valgrind/cargo-valgrind/target/debug/cargo-valgrind" "valgrind" "run" "--example" "no-leak" "--manifest-path" "tests/ffi-bug/Cargo.toml"`
code=200
stdout=""
stderr="    Blocking waiting for file lock on build directory\n    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.37s\n     Running `/home/runner/work/cargo-valgrind/cargo-valgrind/target/debug/cargo-valgrind tests/ffi-bug/target/debug/examples/no-leak`\nerror: valgrind executable not found\n"



failures:
    examples_are_runnable
    tests_are_runnable

test result: FAILED. 2 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.46s

error: test failed, to rerun pass `--test cli`

Please take actions to fix this before the behavior reaches stable.

@jfrimmel
Copy link
Owner

Compilation is okay, but valgrind is missing in the CI environment. The beta.yml needs to be updated to install valgrind like it's done for the test job:

- name: Install valgrind
run: sudo apt install valgrind

jfrimmel added a commit that referenced this issue Dec 22, 2024
Without valgrind installed, executing the tests will obviously fail, so
the first (any up to now only) run of the [workflow] created issue #113
due to test failures caused by missing valgrind.

[workflow]: https://github.com/jfrimmel/cargo-valgrind/actions/runs/12452939892/job/34762500879
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 a pull request may close this issue.

1 participant