Skip to content

[nr-k8s-otel-collector] Add e2e metric tests #1

[nr-k8s-otel-collector] Add e2e metric tests

[nr-k8s-otel-collector] Add e2e metric tests #1

Workflow file for this run

name: nr-k8s-otel-e2e.yml
on:
pull_request:
env:
# NOTICE that apart from this, the versions in the chart linter matrix needs to be bumped too.
LATEST_K8S_VERSION: 'v1.32.0'
MINIKUBE_VERSION: 'v1.35.0'
jobs:
e2e-test:
name: E2e Tests
if: ${{ !contains(github.event.pull_request.labels.*.name, 'ci/skip-e2e') }}
runs-on: ubuntu-latest
# If the environment is broken, this job could time out since the default timeout for tilt ci is 30m.
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
- name: Setup Minikube
uses: manusa/actions-setup-minikube@v2.14.0
with:
minikube version: ${{ env.MINIKUBE_VERSION }}
kubernetes version: ${{ env.LATEST_K8S_VERSION }}
# default driver doesn't support 'eval $$(minikube docker-env)'.
driver: docker
github token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- name: Install Tilt
run: |
curl -fsSL https://github.com/tilt-dev/tilt/releases/download/v0.34.5/tilt.0.34.5.linux.x86_64.tar.gz | tar -xzv tilt && sudo mv tilt /usr/local/bin/tilt
- name: Run e2e-test
env:
SECRET_AVAILABLE: ${{ secrets.K8S_AGENTS_E2E_ACCOUNT_ID }}
if: ${{ env.SECRET_AVAILABLE != '' }}
uses: newrelic/newrelic-integration-e2e-action@v1
with:
retry_seconds: 90
retry_attempts: 5
agent_enabled: false
spec_path: test/e2e/test-specs.yml
account_id: ${{ secrets.K8S_AGENTS_E2E_ACCOUNT_ID }}
api_key: ${{ secrets.K8S_AGENTS_E2E_API_KEY }}
license_key: ${{ secrets.K8S_AGENTS_E2E_LICENSE_KEY }}