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

Update latest Azure.Core version to 1.23.0-alpha.20220301.6 #2025

Merged
merged 2 commits into from
Mar 2, 2022

Conversation

ShivangiReja
Copy link
Member

Update latest Azure.Core version to 1.23.0-alpha.20220301.6

@ShivangiReja
Copy link
Member Author

Updating latest Azure.Core version results DPG generated HttpRetryClient test failures for all the methods. Here are the tests for HttpRetryClient methods and here they are failing in the pipeline.

@annelo-msft
Copy link
Member

This is a known bug: Azure/azure-sdk-for-net#27166
The workaround is to disable cookies: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/CHANGELOG.md#breaking-changes

@ShivangiReja ShivangiReja requested a review from m-nash March 2, 2022 18:02
@@ -595,7 +595,7 @@ public async Task<Response<IndexerExecutionInfo>> GetStatusAsync(string indexerN
/// <param name="requestOptions"> Parameter group. </param>
/// <param name="cancellationToken"> The cancellation token to use. </param>
/// <exception cref="ArgumentNullException"> <paramref name="indexerName"/> is null. </exception>
public Response<IndexerExecutionInfo> GetStatus(string indexerName, RequestOptions requestOptions = null, CancellationToken cancellationToken = default)
public Response<IndexerExecutionInfo> GetStatus(string indexerName, Models.RequestOptions requestOptions = null, CancellationToken cancellationToken = default)
Copy link
Contributor

Choose a reason for hiding this comment

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

Why Models is added here rather than in using namespace?

Copy link
Member Author

Choose a reason for hiding this comment

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

We added a new RequestOptions type in Azure.Core and I think it added Models. to resolve the conflict(I didn't do any change related to this).

Copy link
Member

Choose a reason for hiding this comment

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

ah yes that would explain it. @AlexanderSher are we good to go here?

Copy link
Member

Choose a reason for hiding this comment

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

The RequestOptions in Azure.Core is in the Azure namespace, e.g. Azure.RequestOptions. I'm not sure what the one in the Models namespace is, @ShivangiReja, do you know?

Copy link
Member Author

Choose a reason for hiding this comment

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

Responded here - #2025 (comment)

Copy link
Member

Choose a reason for hiding this comment

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

Ah, I see! There is another RequestOptions coming from Search, and it's not the DPG one!

@@ -45,7 +45,7 @@ internal DataSourcesClient(ClientDiagnostics clientDiagnostics, HttpPipeline pip
/// <param name="requestOptions"> Parameter group. </param>
/// <param name="accessCondition"> Parameter group. </param>
/// <param name="cancellationToken"> The cancellation token to use. </param>
public virtual async Task<Response<DataSource>> CreateOrUpdateAsync(string dataSourceName, Enum0 prefer, DataSource dataSource, RequestOptions requestOptions = null, AccessCondition accessCondition = null, CancellationToken cancellationToken = default)
public virtual async Task<Response<DataSource>> CreateOrUpdateAsync(string dataSourceName, Enum0 prefer, DataSource dataSource, Models.RequestOptions requestOptions = null, AccessCondition accessCondition = null, CancellationToken cancellationToken = default)
Copy link
Member

Choose a reason for hiding this comment

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

Where is the configuration that specifies this generated method should take RequestOptions as a parameter?

Copy link
Member Author

@ShivangiReja ShivangiReja Mar 2, 2022

Choose a reason for hiding this comment

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

There is no configuration for RequestOptions. I see CodeModel.yaml file generated RequestOptions and put x-ms-request-id in it.

@timotheeguerin could you please explain why we create RequestOptions type in CodeModel.yaml?

Copy link
Member Author

@ShivangiReja ShivangiReja Mar 2, 2022

Choose a reason for hiding this comment

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

I talked to @timotheeguerin offline. Thanks @timotheeguerin for looking into this.

@annelo-msft RequestOption type is created because it is mentioned in the swagger here.

@AlexanderSher AlexanderSher merged commit 2d6f891 into Azure:feature/v3 Mar 2, 2022
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.

4 participants