Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[chore] Enable goleak for tests failing on opencensus-go #30457

Merged
merged 9 commits into from
Jan 29, 2024

Conversation

crobert-1
Copy link
Member

Description:

This enables goleak checks for all packages whose only failure is due to a known issue within the opencensus-go package. I believe it's safe to ignore for two main reasons:

  1. All references that I'm aware of are indirect, the contrib repo isn't directly using the stat's worker functionality. The goroutine is started in the dependency's init() so it's not something that we're causing.
  2. We're actively moving away from the opencensus dependency, and hope to remove it entirely soon. Relevant issue: Migrate collector's metrics from OC to OpenTelemetry opentelemetry-collector#816. Once this work is complete the ignore will no longer be necessary and we can safely remove it.

The only changes in this PR are test related. The same file is being copied into different packages, and then we run make gotidy. No functionality has been changed.

Link to tracking Issue:
#30438

Testing:
All added tests are passing.

@crobert-1 crobert-1 marked this pull request as ready for review January 18, 2024 22:03
@crobert-1
Copy link
Member Author

crobert-1 commented Jan 18, 2024

Alright, this should be ready to review, apologies again for the size. Refer to this comment for a simple way to ensure the changes are just one file being copied into numerous places.

@dmitryax dmitryax merged commit 21bee24 into open-telemetry:main Jan 29, 2024
85 checks passed
@github-actions github-actions bot added this to the next release milestone Jan 29, 2024
cparkins pushed a commit to AmadeusITGroup/opentelemetry-collector-contrib that referenced this pull request Feb 1, 2024
…try#30457)

**Description:** 
This enables `goleak` checks for all packages whose only failure is due
to [a known
issue](census-instrumentation/opencensus-go#1191)
within the `opencensus-go` package. I believe it's safe to ignore for
two main reasons:
1. All references that I'm aware of are indirect, the contrib repo isn't
directly using the stat's worker functionality. The goroutine is started
in the dependency's `init()` so it's not something that we're causing.
2. We're actively moving away from the opencensus dependency, and hope
to remove it entirely soon. Relevant issue:
open-telemetry/opentelemetry-collector#816.
Once this work is complete the ignore will no longer be necessary and we
can safely remove it.

The only changes in this PR are test related. The same file is being
copied into different packages, and then we run `make gotidy`. No
functionality has been changed.

**Link to tracking Issue:** open-telemetry#30438
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cmd/configschema configschema command cmd/mdatagen mdatagen command connector/count connector/exceptions connector/failover connector/routing connector/servicegraph connector/spanmetrics exporter/awscloudwatchlogs awscloudwatchlogs exporter exporter/awskinesis exporter/awss3 exporter/carbon exporter/cassandra exporter/clickhouse exporter/datadog Datadog components exporter/dynatrace exporter/elasticsearch exporter/f5cloud F5 exporter exporter/googlecloud exporter/googlemanagedprometheus Google Managed Prometheus exporter exporter/honeycombmarker exporter/influxdb exporter/instana exporter/logicmonitor exporter/loki Loki Exporter exporter/mezmo exporter/opensearch exporter/pulsar exporter/sapm exporter/sentry exporter/signalfx exporter/syslog exporter/zipkin extension/basicauth extension/encoding extension/headerssetter extension/healthcheck Health Check Extension extension/httpforwarder extension/oauth2clientauth extension/observer internal/splunk processor/attributes Attributes processor processor/deltatorate Delta To Rate processor processor/filter Filter processor processor/groupbyattrs Group By Attributes processor processor/k8sattributes k8s Attributes processor processor/logstransform Logs Transform processor processor/metricsgeneration Metrics Generation processor processor/metricstransform Metrics Transform processor processor/probabilisticsampler Probabilistic Sampler processor processor/redaction Redaction processor processor/resource Resource processor processor/resourcedetection Resource detection processor processor/routing Routing processor processor/schema Schema processor processor/span processor/sumologic processor/transform Transform processor receiver/activedirectoryds receiver/aerospike receiver/apachespark receiver/awscontainerinsight receiver/awsxray receiver/azureblob receiver/azuremonitor receiver/bigip receiver/carbon receiver/chrony receiver/cloudfoundry receiver/collectd receiver/couchdb receiver/datadog receiver/elasticsearch receiver/expvar receiver/filelog receiver/filestats
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants