Skip to content

Error: unknown unstable option: profile running coverage report workflow #1075

Description

@josecelano
Run cargo check --tests --benches --examples --workspace --all-targets --all-features
error: failed to run `rustc` to learn about target-specific information

Caused by:
  process didn't exit successfully: `/home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/bin/rustc - --crate-name ___ --print=file-names -Z profile -C codegen-units=1 -C opt-level=0 -C link-dead-code -C overflow-checks=off -Z panic_abort_tests -C panic=abort --crate-type bin --crate-type rlib --crate-type dylib --crate-type cdylib --crate-type staticlib --crate-type proc-macro --print=sysroot --print=split-debuginfo --print=crate-name --print=cfg` (exit status: 1)
  --- stderr
  error: unknown unstable option: `profile`

Error: Process completed with exit code 101.

Activity

  1. added
    Bug
    Continuous Integration
    - Developer -
    on Nov 5, 2024
  2. self-assigned this
    on Nov 5, 2024
  3. josecelano commented on Nov 5, 2024

    @josecelano
    MemberAuthor

    The Rust flag profile was removed:

    Now we have to generate the coverage report with "source-based coverage"

    mozilla/grcov#1240 (comment)

    I don't know how to use the alekitto/[email protected] action to generate the "source-based coverage". The actions doesn't look active. I think it's not possible.

    I've tried to generate the report manually without using the alekitto/[email protected] action.

    I have generated the report with:

    cargo llvm-cov --lcov --output-path=./.coverage/lcov.info

    And then, I've tried to upload it with codecov/codecov-action@v4 action, but it doesn't work, the action didn't complain but there is no coverage info on codecov

    image

  4. josecelano commented on Nov 13, 2024

    @josecelano
    MemberAuthor

    We have to change the way we generate the coverage report. I have created a sample project: codecov/codecov-action#1508 (comment)

    cc @da2ce7

  5. josecelano commented on Nov 13, 2024

    @josecelano
    MemberAuthor

    We have to change the way we generate the coverage report. I have created a sample project: codecov/codecov-action#1508 (comment)

    cc @da2ce7

    The example repo: https://github.com/josecelano-test/pull_request_target

  6. added 3 commits that reference this issue on Nov 15, 2024
  7. linked a pull request that will close this issueFix coverage report workflow #1086on Nov 15, 2024
  8. added 3 commits that reference this issue on Nov 15, 2024
  9. josecelano commented on Nov 15, 2024

    @josecelano
    MemberAuthor

    The new workflow only works for PRs. I have to recover the previous version for push events.

  10. linked a pull request that will close this issueAdd coverage report for push event #1088on Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

- Developer -BugContinuous Integration

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions