Skip to content

tonic-health fails to build when RUSTFLAGS="-Cpanic=abort" #496

Closed
@BenChand

Description

@BenChand

Bug Report

Version

tonic-health v0.2.0
└── tonic-build v0.3.1

Platform

Linux ben-XPS-13-9380 5.4.0-52-generic #57-Ubuntu SMP Thu Oct 15 10:57:00 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

Crates

tonic-health="0.2"

Description

  1. Clone this repository

  2. export RUSTFLAGS="-Cpanic=abort"

  3. cd tonic-health

  4. cargo build

Cargo build fails and results in the following error:

error: failed to run custom build command for `tonic-health v0.2.0 (/home/ben/tonic/tonic-health)`

Caused by:
  process didn't exit successfully: `/home/ben/tonic/target/debug/build/tonic-health-667a60089c432488/build-script-build` (signal: 6, SIGABRT: process abort signal)

The requirement for using the -Cpanic=abort flag is for code coverage. See https://github.com/mozilla/grcov. To get the correct coverage level, we need to compile our project with this flag, but tonic-health prevents this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions