Open danieljurek opened 1 year ago
Hi @diondrapeck, I think the error here is coming from an incorrect sample file location in the docstring (introduced in https://github.com/Azure/azure-sdk-for-python/pull/30434). For example, in the second error listed, we're referencing a sample file from azure.ai.ml.entities._job.sweep.early_termination_policy
-- since samples
is at the root of the package, I think we'd need to replace
literalinclude:: ../samples/ml_samples_sweep_configurations.py
with
literalinclude:: ../../../../../../samples/ml_samples_sweep_configurations.py
The file is nested pretty deep, so I may be off by a ..
😅 You should be able to double-check by locally generating sphinx
docs on the azure-ai-ml
package, since I would think you'll either get an error or incorrectly rendered snippet if the file path is invalid. If you're on tox
4, you can run tox run -e sphinx --root .
from the root of the package; you can also just run sphinx
directly if you prefer 🙂
EDIT: actually, looking at other packages, I don't think that's the issue... it's probably something more subtle. Feel free to ignore me!
: C:\hostedtoolcache\windows\Python\3.11.3\x64\Lib\site-packages\azure\ai\ml\entities\_job\sweep\search_space.py:docstring of azure.ai.ml.entities._job.sweep.search_space.Uniform:1: WARNING: duplicate object description of azure.ai.ml.entities._job.sweep.search_space.Uniform, other instance in azure.ai.ml.entities, use :noindex: for one of them
Thanks for this, @mccoyp. Sorry I didn't see it - GitHub never emailed me the notification :|
I think you might be right here actually. I didn't adjust the paths here. It works for something like MLClient because it's only one folder removed. I'm pretty sure the path should be relative to the file it's cited in. I'm going to update them.
@diondrapeck is that build with the changes from #31137?
@danieljurek is there any way we can test the docs build before releasing a new package, to make sure this fixes the issue?
Yep, @mccoyp it's that build.
@mccoyp -- Yes, this can be accomplished through daily docs but the changes to Language-Settings.ps1
have to be in place.
Looks like this package is still excluded from onboarding: https://github.com/Azure/azure-sdk-for-python/blob/main/eng/scripts/Language-Settings.ps1#L307C63-L307C63 ... Re-opening to track adding this back to onboarding.
Doc comments have errors which are causing the docs CI build to fail. Docs build has been pinned to 1.7.2 until this can be resolved.
To fix:
$PackageExclusions
inLangauge-Settings.ps1
Failing build: https://apidrop.visualstudio.com/Content%20CI/_build/results?buildId=367844&view=logs&j=fd490c07-0b22-5182-fac9-6d67fe1e939b&t=25941825-f6be-5547-87e7-b619f675754d&l=295881
Observed errors: