Skip to content

Add SonarCloud coverage workflow#21

Merged
dodok8 merged 1 commit into
mainfrom
codex/add-sonarcloud-coverage
Jun 16, 2026
Merged

Add SonarCloud coverage workflow#21
dodok8 merged 1 commit into
mainfrom
codex/add-sonarcloud-coverage

Conversation

@dodok8

@dodok8 dodok8 commented Jun 15, 2026

Copy link
Copy Markdown
Collaborator

Summary

Add SonarCloud CI support for Rust LCOV coverage reporting.

Closes #20

Scope

  • .github/workflows/sonarcloud.yml
  • sonar-project.properties

Spec and plan alignment

List the spec/ and plan/ files checked for this change. If the change
intentionally diverges from them, explain why and include the required document
update in this pull request.

  • Checked plan/cli-and-tooling-plan.md because this is CI/tooling work.
  • No spec/ files are changed or affected. This PR does not change query, schema, IR, SQLite planning, SQL generation, or runtime semantics.

Tests

List the automated and manual checks performed.

  • cargo test --workspace
    • Current default parallel execution fails in existing tests/query-pipeline integration tests because multiple tests share temporary schema file paths. This PR does not change those tests, but the default command is not green at the moment.
  • Other: cargo test --workspace -- --test-threads=1
  • Other: Verified local cargo llvm-cov is not installed; the workflow installs it with taiki-e/install-action@cargo-llvm-cov before generating target/llvm-cov/lcov.info.

Review notes

Call out API boundaries, temporary rules, migration concerns, or follow-up work
that reviewers should inspect closely.

  • The workflow skips SonarCloud scanning when SONAR_TOKEN is missing.
  • The job is skipped for fork pull requests so missing repository secrets do not fail external PRs.
  • Coverage generation passes -- --test-threads=1 to avoid the current shared temporary file conflict in query-pipeline integration tests.
  • Reviewers should confirm that sonar.projectKey=gelite-dev_gelite and sonar.organization=gelite-dev match the SonarCloud project created for this repository.

AI assistance

Disclose AI tool usage according to AI_POLICY.md.

  • No AI tools were used.
  • AI tools were used and are disclosed here and in the relevant commit
    messages with Assisted-by trailers.

Tools and models:

  • Codex:gpt-5.5

Add a GitHub Actions workflow that generates Rust LCOV coverage with cargo-llvm-cov and submits it to SonarCloud when SONAR_TOKEN is available.

Configure the SonarCloud project key, organization, source paths, test paths, and Rust LCOV report path.

Assisted-by: Codex:gpt-5.5
@dodok8 dodok8 changed the title [codex] Add SonarCloud coverage workflow Add SonarCloud coverage workflow Jun 15, 2026
@sonarqubecloud

Copy link
Copy Markdown

@dodok8 dodok8 merged commit 1f96629 into main Jun 16, 2026
2 checks passed
@dodok8 dodok8 deleted the codex/add-sonarcloud-coverage branch June 16, 2026 07:28
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.

feat: add lcov coverage and SonarCloud scanning

1 participant