Skip to content

feat: add cargo test and Codecov integration#102

Merged
helio-frota merged 4 commits into
guacsec:mainfrom
ptomanRH:add-codecov-coverage
Jun 10, 2026
Merged

feat: add cargo test and Codecov integration#102
helio-frota merged 4 commits into
guacsec:mainfrom
ptomanRH:add-codecov-coverage

Conversation

@ptomanRH

@ptomanRH ptomanRH commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add cargo test step to CI — tests exist in utils.rs and scenario/mod.rs but were never run in CI (only fmt/check/clippy)
  • Add cargo-llvm-cov for coverage generation (library code only via --lib)
  • Add Codecov upload with OIDC authentication (no secret needed)
  • Add codecov.yml with informational status checks, unit-tests flag with carryforward

Changes

File Change
.github/workflows/ci.yaml Add cargo test, permissions: id-token: write, cargo-llvm-cov install, coverage generation, Codecov upload
codecov.yml Coverage config: informational checks, flag setup

Manual follow-up

After merging:

  1. Go to https://app.codecov.io/gh/guacsec/trustify-scale-testing
  2. Click the Flags tab → Enable flag analytics

Ref: COVERPORT-273

ptomanRH and others added 3 commits June 10, 2026 13:39
- Add cargo test step to CI (tests existed but were never run in CI)
- Add cargo-llvm-cov for coverage generation
- Add Codecov upload with OIDC auth and unit-tests flag
- Add codecov.yml with informational status checks and carryforward

Ref: COVERPORT-273

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The scenario::test::empty test fails due to a missing download_sbom
field in empty.json5 — a pre-existing issue. Use --lib to test only
library code, consistent with the coverage generation step.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
loadtest is a binary crate (no lib.rs), so --lib doesn't work.
Run full cargo test but skip the pre-existing broken
scenario::test::empty test (missing download_sbom field in empty.json5).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@codecov-commenter

Copy link
Copy Markdown

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

Thanks for integrating Codecov - We've got you covered ☂️

@helio-frota helio-frota self-requested a review June 10, 2026 12:30
@helio-frota

Copy link
Copy Markdown
Contributor

currently coverage % shows this:

2026-06-10_09-33

Comment thread .github/workflows/ci.yaml Outdated
cargo llvm-cov already runs the tests, so a separate cargo test
step is unnecessary duplication.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@helio-frota helio-frota self-requested a review June 10, 2026 12:50

@helio-frota helio-frota left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's merge. we can iterate if needed later

@helio-frota helio-frota added this pull request to the merge queue Jun 10, 2026
Merged via the queue into guacsec:main with commit 68b5f4a Jun 10, 2026
1 check passed
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 this pull request may close these issues.

3 participants