From 3b684b1e024bbd0611d80fdba3158c0d083043ad Mon Sep 17 00:00:00 2001
From: Hubert Bugaj
Date: Tue, 9 Dec 2025 18:32:27 +0100
Subject: [PATCH 1/2] chore: resurrect codecov reports
---
.github/codecov.yml | 14 +++++++
.github/workflows/coverage.yml | 71 ++++++++++++++++++++++++++++++++++
README.md | 2 +-
3 files changed, 86 insertions(+), 1 deletion(-)
create mode 100644 .github/codecov.yml
create mode 100644 .github/workflows/coverage.yml
diff --git a/.github/codecov.yml b/.github/codecov.yml
new file mode 100644
index 000000000000..3313b5533f98
--- /dev/null
+++ b/.github/codecov.yml
@@ -0,0 +1,14 @@
+codecov:
+ require_ci_to_pass: false
+comment: true
+coverage:
+ status:
+ patch:
+ default:
+ informational: true
+ project:
+ default:
+ informational: true
+ threshold: 1.0
+github_checks:
+ annotations: false
diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml
new file mode 100644
index 000000000000..af5cfa2c1e9a
--- /dev/null
+++ b/.github/workflows/coverage.yml
@@ -0,0 +1,71 @@
+name: Code coverage
+
+# Cancel workflow if there is a new change to the branch.
+concurrency:
+ group: ${{ github.workflow }}-${{ github.ref }}
+ cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
+
+on:
+ workflow_dispatch:
+ merge_group:
+ pull_request:
+ branches:
+ - main
+ # This needs to be declared explicitly so that the job is actually
+ # run when moved out of draft.
+ types: [opened, synchronize, reopened, ready_for_review]
+ paths-ignore:
+ - "docs/**"
+ - ".github/workflows/docs-*.yml"
+ push:
+ branches:
+ - main
+ paths-ignore:
+ - "docs/**"
+ - ".github/workflows/docs-*.yml"
+
+env:
+ CI: 1
+ CARGO_INCREMENTAL: 0
+ CACHE_TIMEOUT_MINUTES: 5
+ RUSTC_WRAPPER: sccache
+ CC: sccache clang
+ CXX: sccache clang++
+
+jobs:
+ codecov:
+ name: Coverage
+ if: github.event.pull_request.draft == false
+ runs-on: buildjet-4vcpu-ubuntu-2204
+ timeout-minutes: 45
+ steps:
+ - uses: actions/checkout@v6
+ - name: Setup sccache
+ uses: mozilla-actions/sccache-action@v0.0.9
+ timeout-minutes: ${{ fromJSON(env.CACHE_TIMEOUT_MINUTES) }}
+ continue-on-error: true
+ - uses: actions/setup-go@v6
+ with:
+ go-version-file: "go.work"
+ - uses: taiki-e/install-action@cargo-llvm-cov
+ - uses: taiki-e/install-action@nextest
+ - name: Generate code coverage
+ run: |
+ cargo llvm-cov --workspace --codecov --output-path lcov.info nextest
+ env:
+ CC: "sccache clang"
+ CXX: "sccache clang++"
+ # To minimize compile times: https://nnethercote.github.io/perf-book/build-configuration.html#minimizing-compile-times
+ RUSTFLAGS: "-C linker=clang -C link-arg=-fuse-ld=lld"
+ # Save lcov.info as an artifact for debugging purposes
+ - uses: actions/upload-artifact@v4
+ with:
+ name: lcov.info
+ path: lcov.info
+ if-no-files-found: error
+ - name: Upload CodeCov
+ uses: codecov/codecov-action@v3
+ with:
+ token: ${{ secrets.CODECOV_TOKEN }}
+ files: lcov.info
+ fail_ci_if_error: true
diff --git a/README.md b/README.md
index d16c5dfd017a..8ae3bfddbdb7 100644
--- a/README.md
+++ b/README.md
@@ -3,9 +3,9 @@
-
+
From 50216ca504fee3896a678392785a0809ae6dc880 Mon Sep 17 00:00:00 2001
From: Hubert
Date: Wed, 10 Dec 2025 15:00:36 +0100
Subject: [PATCH 2/2] Update README.md
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 8ae3bfddbdb7..412a6a3c6b2c 100644
--- a/README.md
+++ b/README.md
@@ -5,7 +5,7 @@
-
+