[exporter] Feature gate for queue batcher #28708
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: contrib-tests | |
on: | |
push: | |
branches: [main] | |
tags: | |
- v[0-9]+.[0-9]+.[0-9]+.* | |
pull_request: | |
types: [opened, ready_for_review, synchronize, reopened, labeled, unlabeled] | |
branches: [main] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref }} | |
cancel-in-progress: true | |
permissions: | |
contents: read | |
jobs: | |
contrib-tests-matrix: | |
runs-on: ubuntu-latest | |
if: ${{ !contains(github.event.pull_request.labels.*.name, 'Skip Contrib Tests') }} | |
strategy: | |
fail-fast: false | |
matrix: | |
group: | |
- receiver-0 | |
- receiver-1 | |
- receiver-2 | |
- receiver-3 | |
- processor | |
- exporter-0 | |
- exporter-1 | |
- extension | |
- connector | |
- internal | |
- pkg | |
- cmd-0 | |
- cmd-1 | |
- other | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Setup Go | |
uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0 | |
with: | |
go-version: ~1.22.9 | |
cache: false | |
- name: Run Contrib Tests | |
run: | | |
contrib_path=/tmp/opentelemetry-collector-contrib | |
git clone --depth=1 https://github.com/open-telemetry/opentelemetry-collector-contrib.git $contrib_path | |
make CONTRIB_PATH=$contrib_path SKIP_RESTORE_CONTRIB=true GROUP=${{ matrix.group }} check-contrib | |
contrib_tests: | |
runs-on: ubuntu-latest | |
if: ${{ !contains(github.event.pull_request.labels.*.name, 'Skip Contrib Tests') }} | |
needs: [contrib-tests-matrix] | |
steps: | |
- name: Print result | |
run: echo ${{ needs.contrib-tests-matrix.result }} | |
- name: Interpret result | |
run: | | |
if [[ success == ${{ needs.contrib-tests-matrix.result }} ]] | |
then | |
echo "All matrix jobs passed!" | |
else | |
echo "One or more matrix jobs failed." | |
false | |
fi |