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

Intermittent failure on MacOS building for clippy --all-features -- -D warnings #227

Open
jayvdb opened this issue Mar 26, 2024 · 4 comments

Comments

@jayvdb
Copy link
Collaborator

jayvdb commented Mar 26, 2024

I am pretty sure I saw this recently, and now again https://github.com/Electron100/butane/actions/runs/8432584319/job/23091944587?pr=223

   Generated /Users/runner/work/butane/butane/target/doc/butane/index.html and 6 other files
cargo +stable clippy --all-features -- -D warnings
    Checking butane_core v0.6.1 (/Users/runner/work/butane/butane/butane_core)
   Compiling butane v0.6.1 (/Users/runner/work/butane/butane/butane)
   Compiling example v0.1.0 (/Users/runner/work/butane/butane/example)
    Checking butane_codegen v0.6.1 (/Users/runner/work/butane/butane/butane_codegen)
error: could not compile `butane_codegen` (lib)

Caused by:
  process didn't exit successfully: `/Users/runner/.rustup/toolchains/stable-x86_64-apple-darwin/bin/clippy-driver /Users/runner/.rustup/toolchains/stable-x86_64-apple-darwin/bin/rustc --crate-name butane_codegen --edition=2021 butane_codegen/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type proc-macro --emit=dep-info,metadata -C prefer-dynamic -C embed-bitcode=no --cfg 'feature="datetime"' --cfg 'feature="json"' --cfg 'feature="uuid"' -C metadata=b2998384337eeebb -C extra-filename=-b2998384337eeebb --out-dir /Users/runner/work/butane/butane/target/debug/deps -C strip=debuginfo -L dependency=/Users/runner/work/butane/butane/target/debug/deps --extern butane_core=/Users/runner/work/butane/butane/target/debug/deps/libbutane_core-06f176cb5efbe978.rmeta --extern proc_macro2=/Users/runner/work/butane/butane/target/debug/deps/libproc_macro2-488748b65e6005e1.rmeta --extern quote=/Users/runner/work/butane/butane/target/debug/deps/libquote-2466d2e89b984c2e.rmeta --extern syn=/Users/runner/work/butane/butane/target/debug/deps/libsyn-5199a5c49da696e5.rmeta --extern proc_macro -D warnings` (signal: 6, SIGABRT: process abort signal)
warning: build failed, waiting for other jobs to finish...
make: *** [lint] Error 101
@Electron100
Copy link
Owner

I saw it too. Almost certainly a bug in Clippy/Rust rather than our bug.
I suppose I should figure out whether there's any way to enable core dumps on the Github runners to get something that would make an actionable bug report. I don't have any Mac hardware to attempt a local repro I'm afraid.

@jayvdb
Copy link
Collaborator Author

jayvdb commented Apr 20, 2024

It is still quite common.
https://github.com/Electron100/butane/actions/runs/8762148379/job/24049541255 is the latest.

I wonder if we should move lint to after build, in order to help determine where the bug is.

@jayvdb jayvdb changed the title Intermittent failure building on MacOS Intermittent failure on MacOS building for clippy --all-features -- -D warnings Apr 20, 2024
@jayvdb
Copy link
Collaborator Author

jayvdb commented Apr 20, 2024

It might be worth seeing if this is happening in other projects. I checked a few macos workflows & PRs in https://github.com/diesel-rs/diesel/actions and they seem to not be having these failures, or not mentioning it on PRs which seems unlikely.

Anyways, #255 passed at https://github.com/jayvdb/butane/actions/runs/8763613341 , and then on the PR, and again on main. Not bad. If it stops happening now, perhaps it is Rust on a specific version of macos.

@jayvdb
Copy link
Collaborator Author

jayvdb commented Apr 20, 2024

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

No branches or pull requests

2 participants