Add opentelemetry-ebpf-instrumentation unittests#2034
Add opentelemetry-ebpf-instrumentation unittests#2034MrAlias wants to merge 8 commits intoopen-telemetry:mainfrom
Conversation
There was a problem hiding this comment.
Pull request overview
This PR adds comprehensive unit tests for the opentelemetry-ebpf-instrumentation Helm chart using helm-unittest and introduces a GitHub Actions workflow to validate chart changes. The tests cover core chart templates including the DaemonSet, ConfigMap, Service, ServiceMonitor, RBAC resources, and k8s cache components.
Changes:
- Added 7 helm-unittest test files covering all major chart templates
- Added GitHub Actions workflow for automated testing on PRs
- Updated .helmignore to exclude test files and snapshots from chart package
- Bumped chart version from 0.4.1 to 0.4.2
Reviewed changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| charts/opentelemetry-ebpf-instrumentation/tests/servicemonitor_test.yaml | Tests ServiceMonitor rendering with service and internal metrics configurations |
| charts/opentelemetry-ebpf-instrumentation/tests/service_test.yaml | Tests Service creation with metrics and internal metrics ports |
| charts/opentelemetry-ebpf-instrumentation/tests/rbac_test.yaml | Tests RBAC resources (ClusterRole, ClusterRoleBinding, ServiceAccount) creation and disablement |
| charts/opentelemetry-ebpf-instrumentation/tests/daemonset_test.yaml | Tests DaemonSet rendering with default settings and external ConfigMap support |
| charts/opentelemetry-ebpf-instrumentation/tests/configmap_test.yaml | Tests ConfigMap creation and external ConfigMap configuration |
| charts/opentelemetry-ebpf-instrumentation/tests/cache_service_test.yaml | Tests k8s cache Service rendering based on replica configuration |
| charts/opentelemetry-ebpf-instrumentation/tests/cache_deployment_test.yaml | Tests k8s cache Deployment rendering based on replica configuration |
| charts/opentelemetry-ebpf-instrumentation/Chart.yaml | Version bump to 0.4.2 |
| charts/opentelemetry-ebpf-instrumentation/.helmignore | Excludes test files from chart package |
| .github/workflows/ebpf-instrumentation-test.yaml | GitHub Actions workflow for running helm-unittest and chart-testing |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
charts/opentelemetry-ebpf-instrumentation/tests/servicemonitor_test.yaml
Show resolved
Hide resolved
Include missing prometheus_export in test.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 22 out of 22 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
charts/opentelemetry-ebpf-instrumentation/tests/cache_deployment_test.yaml
Show resolved
Hide resolved
# Conflicts: # charts/opentelemetry-ebpf-instrumentation/.helmignore # charts/opentelemetry-ebpf-instrumentation/Chart.yaml # charts/opentelemetry-ebpf-instrumentation/examples/default/rendered/clusterrole.yaml # charts/opentelemetry-ebpf-instrumentation/examples/default/rendered/clusterrolebinding.yaml # charts/opentelemetry-ebpf-instrumentation/examples/default/rendered/configmap.yaml # charts/opentelemetry-ebpf-instrumentation/examples/default/rendered/daemonset.yaml # charts/opentelemetry-ebpf-instrumentation/examples/default/rendered/serviceaccount.yaml # charts/opentelemetry-ebpf-instrumentation/examples/with-k8s-cache/rendered/cache-deployment.yaml # charts/opentelemetry-ebpf-instrumentation/examples/with-k8s-cache/rendered/cache-service.yaml # charts/opentelemetry-ebpf-instrumentation/examples/with-k8s-cache/rendered/clusterrole.yaml # charts/opentelemetry-ebpf-instrumentation/examples/with-k8s-cache/rendered/clusterrolebinding.yaml # charts/opentelemetry-ebpf-instrumentation/examples/with-k8s-cache/rendered/configmap.yaml # charts/opentelemetry-ebpf-instrumentation/examples/with-k8s-cache/rendered/daemonset.yaml # charts/opentelemetry-ebpf-instrumentation/examples/with-k8s-cache/rendered/serviceaccount.yaml
Uh oh!
There was an error while loading. Please reload this page.