Bump go.opentelemetry.io/collector/semconv from 0.71.0 to 0.114.0 in /exporter/alibabacloudlogserviceexporter #9417
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: e2e-tests | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- 'v[0-9]+.[0-9]+.[0-9]+*' | |
pull_request: | |
jobs: | |
kubernetes-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v3 | |
- name: Setup Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: 1.19 | |
- name: Cache Go | |
id: go-cache | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/go/bin | |
~/go/pkg/mod | |
key: go-cache-${{ runner.os }}-${{ hashFiles('**/go.sum') }} | |
- name: Install dependencies | |
if: steps.go-cache.outputs.cache-hit != 'true' | |
run: make -j2 gomoddownload | |
- name: Build Collector | |
run: make otelcontribcol | |
- name: Build Docker Image | |
run: | | |
make docker-otelcontribcol | |
docker tag otelcontribcol:latest otel/opentelemetry-collector-contrib-dev:$GITHUB_SHA | |
- name: Set up Helm | |
uses: azure/[email protected] | |
with: | |
version: v3.9.0 | |
- name: Set up chart-testing | |
uses: helm/[email protected] | |
- name: Create kind cluster | |
uses: helm/[email protected] | |
- name: Check kind | |
run: | | |
kubectl cluster-info --context kind-chart-testing | |
kubectl get node | |
docker ps -a --filter label=io.x-k8s.kind.cluster=chart-testing | |
- name: Kind load image | |
run: | | |
kind load docker-image otel/opentelemetry-collector-contrib-dev:$GITHUB_SHA --name chart-testing | |
- name: Add Dependencies | |
shell: bash | |
run: | | |
helm repo add open-telemetry https://open-telemetry.github.io/opentelemetry-helm-charts | |
- uses: actions/checkout@v3 | |
with: | |
repository: 'open-telemetry/opentelemetry-helm-charts' | |
path: opentelemetry-helm-charts | |
- name: Helm install collector | |
run: helm install test --set image.tag=$GITHUB_SHA -f .github/workflows/e2e/k8s/collector-helm-values.yml opentelemetry-helm-charts/charts/opentelemetry-collector | |
- name: check collector status | |
run: | | |
kubectl wait --for=condition=Ready --timeout=60s pod/test-opentelemetry-collector-0 | |
- name: start telemetrygen job | |
run: | | |
kubectl -n default create -f .github/workflows/e2e/k8s/telemetrygen-job.yml | |
- name: check telemetrygen job status | |
run: | | |
kubectl wait --for=condition=Complete --timeout=60s job/test-telemetrygen | |
- name: copy trace output | |
run: | | |
kubectl cp -c filecp default/test-opentelemetry-collector-0:tmp/trace.json processor/k8sattributesprocessor/testdata/trace.json | |
- name: run e2e test to check output | |
run: | | |
cd processor/k8sattributesprocessor | |
go test -v --tags=e2e |