Skip to content

Commit 22cd190

Browse files
update qas
1 parent e4f0b9b commit 22cd190

File tree

5 files changed

+161
-32
lines changed

5 files changed

+161
-32
lines changed
Lines changed: 98 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## question
44
Hi there, I am trying to try to use the (Azure Monitor OTEL Exporter)[https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/monitor/azure-monitor-opentelemetry-exporter#microsoft-opentelemetry-exporter-for-azure-monitor] for a python application, and I am having trouble getting data flow when I follow the examples of setting up the exporter. I tried to copy the (hello world sample code)[https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/monitor/azure-monitor-opentelemetry-exporter#export-hello-world-trace] and put my connection string, and I'm still not seeing any tracing data land in my traces table in my App Insights instance. Could I get some help here to figure out what is going on, or where the sample code might not be functional?
5-
5+
66
I tried to look through the debug logs:
77
```
88
2025-05-20 22:57:57,387 DEBUG urllib3.connectionpool Starting new HTTP connection (1): 169.254.169.254:80
@@ -228,3 +228,100 @@ So. For you. I would recommend the following to unblock yourself.
228228
```
229229

230230
Once you successfully record new recordings, test-proxy push and your Tag will be properly populated.
231+
232+
# Question Regarding Regression in Python SDK v11.0.0 for Container Registry
233+
234+
## question
235+
Hi Language - Python, I'm from the Azure Container Registry team, and we have a question regarding one of the recent SDK releases.
236+
237+
The release in question is v11.0.0 ([AutoRelease] t2-containerregistry-2024-12-10-60943(can only be merged by SDK owner) by azure-sdk · Pull Request #38810 · Azure/azure-sdk-for-python), which was generated based on this Swagger PR Savaradh containerregistry microsoft.container registry 2024 11 01 preview new by savaradh · Pull Request #31612 · Azure/azure-rest-api-specs
238+
239+
We recently noticed a regression in version 11.0.0: Previously, the _create_initial method returned a deserialized Task object, but in v11.0.0, it now returns a streamed response. This change was not mentioned in the changelog.
240+
241+
Additionally, our Swagger PR did not modify the 2019-06-01-preview/containerregistry_build.json file, so we're unsure why the SDK PR includes changes to these operation files.
242+
243+
In the "removed" lines (lines 503-507 in red), there was code that did:
244+
```
245+
if response.status_code == 200:
246+
deserialized = self._deserialize("Task", pipeline_response)
247+
if response.status_code == 201:
248+
deserialized = self._deserialize("Task", pipeline_response)
249+
```
250+
But in the current version (line 496 in green), it's doing:
251+
```
252+
deserialized = response.stream_download(self._client._pipeline, decompress=_decompress)
253+
```
254+
255+
Could someone help us understand the root cause of this issue? Any insights would be greatly appreciated. Thanks
256+
257+
## answer
258+
This was a change made in the code generator a while ago, and it's basically an implementation detail change in the public generated code. `_create_initial` is a private method that is used to set up the initial call to start the polling in `begin_create`. We just switched over our initial calls to not do premature deserialization, and there is 0 customer impact. Hope this clears stuff up!
259+
260+
# OOB Stable Python SDK
261+
262+
## question
263+
Hi Language - Python team, I'm trying to release Python SDK here: https://github.com/Azure/sdk-release-request/issues/6124 which is required to test and release Azure CLI module. Given that CLI has a deadline of next week for code complete, I have a couple of questions around this:
264+
265+
1. Can this SDK be released out of band ASAP?
266+
2. For future iterations, what's the process we should take to align with CLI releases, so that we have enough time to release SDKs and then release CLI as well?
267+
Thanks
268+
269+
## answer
270+
1. SDK team will release this package in advance to unblock CLI. Add Chenxi Jiang (WICRESOFT NORTH AMERICA LTD) for awareness.
271+
2. If CLI module depends on SDK, it is better to make release request issue earlier so that SDK team could prepare the release in advance.
272+
273+
# GA review
274+
275+
## question
276+
Hi all, we're looking to release our first stable Python SDK in (Deid GA release by jovinson-ms · Pull Request #40850 · Azure/azure-sdk-for-python)[https://github.com/Azure/azure-sdk-for-python/pull/40850]. Would appreciate a look at the APIView, as we pulled in some suggested client customization from Java and .NET reviews but would like feedback on whether they are idiomatic to Python.
277+
278+
## answer
279+
Hi, I would recommend making a post in the (Language - Python - Reviews)[https://teams.microsoft.com/l/channel/19%3A4175567f1e154a80ab5b88cbd22ea92f%40thread.skype/Language%20-%20Python%20-%20Reviews?groupId=3e17dcb0-4257-4a30-b843-77f47f1d4121&tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47] channel
280+
281+
# Changelog release requirements
282+
283+
## question
284+
Hi all, I'm trying to release our data plane SDK's first stable version in (Deid GA release by jovinson-ms · Pull Request #40850 · Azure/azure-sdk-for-python)[https://github.com/Azure/azure-sdk-for-python/pull/40850]. I'm getting (build failures on changelog validation)[https://dev.azure.com/azure-sdk/public/_build/results?buildId=4824427&view=logs&j=b70e5e73-bbb6-5567-0939-8415943fadb9&t=ac8f4042-9b76-5db4-27b1-2a4abaa9bb3c&l=101]. Looking through the docs, I don't see any changelog update process for data plane in contrast to the control plane automation. Can someone help me understand what the process is here?
285+
286+
## answer
287+
You didn't update the base version of the package! Appears to still be `1.0.0b1`
288+
I believe it should be `1.0.0` to match the changelog you added
289+
290+
# CSpell config
291+
292+
## question
293+
Hi all, I know there are common CSpell config settings as .vscode/cspell.json. I also see a few package-level cspell config files checked in: (Code search results)[https://github.com/search?q=repo%3AAzure%2Fazure-sdk-for-python+path%3Acspell.json&type=code]. Is there some config that needs to be set for pipelines to use local cspell config?
294+
295+
## answer
296+
We haven't done this in the SDK repos yet but we intend to allow folks to inherit from the root file. Similar to https://github.com/Azure/azure-rest-api-specs/blob/main/specification/communication/cspell.yaml where it imports the root cspell config. So as long as you inherit it should work.
297+
298+
# Disable Pylint checks on .pyi files
299+
300+
## question
301+
Hi all,
302+
303+
Storage is adding .pyi files for each of our clients to move `kwargs` to named keywords without having to make massive changes to our runtime code. We have noticed that pylint still runs on these .pyi files and a lot of the checks just don't make sense there, for example `super-init-not-called`. Obviously super init would not be called in a stub.
304+
305+
Example PR: ([Storage] [Named Keywords] [Blob] `_container_client.pyi` and aio by weirongw23-msft · Pull Request #41030 · Azure/azure-sdk-for-python)[https://github.com/Azure/azure-sdk-for-python/pull/41030/files]
306+
307+
This is causing us to have to put in a bunch of pylint disables. Curious on everyone's thoughts on simply disabling pylint on stub files entirely?
308+
309+
## answer
310+
You could consider using `Unpack` with `TypedDict` to handle the typing of kwargs? In the long term it would probably be a lower maintenance solution (it also allows the addition of documentation in intellisense prompts - which the current pyi file doesn't seem to have).
311+
Here's an example if you want to have a read through:
312+
(azure-sdk-for-python/sdk/projects/azure-projects/azure/projects/resources/storage/_resource.py at main · Azure/azure-sdk-for-python)[https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/projects/azure-projects/azure/projects/resources/storage/_resource.py#L237-L243]
313+
314+
# Python Storage SDK - `walk_blobs` API
315+
316+
## question
317+
Hi Anna and Kashif Khan,
318+
319+
(A customer mentioned)[https://github.com/Azure/azure-sdk-for-python/issues/40873] that `walk_blobs` API could return `BlobPrefix` where the current rtype is just `BlobProperties`. Based on this feedback, it appears that `walk_blob` needs to have rtype `BlobProperties | BlobPrefix` ((PR)[https://github.com/Azure/azure-sdk-for-python/pull/40931]). However, this would be a breaking change to our customers, and it would be harder to work with as the customer needs to type check themselves, so not great.
320+
321+
In .NET, `GetBlobsByHierarchy` (returns a custom type)[https://github.com/Azure/azure-sdk-for-net/blob/6ee19685b3c1ecc7f9d7b6318954b12708dcc179/sdk/storage/Azure.Storage.Blobs/src/BlobContainerClient.cs#L2713-L2773] of `Pageable<BlobHierarchyItem>` which has a Boolean value to check whether the item is `BlobPrefix` or `BlobProperties`.
322+
323+
We'd like some feedback on how to best proceed here. Thanks!
324+
325+
## answer
326+
To clarify, changing the type hint is not a breaking change, just annoying to work with a Union return type. The other options of introducing a wrapper class however, would be breaking obviously.
327+
If this is already acting that way at runtime, it means people already use `isintance` or `try/except AttributeError` anyway, so the `Union` still make things better.

QA/python-0626.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,3 +94,11 @@ Once this PR passes:
9494
https://github.com/Azure/azure-sdk-for-python/pull/41724
9595

9696
You can pull from main and try regenerating. Let me know if you see any diffs in regeneration and if these diffs work out for you.
97+
98+
# Releasing Python SDK
99+
100+
## question
101+
Hello Language - Python, I wanted to release a new version of my team's SDK in GA using the release planner, I wanted to ask if I had to manually run the ADO pipeline for it here (Run release SDK pipeline)[https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-pipeline]
102+
103+
## answer
104+
Since this is an ARM service, you should talk to Yuchao about the process

QA/python-0710.md

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,26 @@ The AgentsClientOperationsMixin class should not be documented or publicly expos
1717

1818
After discussion, the Python SDK team concluded that the correct solution is to make the mixin operation group a private class. This change ensures the class is hidden from public documentation while maintaining compatibility with the generated code.
1919

20-
The issue has been tracked in https://github.com/microsoft/typespec/issues/7803, and the fix has been implemented in https://github.com/microsoft/typespec/pull/7817.
20+
The issue has been tracked in https://github.com/microsoft/typespec/issues/7803, and the fix has been implemented in https://github.com/microsoft/typespec/pull/7817.
21+
22+
# Entitlement Required for SDK Generation Pipeline Access
23+
24+
## question
25+
Hi team,
26+
27+
I'm currently working on generating the Python SDK using the pipeline: (Using the SDK generation pipelines)[https://eng.ms/docs/products/azure-developer-experience/develop/sdk-generation-pipelines]. Although I have write access to the related GitHub repositories, I’m unable to access the pipeline itself.
28+
Could you please let me know which entitlement is required for this access? Thank you!
29+
30+
## answer
31+
https://aka.ms/azsdk/access
32+
```
33+
You'll need a GitHub account to contribute to Azure REST API and SDK repositories. Before you get started, be sure that you also:
34+
35+
Join the Microsoft organization on GitHub.
36+
Join the Azure organization.
37+
Check the visibility of your Microsoft and Azure org memberships.
38+
39+
If you're working on branches in the main repo for your spec, or working in the Azure SDK repositories to submit pull requests or serving as the support contact for issues, you'll need write access so that you can apply or dismiss labels, create or modify issues, and assign issues to others. It also allows you to add/update test recordings in the test assets repo.
40+
41+
To get access to Azure SDK repos, request to join the (Azure SDK Partners)[https://aka.ms/azsdk/join/azuresdkpartners] and have the request approved by your manager. After your manager approves, it may take up to one day for you to automatically be added to the (azure-sdk-partners)[https://github.com/orgs/Azure/teams/azure-sdk-partners] GitHub team. This will get you write access to all Azure SDK related repos. These membership requests will need to be renewed every 180 days.
42+
```
Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -82,25 +82,3 @@ resource_client = ResourceManagementClient(
8282
credential, subscription_id,
8383
cloud_setting=resource_manager,
8484
```
85-
86-
# Entitlement Required for SDK Generation Pipeline Access
87-
88-
## question
89-
Hi team,
90-
91-
I'm currently working on generating the Python SDK using the pipeline: (Using the SDK generation pipelines)[https://eng.ms/docs/products/azure-developer-experience/develop/sdk-generation-pipelines]. Although I have write access to the related GitHub repositories, I’m unable to access the pipeline itself.
92-
Could you please let me know which entitlement is required for this access? Thank you!
93-
94-
## answer
95-
https://aka.ms/azsdk/access
96-
```
97-
You'll need a GitHub account to contribute to Azure REST API and SDK repositories. Before you get started, be sure that you also:
98-
99-
Join the Microsoft organization on GitHub.
100-
Join the Azure organization.
101-
Check the visibility of your Microsoft and Azure org memberships.
102-
103-
If you're working on branches in the main repo for your spec, or working in the Azure SDK repositories to submit pull requests or serving as the support contact for issues, you'll need write access so that you can apply or dismiss labels, create or modify issues, and assign issues to others. It also allows you to add/update test recordings in the test assets repo.
104-
105-
To get access to Azure SDK repos, request to join the (Azure SDK Partners)[https://aka.ms/azsdk/join/azuresdkpartners] and have the request approved by your manager. After your manager approves, it may take up to one day for you to automatically be added to the (azure-sdk-partners)[https://github.com/orgs/Azure/teams/azure-sdk-partners] GitHub team. This will get you write access to all Azure SDK related repos. These membership requests will need to be renewed every 180 days.
106-
```

QA/skip_question.json

Lines changed: 32 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,32 @@
77
},
88
{
99
"question": "BreakingChange-Python-SDK review",
10-
"reason": "Review request."
10+
"reason": "BreakingChange review request."
11+
},
12+
{
13+
"question": "https://teams.microsoft.com/l/message/19:[email protected]/1747406803200?tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47&groupId=3e17dcb0-4257-4a30-b843-77f47f1d4121&parentMessageId=1747406803200&teamName=Azure%20SDK&channelName=Language%20-%20Python&createdTime=1747406803200",
14+
"reason": "BreakingChange review request."
15+
},
16+
{
17+
"question": "Need Breaking change approval for Python",
18+
"reason": "BreakingChange review request."
19+
},
20+
{
21+
"question": "Hanging on: urllib3.connectionpool: Starting new HTTPS connection (1)",
22+
"reason": "Bug issue."
23+
},
24+
{
25+
"question": "Python generator produces mismatched model-alias in `_operations.py` after adding ServicePatterns module",
26+
"reason": "Bug issue."
1127
},
1228
{
1329
"question": "Generate code cause too-many-locals and Unused import urllib.parse",
1430
"reason": "Bug issue."
1531
},
32+
{
33+
"question": "Python sdk generation failure post merging the latest changes from main",
34+
"reason": "Bug issue."
35+
},
1636
{
1737
"question": "Code generator on python validates versions by comparing literals.",
1838
"reason": "Bug issue."
@@ -46,12 +66,20 @@
4666
"reason": "No further resolution needed."
4767
},
4868
{
49-
"question": "Releasing Python SDK",
69+
"question": "Updating python repo to Ubuntu-24.04",
5070
"reason": "No further resolution needed."
5171
},
5272
{
53-
"question": "Updating python repo to Ubuntu-24.04",
54-
"reason": "No further resolution needed."
73+
"question": "Fail to record test only async",
74+
"reason": "No clear resolution."
75+
},
76+
{
77+
"question": "Streaming response timeouts when using azure-ai-agents library",
78+
"reason": "No clear resolution."
79+
},
80+
{
81+
"question": "Security CodeQL items from Azure SDK",
82+
"reason": "No clear resolution."
5583
},
5684
{
5785
"question": "Secret env var handling",
@@ -64,10 +92,6 @@
6492
{
6593
"question": "Playback mode not working in the pipeline",
6694
"reason": "No outcome for more than a month."
67-
},
68-
{
69-
"question": "Streaming response timeouts when using azure-ai-agents library",
70-
"reason": "No outcome for more than a month."
7195
}
7296
]
7397
}

0 commit comments

Comments
 (0)