Skip to content

Add opentelemetry-ebpf-instrumentation unittests#2034

Open
MrAlias wants to merge 8 commits intoopen-telemetry:mainfrom
MrAlias:obi-unittests
Open

Add opentelemetry-ebpf-instrumentation unittests#2034
MrAlias wants to merge 8 commits intoopen-telemetry:mainfrom
MrAlias:obi-unittests

Conversation

@MrAlias
Copy link
Copy Markdown
Contributor

@MrAlias MrAlias commented Jan 15, 2026

  • Add basic tests to act as a foundation for further testing of the OBI chart
  • Add a testing workflow to validate chart changes for a PR

@MrAlias MrAlias marked this pull request as ready for review January 15, 2026 16:21
@MrAlias MrAlias requested a review from a team as a code owner January 15, 2026 16:21
Copilot AI review requested due to automatic review settings January 15, 2026 16:21
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Include missing prometheus_export in test.
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

MrAlias added 2 commits April 3, 2026 12:27
# 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants