Skip to content

Doc release is crashing with logger error #45227

@scbedd

Description

@scbedd

This error is definitely introduced by the merge of #44110

Visible here

Failed during release stage Apply Documentation Updates

2026-02-17T20:08:39.4818170Z ##[section]Starting: Apply Documentation Updates
2026-02-17T20:08:39.4824829Z ==============================================================================
2026-02-17T20:08:39.4825080Z Task         : PowerShell
2026-02-17T20:08:39.4825350Z Description  : Run a PowerShell script on Linux, macOS, or Windows
2026-02-17T20:08:39.4825597Z Version      : 2.268.1
2026-02-17T20:08:39.4825809Z Author       : Microsoft Corporation
2026-02-17T20:08:39.4826001Z Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/powershell
2026-02-17T20:08:39.4826272Z ==============================================================================
2026-02-17T20:08:39.6302216Z Generating script.
2026-02-17T20:08:39.6308952Z ========================== Starting Command Output ===========================
2026-02-17T20:08:39.6320855Z [command]/usr/bin/pwsh -NoLogo -NoProfile -NonInteractive -Command . '/mnt/vss/_work/_temp/709d6f48-29b0-429e-982d-8b126c988800.ps1'
2026-02-17T20:08:40.1083074Z Validating the packages...
2026-02-17T20:08:40.1136763Z Executing: which python
2026-02-17T20:08:40.1295200Z /opt/hostedtoolcache/Python/3.11.14/x64/bin/python
2026-02-17T20:08:40.1299820Z 
2026-02-17T20:08:40.1300127Z 
2026-02-17T20:08:40.1300553Z Executing: python -m pip freeze --all
2026-02-17T20:08:40.3652691Z alabaster==0.7.16
2026-02-17T20:08:40.3653704Z babel==2.18.0
2026-02-17T20:08:40.3656293Z certifi==2026.1.4
2026-02-17T20:08:40.3659468Z charset-normalizer==3.4.4
2026-02-17T20:08:40.3662380Z docutils==0.19
2026-02-17T20:08:40.3664720Z idna==3.11
2026-02-17T20:08:40.3667259Z imagesize==1.4.1
2026-02-17T20:08:40.3669576Z Jinja2==3.1.6
2026-02-17T20:08:40.3673235Z MarkupSafe==3.0.3
2026-02-17T20:08:40.3675085Z packaging==26.0
2026-02-17T20:08:40.3676970Z pip==25.3
2026-02-17T20:08:40.3679453Z py2docfx==0.1.23
2026-02-17T20:08:40.3681864Z Pygments==2.19.2
2026-02-17T20:08:40.3684656Z PyYAML==6.0.3
2026-02-17T20:08:40.3687441Z requests==2.32.5
2026-02-17T20:08:40.3689939Z setuptools==79.0.1
2026-02-17T20:08:40.3692478Z snowballstemmer==3.0.1
2026-02-17T20:08:40.3695056Z Sphinx==6.1.3
2026-02-17T20:08:40.3697424Z sphinxcontrib-applehelp==2.0.0
2026-02-17T20:08:40.3699687Z sphinxcontrib-devhelp==2.0.0
2026-02-17T20:08:40.3702348Z sphinxcontrib-htmlhelp==2.1.0
2026-02-17T20:08:40.3704912Z sphinxcontrib-jsmath==1.0.1
2026-02-17T20:08:40.3707225Z sphinxcontrib-qthelp==2.0.0
2026-02-17T20:08:40.3709487Z sphinxcontrib-serializinghtml==2.0.0
2026-02-17T20:08:40.3711742Z urllib3==2.6.3
2026-02-17T20:08:40.3714402Z wheel==0.46.3
2026-02-17T20:08:40.3716508Z 
2026-02-17T20:08:40.3716764Z 
2026-02-17T20:08:40.4075155Z {
2026-02-17T20:08:40.4075901Z   "packages": [
2026-02-17T20:08:40.4076325Z     {
2026-02-17T20:08:40.4076754Z       "package_info": {
2026-02-17T20:08:40.4077235Z         "name": "azure-appconfiguration-provider",
2026-02-17T20:08:40.4077717Z         "install_type": "pypi",
2026-02-17T20:08:40.4078191Z         "prefer_source_distribution": "true",
2026-02-17T20:08:40.4078653Z         "version": "==2.4.0",
2026-02-17T20:08:40.4079215Z         "extra_index_url": "https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-python/pypi/simple/"
2026-02-17T20:08:40.4079595Z       },
2026-02-17T20:08:40.4079842Z       "exclude_path": [
2026-02-17T20:08:40.4080111Z         "test*",
2026-02-17T20:08:40.4080373Z         "example*",
2026-02-17T20:08:40.4080636Z         "sample*",
2026-02-17T20:08:40.4080891Z         "doc*"
2026-02-17T20:08:40.4081135Z       ],
2026-02-17T20:08:40.4081399Z       "extension_config": {
2026-02-17T20:08:40.4081685Z         "autodoc_default_options": {
2026-02-17T20:08:40.4082239Z           "inherited-members": 1
2026-02-17T20:08:40.4082590Z         }
2026-02-17T20:08:40.4082826Z       }
2026-02-17T20:08:40.4083076Z     }
2026-02-17T20:08:40.4083323Z   ]
2026-02-17T20:08:40.4083556Z }
2026-02-17T20:08:40.4090045Z Executing: python -u -m py2docfx --param-file-path /tmp/hvxefsky.vay/azure-appconfiguration-provider.json -o /tmp/hvxefsky.vay/docsOutput
2026-02-17T20:08:52.3847454Z Traceback (most recent call last):
2026-02-17T20:08:52.3848862Z   File "/opt/hostedtoolcache/Python/3.11.14/x64/lib/python3.11/site-packages/py2docfx/__main__.py", line 123, in main
2026-02-17T20:08:52.3849568Z     await donwload_package_generate_documents(
2026-02-17T20:08:52.3851665Z   File "/opt/hostedtoolcache/Python/3.11.14/x64/lib/python3.11/site-packages/py2docfx/__main__.py", line 49, in donwload_package_generate_documents
2026-02-17T20:08:52.3853420Z     raise e
2026-02-17T20:08:52.3855264Z   File "/opt/hostedtoolcache/Python/3.11.14/x64/lib/python3.11/site-packages/py2docfx/__main__.py", line 45, in donwload_package_generate_documents
2026-02-17T20:08:52.3857159Z     await env_prepare_tasks[idx]
2026-02-17T20:08:52.3859307Z   File "/opt/hostedtoolcache/Python/3.11.14/x64/lib/python3.11/site-packages/py2docfx/convert_prepare/environment.py", line 130, in prepare_venv
2026-02-17T20:08:52.3861005Z     await get_source(get_venv_exe(venv_num), package_info, package_number, vststoken=ado_token, githubtoken=github_token)
2026-02-17T20:08:52.3862919Z   File "/opt/hostedtoolcache/Python/3.11.14/x64/lib/python3.11/site-packages/py2docfx/convert_prepare/get_source.py", line 164, in get_source
2026-02-17T20:08:52.3864630Z     update_package_info(executable, pkg, source_folder)
2026-02-17T20:08:52.3866486Z   File "/opt/hostedtoolcache/Python/3.11.14/x64/lib/python3.11/site-packages/py2docfx/convert_prepare/get_source.py", line 28, in update_package_info
2026-02-17T20:08:52.3868017Z     proc_ret = subprocess.run(
2026-02-17T20:08:52.3870142Z                ^^^^^^^^^^^^^^^
2026-02-17T20:08:52.3873374Z   File "/opt/hostedtoolcache/Python/3.11.14/x64/lib/python3.11/subprocess.py", line 571, in run
2026-02-17T20:08:52.3874741Z     raise CalledProcessError(retcode, process.args,
2026-02-17T20:08:52.3876458Z subprocess.CalledProcessError: Command '['/opt/hostedtoolcache/Python/3.11.14/x64/lib/python3.11/site-packages/py2docfx/venv/venv0/bin/python3', 'setup.py', '--quiet', '--dry-run', '--name']' returned non-zero exit status 1.
2026-02-17T20:08:52.3879688Z System.Management.Automation.RemoteException
2026-02-17T20:08:52.3881219Z During handling of the above exception, another exception occurred:
2026-02-17T20:08:52.3883190Z System.Management.Automation.RemoteException
2026-02-17T20:08:52.3884937Z Traceback (most recent call last):
2026-02-17T20:08:52.3886713Z   File "<frozen runpy>", line 198, in _run_module_as_main
2026-02-17T20:08:52.3888462Z   File "<frozen runpy>", line 88, in _run_code
2026-02-17T20:08:52.3890176Z   File "/opt/hostedtoolcache/Python/3.11.14/x64/lib/python3.11/site-packages/py2docfx/__main__.py", line 137, in <module>
2026-02-17T20:08:52.3891667Z     sys.exit(asyncio.run(main(sys.argv[1:])))
2026-02-17T20:08:52.3893567Z              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2026-02-17T20:08:52.3895376Z   File "/opt/hostedtoolcache/Python/3.11.14/x64/lib/python3.11/asyncio/runners.py", line 190, in run
2026-02-17T20:08:52.3897112Z     return runner.run(main)
2026-02-17T20:08:52.3899843Z            ^^^^^^^^^^^^^^^^
2026-02-17T20:08:52.3902194Z   File "/opt/hostedtoolcache/Python/3.11.14/x64/lib/python3.11/asyncio/runners.py", line 118, in run
2026-02-17T20:08:52.3903706Z     return self._loop.run_until_complete(task)
2026-02-17T20:08:52.3905940Z            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2026-02-17T20:08:52.3916003Z   File "/opt/hostedtoolcache/Python/3.11.14/x64/lib/python3.11/asyncio/base_events.py", line 654, in run_until_complete
2026-02-17T20:08:52.3916950Z     return future.result()
2026-02-17T20:08:52.3917419Z            ^^^^^^^^^^^^^^^
2026-02-17T20:08:52.3917933Z   File "/opt/hostedtoolcache/Python/3.11.14/x64/lib/python3.11/site-packages/py2docfx/__main__.py", line 129, in main
2026-02-17T20:08:52.3918459Z     fishish_up()
2026-02-17T20:08:52.3919799Z   File "/opt/hostedtoolcache/Python/3.11.14/x64/lib/python3.11/site-packages/py2docfx/__main__.py", line 91, in fishish_up
2026-02-17T20:08:52.3920537Z     warning_count, error_count = py2docfxLogger.get_warning_error_count()
2026-02-17T20:08:52.3922887Z                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2026-02-17T20:08:52.3923918Z   File "/opt/hostedtoolcache/Python/3.11.14/x64/lib/python3.11/site-packages/py2docfx/docfx_yaml/logger.py", line 82, in get_warning_error_count
2026-02-17T20:08:52.3925030Z     warning_count, error_count = counts_errors_warnings(main_log_file_path)
2026-02-17T20:08:52.3927127Z                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2026-02-17T20:08:52.3929022Z   File "/opt/hostedtoolcache/Python/3.11.14/x64/lib/python3.11/site-packages/py2docfx/docfx_yaml/logger.py", line 71, in counts_errors_warnings
2026-02-17T20:08:52.3930776Z     with open(log_file_path, 'r', encoding='utf-8') as f:
2026-02-17T20:08:52.3932697Z          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2026-02-17T20:08:52.3934446Z FileNotFoundError: [Errno 2] No such file or directory: 'logs/log.txt'
2026-02-17T20:08:52.3943032Z 
2026-02-17T20:08:52.3943659Z 
2026-02-17T20:08:52.4014378Z ##[warning]py2docfx command failed, see output above.
2026-02-17T20:08:52.4040356Z Package validation failed for package: /mnt/vss/_work/1/packages_extended/PackageInfo/azure-appconfiguration-provider.json
2026-02-17T20:08:52.4567315Z 
2026-02-17T20:08:52.4599551Z ##[error]PowerShell exited with code '1'.
2026-02-17T20:08:52.4651830Z ##[section]Finishing: Apply Documentation Updates

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions