[Storage] content_length -> size for PageBlobClient create API#39097
Merged
vincenttran-msft merged 2 commits intoDec 5, 2025
Azure Pipelines / SDK Validation - Python
failed
Dec 5, 2025 in 4m 2s
Build #20251205.24 failed
Annotations
Check failure on line 245 in Build log
azure-pipelines / SDK Validation - Python
Build log #L245
Errors occurred while generating SDK from specification/storage/Microsoft.BlobStorage/tspconfig.yaml. Follow the steps at https://aka.ms/azsdk/sdk-automation-faq#how-to-view-the-detailed-sdk-generation-errors to view detailed errors.
2025-12-05 20:31:05 [ERROR] ====== Error occurred in python codegen (error stack start) ======
2025-12-05 20:31:05 [ERROR] Error: Command failed: /mnt/vss/_work/1/s/azure-sdk-for-python/node_modules/@typespec/http-client-python/venv/bin/python /mnt/vss/_work/1/s/azure-sdk-for-python/node_modules/@typespec/http-client-python/eng/scripts/setup/run_tsp.py --package-version=1.0.0b1 --generate-packaging-files=true --validate-versioning=true --clear-output-folder=false --package-dir=azure-storage-blob --package-name=azure-storage-blob --package-mode=azure-dataplane --flavor=azure --keep-setup-py=false --from-typespec=true --models-mode=dpg --output-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk/storage/azure-storage-blob --tsp-file=/mnt/vss/_work/1/s/azure-sdk-for-python_tmp/tsp-codegen/python-yaml-path2d5d6391-f5d3-4143-bd82-dd8954ffed51.yaml
2025-12-05 20:31:05 [ERROR] Traceback (most recent call last):
2025-12-05 20:31:05 [ERROR] File "/mnt/vss/_work/1/s/azure-sdk-for-python/node_modules/@typespec/http-client-python/eng/scripts/setup/run_tsp.py", line 40, in <module>
2025-12-05 20:31:05 [ERROR] codegen.CodeGenerator(output_folder=args.output_folder, tsp_file=args.tsp_file, **unknown_args).process()
2025-12-05 20:31:05 [ERROR] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
2025-12-05 20:31:05 [ERROR] File "/mnt/vss/_work/1/s/azure-sdk-for-python/node_modules/@typespec/http-client-python/venv/lib/python3.13/site-packages/pygen/codegen/__init__.py", line 84, in process
2025-12-05 20:31:05 [ERROR] serializer.serialize()
2025-12-05 20:31:05 [ERROR] ~~~~~~~~~~~~~~~~~~~~^^
2025-12-05 20:31:05 [ERROR] File "/mnt/vss/_work/1/s/azure-sdk-for-python/node_modules/@typespec/http-client-python/venv/lib/python3.13/site-packages/pygen/codegen/serializers/__init__.py", line 218, in serialize
2025-12-05 20:31:05 [ERROR] self._serialize_and_write_operations_folder(
2025-12-05 20:31:05 [ERROR] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
2025-12-05 20:31:05 [ERROR] client_namespace_type.operation_groups, env=env, namespace=client_namespace
2025-12-05 20:31:05 [ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-12-05 20:31:05 [ERROR] )
2025-12-05 20:31:05 [ERROR] ^
2025-12-05 20:31:05 [ERROR] File "/mnt/vss/_work/1/s/azure-sdk-for-python/node_modules/@typespec/http-client-python/venv/lib/python3.13/site-packages/pygen/codegen/serializers/__init__.py", line 387, in _serialize_and_write_operations_folder
2025-12-05 20:31:05 [ERROR] operation_group_serializer.serialize(),
2025-12-05 20:31:05 [ERROR] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
2025-12-05 20:31:05 [ERROR] File "/mnt/vss/_work/1/s/azure-sdk-for-python/node_modules/@typespec/http-client-python/venv/lib/python3.13/site-packages/pygen/codegen/serializers/operation_groups_serializer.py", line 77, in serialize
2025-12-05 20:31:05 [ERROR] return template.render(
2025-12-05 20:31:05 [ERROR] ~~~~~~~~~~~~~~~^
2025-12-05 20:31:05 [ERROR] code_model=self.code_model,
2025-12-05 20:31:05 [ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-12-05 20:31:05 [ERROR] ...<18 lines>...
2025-12-05 20:31:05 [ERROR] need_declare_serializer=any(operation_group.operations for operation_group in self.operation_groups),
2025-12-05 20:31:05 [ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-12-05 20:31:05 [ERROR] )
2025-12-05 20:31:05 [ERROR] ^
2025-12-05 20:31:05 [ERROR] File "/mnt/vss/_work/1/s/azure-sdk-for-python/node_modules/@typespec/http-client-python/venv/lib/python3.13/site-packages/jinja2/environment.py", line 1295, in render
2025-12-05 20:31:05 [ERROR] self.environment.handle_exception()
2025-12-05 20:31:05 [ERROR] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
2025-12-05 20:31:05 [ERROR] File "/mnt/vss/_work/1/s/azure-sdk-for-python/node_modules/@typespec/http-client-python/venv/lib/python3.13/site-packages/jinja2/environment.py", line 942, in handle_exception
2025-12-05 20:31:05 [ERROR] raise rewrite_traceback_stack(source=source)
2025-12-05 20:31:05 [ERROR] File "/mnt/vss/_work/1/s/azure-sdk-for-python/node_modules/@typespec/http-client-python/venv/lib/python3.13/site-packages/pygen/codegen/templates/operation_groups_container.py.jinja2", line 21, in top-level template code
2025-12-05 20:31:05 [ERROR] {% include "operation_group.py.jinja2" %}
2025-12-05 20:31:05 [ERROR] ^^^^^^^^^^^^^^^^^^^^^
2025-12-05 20:31:05 [ERROR] File "/mnt/vss/_work/1/s/azure-sdk-for-python/node_modules/@typespec/http-client-python/venv/lib/python3.13/site-packages/pygen/codegen/templates/operation_group.py.jinja2", line 64, in top-level template code
2025-12-05 20:31:05 [ERROR] {{ some_op()|indent }}
2025-12-05 20:31:05 [ERROR] ^^^^^^^^^^^^^^^^^^^^^
2025-12-05 20:31:05 [ERROR] File "/mnt/vss/_work/1/s/azure-sdk-for-python/node_modules/@typespec/http-client-python/venv/lib/python3.13/site-packages/jinja2/runtime.py", line 784, in _invoke
2025-12-05 20:31:05 [ERROR] rv = self._func(*arguments)
2025-12-05 20:31:05 [ERROR] File "/mnt/vss/_work/1/s/azure-sdk-for-python/node_modules/@typespec/http-client-python/venv/lib/python3.13/site-packages/pygen/codegen/templates/operation_group.py.jinja2", line 60, in template
2025-12-05 20:31:05 [ERROR] {% macro some_op() %}{% include "paging_operation.py.jinja2" %}{% endmacro %}
2025-12-05 20:31:05 [ERROR] ^^^^^^^^^^^^^^^^^^^^^
2025-12-05 20:31:05 [ERROR] File "/mnt/vss/_work/1/s/azure-sdk-for-python/node_modules/@typespec/http-client-python/venv/lib/python3.13/site-packages/pygen/codegen/templates/paging_operation.py.jinja2", line 16, in top-level template code
2025-12-05 20:31:05 [ERROR] {{ op_tools.serialize(operation_serializer.set_up_params_for_pager(operation)) | indent }}
2025-12-05 20:31:05 [ERROR] ^^^^^^^^^^^^^^^^^^^^^
2025-12-05 20:31:05 [ERROR] File "/mnt/vss/_work/1/s/azure-sdk-for-python/node_modules/@typespec/http-client-python/venv/lib/python3.13/site-packages/pygen/codegen/serializers/builder_serializer.py", line 1449, in set_up_params_for_pager
2025-12-05 20:31:05 [ERROR] retval.extend(self._extract_data_callback(builder))
2025-12-05 20:31:05 [ERROR] ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
2025-12-05 20:31:05 [ERROR] File "/mnt/vss/_work/1/s/azure-sdk-for-python/node_modules/@typespec/http-client-python/venv/lib/python3.13/site-packages/pygen/codegen/serializers/builder_serializer.py", line 1382, in _extract_data_callback
2025-12-05 20:31:05 [ERROR] item_name = builder.item_name
2025-12-05 20:31:05 [ERROR] ^^^^^^^^^^^^^^^^^
2025-12-05 20:31:05 [ERROR] File "/mnt/vss/_work/1/s/azure-sdk-for-python/node_modules/@typespec/http-client-python/venv/lib/python3.13/site-packages/pygen/codegen/models/paging_operation.py", line 106, in item_name
2025-12-05 20:31:05 [ERROR] wire_name = self.yaml_data["itemName"]
2025-12-05 20:31:05 [ERROR] ~~~~~~~~~~~~~~^^^^^^^^^^^^
2025-12-05 20:31:05 [ERROR] KeyError: 'itemName'
2025-12-05 20:31:05 [ERROR]
2025-12-05 20:31:05 [ERROR] at genericNodeError (node:internal/errors:983:15)
2025-12-05 20:31:05 [ERROR] at wrappedFn (node:internal/errors:537:14)
2025-12-05 20:31:05 [ERROR] at checkExecSyncError (node:child_process:882:11)
2025-12-05 20:31:05 [ERROR] at execSync (node:child_process:954:15)
2025-12-05 20:31:05 [ERROR] at onEmitMain (file:///mnt/vss/_work/1/s/azure-sdk-for-python/node_modules/@typespec/http-client-python/dist/emitter/emitter.js:207:13)
2025-12-05 20:31:05 [ERROR] at async $onEmit (file:///mnt/vss/_work/1/s/azure-sdk-for-python/node_modules/@typespec/http-client-python/dist/emitter/emitter.js:97:9)
2025-12-05 20:31:05 [ERROR] at async Object.$onEmit [as emitFunction] (file:///mnt/vss/_work/1/s/azure-sdk-for-python/node_modules/@azure-tools/typespec-python/dist/src/emitter.js:7:5)
2025-12-05 20:31:05 [ERROR] at async runEmitter (file:///mnt/vss/_work/1/s/azure-sdk-for-python/node_modules/@typespec/compiler/dist/src/core/program.js:712:9)
2025-12-05 20:31:05 [ERROR] at async file:///mnt/vss/_work/1/s/azure-sdk-for-python/node_modules/@typespec/compiler/dist/src/core/program.js:685:9
2025-12-05 20:31:05 [ERROR] at async emit (file:///mnt/vss/_work/1/s/azure-sdk-for-python/node_modules/@typespec/compiler/dist/src/core/program.js:683:12)
2025-12-05 20:31:05 [ERROR] ====== Error occurred in python codegen (error stack end) ======
2025-12-05 20:31:05 [ERROR] Fail to generate sdk for specification/storage/Microsoft.BlobStorage: Command 'npx --no --prefix eng/common/tsp-client tsp-client init --update-if-exists --tsp-config /mnt/vss/_work/1/s/azure-rest-api-specs/specification/storage/Microsoft.BlobStorage --local-spec-repo /mnt/vss/_work/1/s/azure-rest-api-specs/specification/storage/Microsoft.BlobStorage --commit 7f64c83d7da05d86e2569c16ce79e4e99fd218e0 --repo Azure/azure-rest-api-specs --skip-install --debug' returned non-zero exit status 1.
2025-12-05 20:31:05 [ERROR] ======================================= What Can I do (begin) ========================================================================
2025-12-05 20:31:05 [ERROR] Fail to generate sdk for specification/storage/Microsoft.BlobStorage. If you are from service team, please first check if the failure happens only to Python automation, or for all SDK automations.
2025-12-05 20:31:05 [ERROR] If it happens for all SDK automations, please double check your Swagger / Typespec, and check whether there is error in ModelValidation and LintDiff.
2025-12-05 20:31:05 [ERROR] If it happens to Python alone, you can open an issue to https://github.com/microsoft/typespec/issues. Please include the link of this Pull Request in the issue.
2025-12-05 20:31:05 [ERROR] ======================================= What Can I do (end) =========================================================================
Refer to the inner logs for details or report this issue through https://aka.ms/azsdk/support/specreview-channel.
ErrorStack: Error: [EXT-ERR] Failed to read generateOutput.json. Please check if the generate script is configured correctly.
Loading