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

[receiver/azureblobreceiver] Update github.com/Azure/azure-sdk-for-go/sdk/storage/azblob causes issues #18637

Closed
codeboten opened this issue Feb 14, 2023 · 10 comments
Labels
bug Something isn't working dependencies Pull requests that update a dependency file exporter/azuredataexplorer receiver/azureblob Stale

Comments

@codeboten
Copy link
Contributor

Component(s)

receiver/azureblob

What happened?

The following errors occurred when updating the dependency. See https://github.com/open-telemetry/opentelemetry-collector-contrib/actions/runs/4175641197/jobs/7230841592#step:4:49

 Error: /home/runner/go/pkg/mod/github.com/!azure/azure-kusto-go@v0.9.2/kusto/ingest/internal/queued/queued.go:49:59: undefined: azblob.BlockBlobClient
Error: /home/runner/go/pkg/mod/github.com/!azure/azure-kusto-go@v0.9.2/kusto/ingest/internal/queued/queued.go:49:83: undefined: azblob.UploadStreamToBlockBlobOptions
Error: /home/runner/go/pkg/mod/github.com/!azure/azure-kusto-go@v0.9.2/kusto/ingest/internal/queued/queued.go:49:123: undefined: azblob.BlockBlobCommitBlockListResponse
Error: /home/runner/go/pkg/mod/github.com/!azure/azure-kusto-go@v0.9.2/kusto/ingest/internal/queued/queued.go:52:56: undefined: azblob.BlockBlobClient
Error: /home/runner/go/pkg/mod/github.com/!azure/azure-kusto-go@v0.9.2/kusto/ingest/internal/queued/queued.go:52:80: undefined: azblob.HighLevelUploadToBlockBlobOption
Error: /home/runner/go/pkg/mod/github.com/!azure/azure-kusto-go@v0.9.2/kusto/ingest/internal/queued/queued.go:63:25: undefined: azblob.TransferManager
Error: /home/runner/go/pkg/mod/github.com/!azure/azure-kusto-go@v0.9.2/kusto/ingest/internal/queued/queued.go:86:75: undefined: azblob.BlockBlobClient
Error: /home/runner/go/pkg/mod/github.com/!azure/azure-kusto-go@v0.9.2/kusto/ingest/internal/queued/queued.go:86:107: undefined: azblob.UploadStreamToBlockBlobOptions
Error: /home/runner/go/pkg/mod/github.com/!azure/azure-kusto-go@v0.9.2/kusto/ingest/internal/queued/queued.go:273:49: undefined: azblob.ContainerClient
Error: /home/runner/go/pkg/mod/github.com/!azure/azure-kusto-go@v0.9.2/kusto/ingest/internal/queued/queued.go:325:84: undefined: azblob.ContainerClient
Error: /home/runner/go/pkg/mod/github.com/!azure/azure-kusto-go@v0.9.2/kusto/ingest/internal/queued/queued.go:86:107: too many errors

Collector version

not-released-yet

Environment information

Environment

OS: (e.g., "Ubuntu 20.04")
Compiler(if manually compiled): (e.g., "go 14.2")

OpenTelemetry Collector configuration

No response

Log output

No response

Additional context

No response

@codeboten codeboten added bug Something isn't working dependencies Pull requests that update a dependency file labels Feb 14, 2023
@github-actions
Copy link
Contributor

Pinging code owners:

See Adding Labels via Comments if you do not have permissions to add labels yourself.

@github-actions
Copy link
Contributor

Pinging code owners for exporter/azuredataexplorer: @asaharan @ag-ramachandran. See Adding Labels via Comments if you do not have permissions to add labels yourself.

@mx-psi
Copy link
Member

mx-psi commented Feb 15, 2023

I think the issue is on a dependency on the azuredataexplorer exporter (grepping shows this dependency is only being used in that component)

@mx-psi
Copy link
Member

mx-psi commented Feb 15, 2023

The latest release of this dependency uses v0.6.1 of the azblob module (https://github.com/Azure/azure-kusto-go/blob/v0.11.0/go.mod#L10 ) so we need to ask for a new release on their side

@mx-psi
Copy link
Member

mx-psi commented Feb 15, 2023

Reported upstream on: Azure/azure-kusto-go/issues/163

@ag-ramachandran
Copy link
Contributor

Hello @codeboten and @mx-psi, we'll look at an upgrade to this week and raise a request with the latest version of the libs

@mx-psi
Copy link
Member

mx-psi commented Feb 24, 2023

I think I was wrong on the 'need to ask for a new release upstream' (see discussion on linked issue). We should update azure-kusto-go to v0.11.0, although there are some breaking changes to be addressed if I try to do that:

# github.com/open-telemetry/opentelemetry-collector-contrib/exporter/azuredataexplorerexporter
../../exporter/azuredataexplorerexporter/adx_exporter.go:221:3: unknown field 'Config' in struct literal of type kusto.Authorization
../../exporter/azuredataexplorerexporter/adx_exporter.go:224:27: cannot use config.ClusterURI (variable of type string) as type *kusto.ConnectionStringBuilder in argument to kusto.New
../../exporter/azuredataexplorerexporter/adx_exporter.go:224:46: cannot use authorizer (variable of type kusto.Authorization) as type kusto.Option in argument to kusto.New

cc @ag-ramachandran

@ag-ramachandran
Copy link
Contributor

Hello @mx-psi, we're on it . This fixes the compilation, working in the changes to some test failures due to the version bump. We will get it done with a PR by the 2nd or 3rd (next week). Is that okay
cc : @asaharn

@ag-ramachandran
Copy link
Contributor

Hello @mx-psi : We tried to address this in the PR. Kindly have a review when you get a chance
#19136

@github-actions
Copy link
Contributor

github-actions bot commented May 1, 2023

This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping @open-telemetry/collector-contrib-triagers. If this issue is still relevant, please ping the code owners or leave a comment explaining why it is still relevant. Otherwise, please close it.

Pinging code owners:

See Adding Labels via Comments if you do not have permissions to add labels yourself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working dependencies Pull requests that update a dependency file exporter/azuredataexplorer receiver/azureblob Stale
Projects
None yet
Development

No branches or pull requests

3 participants