Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 0 additions & 13 deletions .github/actions/setup-codecov/action.yml

This file was deleted.

33 changes: 33 additions & 0 deletions .github/actions/upload-codecov/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Copyright (c) 2023 The Jaeger Authors.
# SPDX-License-Identifier: Apache-2.0

# Codecov upload often fails on rate limits if used without a token.
# See https://github.com/codecov/codecov-action/issues/837
# This action embeds a token directly.
# We cannot define it as "secret" as we need it accessible from forks.

name: 'Upload coverage to codecov'
description: 'Uploads coverage to codecov with retries'
inputs:
files:
description: 'Coverage files to upload'
required: true
flags:
description: 'Flags for codecov'
required: true
runs:
using: 'composite'
steps:
- name: Retry upload
uses: Wandalen/[email protected]
with:
attempt_limit: 6
# sleep 10 seconds between retries
attempt_delay: 10000
action: codecov/codecov-action@7afa10ed9b269c561c2336fd862446844e0cbf71 # v4.2.0
with: |
files: ${{ inputs.files }}
flags: ${{ inputs.flags }}
verbose: true
fail_ci_if_error: true
token: f457b710-93af-4191-8678-bcf51281f98c
8 changes: 1 addition & 7 deletions .github/workflows/ci-badger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,8 @@ jobs:
;;
esac

- name: Setup CODECOV_TOKEN
uses: ./.github/actions/setup-codecov

- name: Upload coverage to codecov
uses: codecov/codecov-action@7afa10ed9b269c561c2336fd862446844e0cbf71 # v4.2.0
uses: ./.github/actions/upload-codecov
with:
files: cover.out
verbose: true
flags: badger_${{ matrix.version }}
fail_ci_if_error: true
token: ${{ env.CODECOV_TOKEN }}
8 changes: 1 addition & 7 deletions .github/workflows/ci-cassandra.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,8 @@ jobs:
- name: Run cassandra integration tests
run: bash scripts/cassandra-integration-test.sh ${{ matrix.version.image }} ${{ matrix.version.schema }}

- name: Setup CODECOV_TOKEN
uses: ./.github/actions/setup-codecov

- name: Upload coverage to codecov
uses: codecov/codecov-action@7afa10ed9b269c561c2336fd862446844e0cbf71 # v4.2.0
uses: ./.github/actions/upload-codecov
with:
file: cover.out
verbose: true
flags: cassandra-${{ matrix.version.major }}
fail_ci_if_error: true
token: ${{ env.CODECOV_TOKEN }}
8 changes: 1 addition & 7 deletions .github/workflows/ci-elasticsearch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,8 @@ jobs:
- name: Run elasticsearch integration tests
run: bash scripts/es-integration-test.sh ${{ matrix.version.distribution }} ${{ matrix.version.image }}

- name: Setup CODECOV_TOKEN
uses: ./.github/actions/setup-codecov

- name: Upload coverage to codecov
uses: codecov/codecov-action@7afa10ed9b269c561c2336fd862446844e0cbf71 # v4.2.0
uses: ./.github/actions/upload-codecov
with:
files: cover.out,cover-index-cleaner.out,cover-index-rollover.out
verbose: true
flags: elasticsearch-${{ matrix.version.major }}
fail_ci_if_error: true
token: ${{ env.CODECOV_TOKEN }}
8 changes: 1 addition & 7 deletions .github/workflows/ci-grpc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,8 @@ jobs:
;;
esac

- name: Setup CODECOV_TOKEN
uses: ./.github/actions/setup-codecov

- name: Upload coverage to codecov
uses: codecov/codecov-action@7afa10ed9b269c561c2336fd862446844e0cbf71 # v4.2.0
uses: ./.github/actions/upload-codecov
with:
files: cover.out
verbose: true
flags: grpc_${{ matrix.version }}
fail_ci_if_error: true
token: ${{ env.CODECOV_TOKEN }}
8 changes: 1 addition & 7 deletions .github/workflows/ci-kafka.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,8 @@ jobs:
run: docker logs kafka
if: ${{ failure() }}

- name: Setup CODECOV_TOKEN
uses: ./.github/actions/setup-codecov

- name: Upload coverage to codecov
uses: codecov/codecov-action@7afa10ed9b269c561c2336fd862446844e0cbf71 # v4.2.0
uses: ./.github/actions/upload-codecov
with:
files: cover.out
verbose: true
flags: kafka
fail_ci_if_error: true
token: ${{ env.CODECOV_TOKEN }}
8 changes: 1 addition & 7 deletions .github/workflows/ci-opensearch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,8 @@ jobs:
- name: Run opensearch integration tests
run: bash scripts/es-integration-test.sh ${{ matrix.version.distribution }} ${{ matrix.version.image }}

- name: Setup CODECOV_TOKEN
uses: ./.github/actions/setup-codecov

- name: Upload coverage to codecov
uses: codecov/codecov-action@7afa10ed9b269c561c2336fd862446844e0cbf71 # v4.2.0
uses: ./.github/actions/upload-codecov
with:
files: cover.out,cover-index-cleaner.out,cover-index-rollover.out
verbose: true
flags: opensearch-${{ matrix.version.major }}
fail_ci_if_error: true
token: ${{ env.CODECOV_TOKEN }}
10 changes: 2 additions & 8 deletions .github/workflows/ci-unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ permissions:
jobs:
unit-tests:
permissions:
checks: write
checks: write
runs-on: ubuntu-latest
steps:
- name: Harden Runner
Expand All @@ -39,14 +39,8 @@ jobs:
- name: Run unit tests
run: make test-ci

- name: Setup CODECOV_TOKEN
uses: ./.github/actions/setup-codecov

- name: Upload coverage to codecov
uses: codecov/codecov-action@7afa10ed9b269c561c2336fd862446844e0cbf71 # v4.2.0
uses: ./.github/actions/upload-codecov
with:
file: cover.out
verbose: true
flags: unittests
fail_ci_if_error: true
token: ${{ env.CODECOV_TOKEN }}