g3/.github/workflows/codecov.yml
dependabot[bot] 8e9a7b72dc
Some checks failed
MacOS-CI / Build vendored-8 (push) Has been cancelled
MacOS-CI / Build vendored-9 (push) Has been cancelled
MacOS-CI / Build vendored-10 (push) Has been cancelled
Linux-CI / Build vendored-24 (push) Has been cancelled
MacOS-CI / Build vendored-3 (push) Has been cancelled
MacOS-CI / Build vendored-4 (push) Has been cancelled
MacOS-CI / Build vendored-5 (push) Has been cancelled
MacOS-CI / Build vendored-6 (push) Has been cancelled
MacOS-CI / Build vendored-7 (push) Has been cancelled
Linux-CI / Build vendored-23 (push) Has been cancelled
MacOS-CI / Build vendored-12 (push) Has been cancelled
MacOS-CI / Build vendored-13 (push) Has been cancelled
MacOS-CI / Build vendored-14 (push) Has been cancelled
MacOS-CI / Build vendored-15 (push) Has been cancelled
MacOS-CI / Build vendored-16 (push) Has been cancelled
MacOS-CI / Build vendored-17 (push) Has been cancelled
MacOS-CI / Build vendored-18 (push) Has been cancelled
MacOS-CI / Build vendored-11 (push) Has been cancelled
MacOS-CI / Build vendored-19 (push) Has been cancelled
MacOS-CI / Build vendored-21 (push) Has been cancelled
StaticLinking / msvc-vendored-3 (push) Has been cancelled
Windows-CI / Build (push) Has been cancelled
CrossCompiling / Build-6 (push) Has been cancelled
CrossCompiling / Build-7 (push) Has been cancelled
CrossCompiling / Build-8 (push) Has been cancelled
CrossCompiling / Build-9 (push) Has been cancelled
Linux-CI / Build (push) Has been cancelled
Linux-CI / Build-1 (push) Has been cancelled
Linux-CI / Build-2 (push) Has been cancelled
Linux-CI / Build-3 (push) Has been cancelled
Linux-CI / Clippy (push) Has been cancelled
MacOS-CI / Build vendored-20 (push) Has been cancelled
Linux-CI / Build vendored-17 (push) Has been cancelled
Linux-CI / Build vendored-18 (push) Has been cancelled
MacOS-CI / Build vendored-22 (push) Has been cancelled
MacOS-CI / Build vendored-23 (push) Has been cancelled
MacOS-CI / Build vendored-24 (push) Has been cancelled
StaticLinking / musl (push) Has been cancelled
StaticLinking / musl-1 (push) Has been cancelled
StaticLinking / msvc-vcpkg (push) Has been cancelled
StaticLinking / msvc-vendored (push) Has been cancelled
Linux-CI / Build vendored-16 (push) Has been cancelled
StaticLinking / msvc-vendored-1 (push) Has been cancelled
StaticLinking / msvc-vendored-2 (push) Has been cancelled
Linux-CI / Build vendored-19 (push) Has been cancelled
Linux-CI / Build vendored-22 (push) Has been cancelled
Linux-CI / Build vendored-20 (push) Has been cancelled
Linux-CI / Build vendored-21 (push) Has been cancelled
CodeCoverage / g3bench test (push) Has been cancelled
CodeCoverage / g3statsd test (push) Has been cancelled
CodeQL Advanced / Analyze (actions) (push) Has been cancelled
CodeQL Advanced / Analyze (java-kotlin) (push) Has been cancelled
CodeQL Advanced / Analyze (python) (push) Has been cancelled
CodeQL Advanced / Analyze (rust) (push) Has been cancelled
CrossCompiling / Build (push) Has been cancelled
CrossCompiling / Build-1 (push) Has been cancelled
CrossCompiling / Build-2 (push) Has been cancelled
CrossCompiling / Build-3 (push) Has been cancelled
CrossCompiling / Build-4 (push) Has been cancelled
CrossCompiling / Build-5 (push) Has been cancelled
CodeCoverage / lib unit test (push) Has been cancelled
CodeCoverage / g3mkcert test (push) Has been cancelled
CodeCoverage / g3keymess test (push) Has been cancelled
CodeCoverage / g3proxy test (push) Has been cancelled
Linux-CI / Build vendored (push) Has been cancelled
Linux-CI / Build vendored-1 (push) Has been cancelled
Linux-CI / Build vendored-2 (push) Has been cancelled
Linux-CI / Build vendored-3 (push) Has been cancelled
Linux-CI / Build vendored-4 (push) Has been cancelled
Linux-CI / Build vendored-5 (push) Has been cancelled
Linux-CI / Build vendored-6 (push) Has been cancelled
Linux-CI / Build vendored-7 (push) Has been cancelled
Linux-CI / Build vendored-8 (push) Has been cancelled
Linux-CI / Build vendored-9 (push) Has been cancelled
Linux-CI / Build vendored-10 (push) Has been cancelled
Linux-CI / Build vendored-11 (push) Has been cancelled
Linux-CI / Build vendored-12 (push) Has been cancelled
Linux-CI / Build vendored-13 (push) Has been cancelled
Linux-CI / Build vendored-14 (push) Has been cancelled
Linux-CI / Build vendored-15 (push) Has been cancelled
Linux-CI / Build vendored-25 (push) Has been cancelled
Linux-CI / Build vendored-26 (push) Has been cancelled
Linux-CI / Build vendored-27 (push) Has been cancelled
Linux-CI / Build vendored-28 (push) Has been cancelled
Linux-CI / Build vendored-29 (push) Has been cancelled
Linux-CI / Build vendored-30 (push) Has been cancelled
Linux-CI / Build with OpenSSL Async Job (push) Has been cancelled
Linux-CI / Build with OpenSSL Async Job-1 (push) Has been cancelled
MacOS-CI / Build (push) Has been cancelled
MacOS-CI / Build vendored (push) Has been cancelled
MacOS-CI / Build vendored-1 (push) Has been cancelled
MacOS-CI / Build vendored-2 (push) Has been cancelled
Windows-CI / Build vendored (push) Has been cancelled
Windows-CI / Build vendored-1 (push) Has been cancelled
Windows-CI / Build vendored-2 (push) Has been cancelled
Windows-CI / Build vendored-3 (push) Has been cancelled
Windows-CI / Build vendored-4 (push) Has been cancelled
Windows-CI / Build vendored-5 (push) Has been cancelled
Windows-CI / Build vendored-6 (push) Has been cancelled
Windows-CI / Build vendored-7 (push) Has been cancelled
Windows-CI / Build vendored-8 (push) Has been cancelled
Windows-CI / Build vendored-9 (push) Has been cancelled
Windows-CI / Build vendored-10 (push) Has been cancelled
Windows-CI / Build vendored-11 (push) Has been cancelled
Windows-CI / Build vendored-12 (push) Has been cancelled
Windows-CI / Build vendored-13 (push) Has been cancelled
Windows-CI / Build vendored-14 (push) Has been cancelled
Windows-CI / Build vendored-15 (push) Has been cancelled
Windows-CI / Build vendored-16 (push) Has been cancelled
Windows-CI / Build vendored-17 (push) Has been cancelled
Windows-CI / Build vendored-18 (push) Has been cancelled
Windows-CI / Build vendored-19 (push) Has been cancelled
Windows-CI / Build vendored-20 (push) Has been cancelled
Windows-CI / Build vendored-21 (push) Has been cancelled
Windows-CI / Build vendored-22 (push) Has been cancelled
Windows-CI / Build vendored-23 (push) Has been cancelled
build(deps): bump actions-rust-lang/setup-rust-toolchain from 1 to 2
Bumps [actions-rust-lang/setup-rust-toolchain](https://github.com/actions-rust-lang/setup-rust-toolchain) from 1 to 2.
- [Release notes](https://github.com/actions-rust-lang/setup-rust-toolchain/releases)
- [Changelog](https://github.com/actions-rust-lang/setup-rust-toolchain/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions-rust-lang/setup-rust-toolchain/compare/v1...v2)

---
updated-dependencies:
- dependency-name: actions-rust-lang/setup-rust-toolchain
  dependency-version: '2'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-09-15 23:26:11 -07:00

359 lines
11 KiB
YAML

name: CodeCoverage
permissions: { }
on:
push:
paths-ignore:
- 'ansible/**'
- 'doc/**'
- 'sphinx/**'
- 'Cargo.lock'
- 'Cargo.toml'
branches:
- 'master'
pull_request:
paths-ignore:
- 'ansible/**'
- 'doc/**'
- 'sphinx/**'
- 'Cargo.lock'
- 'Cargo.toml'
branches:
- 'master'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env:
CARGO_TERM_COLOR: always
jobs:
lib-unit-test:
name: lib unit test
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v7
with:
submodules: true
- name: Install rust toolchain
uses: actions-rust-lang/setup-rust-toolchain@v2
with:
toolchain: stable
components: llvm-tools
- name: Install build dependencies
run: |
sudo apt-get update
sudo apt-get install capnproto libc-ares-dev libssl-dev liblua5.4-dev
- name: Install binutils
run: |
cargo install cargo-binutils@0.3.6
- name: run unit test
run: |
./scripts/coverage/lib_unit_test.sh
- name: Upload coverage data
uses: codecov/codecov-action@v7
with:
fail_ci_if_error: true
disable_search: true
files: output.lcov
flags: lib
name: lib-unit-test
token: ${{ secrets.CODECOV_TOKEN }}
verbose: false
g3mkcert-test:
name: g3mkcert test
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v7
with:
submodules: true
- name: Install rust toolchain
uses: actions-rust-lang/setup-rust-toolchain@v2
with:
toolchain: stable
components: llvm-tools
- name: Install build dependencies
run: |
sudo apt-get update
sudo apt-get install libssl-dev
- name: Install binutils
run: |
cargo install cargo-binutils@0.3.6
- name: run unit test
run: |
./scripts/coverage/g3mkcert.sh
- name: Upload coverage data
uses: codecov/codecov-action@v7
with:
fail_ci_if_error: true
disable_search: true
files: output.lcov
flags: g3mkcert
name: g3mkcert-all-test
token: ${{ secrets.CODECOV_TOKEN }}
verbose: false
g3keymess-test:
name: g3keymess test
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v7
with:
submodules: true
- name: Install rust toolchain
uses: actions-rust-lang/setup-rust-toolchain@v2
with:
toolchain: stable
components: llvm-tools
- name: Install build dependencies
run: |
sudo apt-get update
sudo apt-get install capnproto libssl-dev
- name: Install binutils
run: |
cargo install cargo-binutils@0.3.6
- name: run unit test
run: |
./scripts/coverage/g3keymess.sh
- name: Upload coverage data
uses: codecov/codecov-action@v7
with:
fail_ci_if_error: true
disable_search: true
files: output.lcov
flags: g3keymess
name: g3keymess-all-test
token: ${{ secrets.CODECOV_TOKEN }}
verbose: false
g3proxy-test:
name: g3proxy test
runs-on: ubuntu-latest
services:
ftp-server:
image: bogem/ftp:latest
env:
FTP_USER: ftpuser
FTP_PASS: ftppass
PASV_ADDRESS: 127.0.0.1
ports:
- '20-21:20-21/tcp'
- '47400-47470:47400-47470/tcp'
volumes:
- /tmp/vsftpd:/home/vsftpd
httpbin:
image: ghcr.io/psf/httpbin:0.10.2
ports:
- 80:8080
influxdb:
image: influxdb:3-core
env:
INFLUXDB3_NODE_IDENTIFIER_PREFIX: local
INFLUXDB3_OBJECT_STORE: memory
ports:
- 8181:8181
graphite:
image: graphiteapp/graphite-statsd:latest
ports:
- 2003:2003
steps:
- name: Checkout sources
uses: actions/checkout@v7
with:
submodules: true
- name: Install rust toolchain
uses: actions-rust-lang/setup-rust-toolchain@v2
with:
toolchain: stable
components: llvm-tools
- name: Install build dependencies
run: |
sudo apt-get update
sudo apt-get install capnproto libc-ares-dev libssl-dev liblua5.4-dev
- name: Install CA Certificates
run: |
sudo apt-get install ca-certificates
- name: Install test libs
run: |
sudo apt-get install python3-requests python3-pycurl python3-dnspython python3-socks
- name: Install binutils
run: |
cargo install cargo-binutils@0.3.6
- name: Install nginx
run: |
sudo apt-get install nginx-light
- name: Install and run c-icap
run: |
sudo apt-get install c-icap
sudo sed -i 's/^MaxServers .*/MaxServers 100/' /etc/c-icap/c-icap.conf
sudo systemctl start c-icap
- name: Install netcat-openbsd
run: |
sudo apt-get install netcat-openbsd
- name: Listen udpdump port
run: |
nc -u -l -k 127.0.0.1 5555 >/dev/null &
- name: Install and run fluent-bit
run: |
sudo curl https://raw.githubusercontent.com/fluent/fluent-bit/master/install.sh | sh
sudo cp ${{ github.workspace }}/scripts/coverage/g3proxy/fluent-bit.conf /etc/fluent-bit/fluent-bit.conf
sudo systemctl start fluent-bit
- name: Install dnsmasq
run: |
sudo apt-get install dnsmasq-base
- name: Backup /etc/resolv.conf
run: |
sudo cp /etc/resolv.conf /etc/resolv.conf.backup
- name: Edit /etc/resolv.conf
run: |
echo "nameserver 127.0.0.1" | sudo tee /etc/resolv.conf
- name: Run dnsmasq
run: |
sudo dnsmasq --local-service -C ${{ github.workspace }}/scripts/coverage/g3proxy/dnsmasq.conf
- name: run unit test
run: |
./scripts/coverage/g3proxy.sh
- name: Restore /etc/resolv.conf
run: |
sudo mv /etc/resolv.conf.backup /etc/resolv.conf
- name: Upload coverage data
uses: codecov/codecov-action@v7
with:
fail_ci_if_error: true
disable_search: true
files: output.lcov
flags: g3proxy
name: g3proxy-all-test
token: ${{ secrets.CODECOV_TOKEN }}
verbose: false
g3bench-test:
name: g3bench test
runs-on: ubuntu-latest
services:
httpbin:
image: ghcr.io/psf/httpbin:0.10.2
ports:
- 80:8080
influxdb:
image: influxdb:3-core
env:
INFLUXDB3_NODE_IDENTIFIER_PREFIX: local
INFLUXDB3_OBJECT_STORE: memory
ports:
- 8181:8181
graphite:
image: graphiteapp/graphite-statsd:latest
ports:
- 2003:2003
steps:
- name: Checkout sources
uses: actions/checkout@v7
with:
submodules: true
- name: Install rust toolchain
uses: actions-rust-lang/setup-rust-toolchain@v2
with:
toolchain: stable
components: llvm-tools
- name: Install build dependencies
run: |
sudo apt-get update
sudo apt-get install capnproto libc-ares-dev libssl-dev liblua5.4-dev
- name: Install CA Certificates
run: |
sudo apt-get install ca-certificates
- name: Install binutils
run: |
cargo install cargo-binutils@0.3.6
- name: Install nginx
run: |
sudo apt-get install nginx-light
- name: Install netcat-openbsd
run: |
sudo apt-get install netcat-openbsd
- name: Install dnsmasq
run: |
sudo apt-get install dnsmasq-base
- name: Backup /etc/resolv.conf
run: |
sudo cp /etc/resolv.conf /etc/resolv.conf.backup
- name: Edit /etc/resolv.conf
run: |
echo "nameserver 127.0.0.1" | sudo tee /etc/resolv.conf
- name: Run dnsmasq
run: |
sudo dnsmasq --local-service -C ${{ github.workspace }}/scripts/coverage/g3bench/dnsmasq.conf
- name: Install thrift compiler
run: |
sudo apt-get install thrift-compiler
- name: run unit test
run: |
./scripts/coverage/g3bench.sh
- name: Restore /etc/resolv.conf
run: |
sudo mv /etc/resolv.conf.backup /etc/resolv.conf
- name: Upload coverage data
uses: codecov/codecov-action@v7
with:
fail_ci_if_error: true
disable_search: true
files: output.lcov
flags: g3bench
name: g3bench-all-test
token: ${{ secrets.CODECOV_TOKEN }}
verbose: false
g3statsd-test:
name: g3statsd test
runs-on: ubuntu-latest
services:
influxdb:
image: influxdb:3-core
env:
INFLUXDB3_NODE_IDENTIFIER_PREFIX: local
INFLUXDB3_OBJECT_STORE: memory
ports:
- 8181:8181
graphite:
image: graphiteapp/graphite-statsd:latest
ports:
- 2003:2003
steps:
- name: Checkout sources
uses: actions/checkout@v7
with:
submodules: true
- name: Install rust toolchain
uses: actions-rust-lang/setup-rust-toolchain@v2
with:
toolchain: stable
components: llvm-tools
- name: Install build dependencies
run: |
sudo apt-get update
sudo apt-get install capnproto
- name: Install binutils
run: |
cargo install cargo-binutils@0.3.6
- name: Install netcat-openbsd
run: |
sudo apt-get install netcat-openbsd
- name: Install and run fluent-bit
run: |
sudo curl https://raw.githubusercontent.com/fluent/fluent-bit/master/install.sh | sh
sudo cp ${{ github.workspace }}/scripts/coverage/g3proxy/fluent-bit.conf /etc/fluent-bit/fluent-bit.conf
sudo systemctl start fluent-bit
- name: run unit test
run: |
./scripts/coverage/g3statsd.sh
- name: Upload coverage data
uses: codecov/codecov-action@v7
with:
fail_ci_if_error: true
disable_search: true
files: output.lcov
flags: g3statsd
name: g3statsd-all-test
token: ${{ secrets.CODECOV_TOKEN }}
verbose: false