Skip to content

chore: bump version to 9.11.2 (#4909) #14693

chore: bump version to 9.11.2 (#4909)

chore: bump version to 9.11.2 (#4909) #14693

name: Coverage
on:
push:
branches:
- master
- 'releases/**'
pull_request:
branches:
- '*'
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.sha }}
cancel-in-progress: true
jobs:
upload:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
submodules: false
- name: Init submodules with retry
shell: bash
run: |
for attempt in 1 2 3 4 5; do
if git submodule update --init --recursive; then
echo "Submodule init succeeded on attempt $attempt"
exit 0
fi
echo "Attempt $attempt failed, retrying in 15s..."
sleep 15
done
echo "Submodule init failed after 5 attempts"
exit 1
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y ninja-build lcov flatbuffers-compiler libflatbuffers-dev
- name: Build with coverage C++
run: ./.scripts/linux/build-with-coverage.sh
- name: Test with coverage C++
run: ./.scripts/linux/test-with-coverage.sh
- name: Generate lcov report
run: |
lcov --capture --directory build --output-file coverage.info \
--include '*/vowpalwabbit/*' \
--exclude '*/tests/*' --exclude '*/test/*' --exclude '*/ext_libs/*' \
--ignore-errors unused
lcov --summary coverage.info
- name: Upload coverage artifact
uses: actions/upload-artifact@v4
with:
name: lcov-coverage-report
path: coverage.info
retention-days: 7
- name: Upload to codecov.io
uses: codecov/codecov-action@v5
with:
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}