question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cargo builds on macOS runners have ephemeral failures

See original GitHub issue

I have a question about running Cargo builds on macOS, and I was wondering if someone might know the answer.

We’ve been experience flaky builds (https://github.com/unicode-org/icu4x/issues/201) caused by ephemeral build errors that appear to have started showing up all of a sudden on a few PRs.

The error message in the log mentions error[E0463]: can't find crate for serde_derive which serde depends on, and when I looked through https://github.com/serde-rs/serde/issues/856 and similar issues (and verified the transitive dependencies’ versions of serde used, using cargo-tree), I don’t see the same serde version conflict problems that were described. And either way, I don’t think that would explain the ephemeral nature.

One possible theory is that it might relate to this issue from 3 years ago of cargo build failing on macOS due to linking issues when dependencies are added (https://github.com/rust-lang/cargo/issues/4775). I don’t know if that is still relevant to cargo builds. The GH builds that use the GH caching action (thereby retrieving cargo crate cache) are the ones that seem to fail ephemerally (ex1, ex2). The tests run after I turned off the GH caching action seem to pass (ex1, ex2). And FWIW, in my personal fork, even when I leave the GH cache action on, the builds pass (ex1, ex2).

Any pointers or suggestions would be appreciated, thanks.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
lilithcommented, Dec 8, 2020

It sounds like this is related to needing GNU tar instead of BSD tar on OS X- https://github.com/actions/cache/issues/403

0reactions
lilithcommented, Dec 8, 2020

I think we’re encountering this too with https://github.com/imazen/imageflow

We have a large build and caching is really important. Has anyone figured out how to fix it?

Read more comments on GitHub >

github_iconTop Results From Across the Web

SaaS runners on macOS (Beta) - GitLab Docs
SaaS runners on macOS provide an on-demand macOS build environment integrated with GitLab SaaS CI/CD. Use these runners to build, test, and deploy...
Read more >
Nixpkgs 22.11 manual - NixOS
Nix expressions describe how to build packages from source and are collected in the nixpkgs repository. Also included in the collection are Nix...
Read more >
building for macos-arm64 but attempting to link with file built for ...
Of course it fails cause you're NOT on an arm machine at all. Change your build settings and stop building your project for...
Read more >
Known Exploited Vulnerabilities Catalog | CISA
This vulnerability affects Cisco ASA Software and Cisco Firepower Threat Defense (FTD) Software that is running on the following Cisco products: 3000 Series ......
Read more >
Building a Standalone Rust Binary for a Scratch Docker ...
In other words, only Rust dependencies get statically linked by default; ... it on macOS X Mojave, I can give just the opaque...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found