Skip to content

Commit 3f9dbdd

Browse files
committed
doc
1 parent af3718f commit 3f9dbdd

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

.github/workflows/check-urls.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
timeout: 2
3232
retry_count# : 2
3333
exclude_urls: https://github.com/pytorch/pytorch/pull/117009,https://github.com/huggingface/transformers/pull/29285,https://github.com/pytorch/pytorch/blob/a44f8894fa6d973693aab44a3dda079a168b05c1/torch/_decomp/decompositions.py#L1475
34-
exclude_patterns: https://dumps.wikimedia.org/,https://github.com/pytorch/pytorch/pull/,https://github.com/pytorch/pytorch/blob/a44f8894fa6d973693aab44a3dda079a168b05c1/torch/_decomp/decompositions.py#L1475,https://huggingface.co/
34+
exclude_patterns: https://dumps.wikimedia.org/,https://github.com/pytorch/pytorch/pull/,https://github.com/pytorch/pytorch/blob/a44f8894fa6d973693aab44a3dda079a168b05c1/torch/_decomp/decompositions.py#L1475,https://huggingface.co/,https://huggingface.co/
3535
# force_pass : true
3636

3737
- name: urls-checker-docs
@@ -43,5 +43,5 @@ jobs:
4343
timeout: 2
4444
retry_count# : 2
4545
exclude_urls: https://hal.archives-,ouvertes.fr/hal-00990252/document,http://badge.fury.io/py/onnx-diagnostic,https://azure.microsoft.com/en-us/products/devops/pipelines,https://github.com/pytorch/pytorch/pull/83137#issuecomment-1211320670,https://github.com/NVIDIA/TransformerEngine.git@6a9edc38bf9b941b7d369af5103fa8fe0b121d61,https://medium.com/@msouza.os/llm-from-scratch-with-pytorch-9f21808c6319,https://github.com/pytorch/pytorch/blob/main/torch/fx/experimental/symbolic_shapes.py#L5965,https://docs.nvidia.com/deeplearning/frameworks/pytorch-release-notes/rel-24-04.html,https://badge.fury.io/py/onnx-diagnostic.svg,https://github.com/huggingface/transformers/pull/36311
46-
exclude_patterns: https://www.data.gouv.fr/fr/datasets/r/e3d83ab3-dc52-4c99-abaf-8a38050cc68c,https://dev.azure.com/,https://azure.microsoft.com/en-us/products/devops/pipelines,https://github.com/pytorch/pytorch/pull/83137#issuecomment-1211320670,https://github.com/NVIDIA/TransformerEngine.git@6a9edc38bf9b941b7d369af5103fa8fe0b121d61,https://github.com/pytorch/pytorch/blob/main/torch/,https://docs.nvidia.com/deeplearning/frameworks/pytorch-release-notes/rel-24-04.html,https://badge.fury.io/py/onnx-diagnostic.svg,https://github.com/huggingface/transformers/pull/36311,https://codecov.io/
46+
exclude_patterns: https://www.data.gouv.fr/fr/datasets/r/e3d83ab3-dc52-4c99-abaf-8a38050cc68c,https://dev.azure.com/,https://azure.microsoft.com/en-us/products/devops/pipelines,https://github.com/pytorch/pytorch/pull/83137#issuecomment-1211320670,https://github.com/NVIDIA/TransformerEngine.git@6a9edc38bf9b941b7d369af5103fa8fe0b121d61,https://github.com/pytorch/pytorch/blob/main/torch/,https://docs.nvidia.com/deeplearning/frameworks/pytorch-release-notes/rel-24-04.html,https://badge.fury.io/py/onnx-diagnostic.svg,https://github.com/huggingface/transformers/pull/36311,https://codecov.io/,https://huggingface.co/
4747
# force_pass : true

_unittests/ut_xrun_doc/test_documentation_examples.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ def run_test(self, fold: str, name: str, verbose=0) -> int:
5353
if '"dot" not found in path.' in st:
5454
# dot not installed, this part
5555
# is tested in onnx framework
56-
if verbose:
57-
print(f"failed: {name!r} due to missing dot.")
58-
return 0
56+
raise unittest.SkipTest(f"failed: {name!r} due to missing dot.")
57+
if "We couldn't connect to 'https://huggingface.co'" in st:
58+
raise unittest.SkipTest(f"Connectivity issues due to\n{err}")
5959
raise AssertionError( # noqa: B904
6060
"Example '{}' (cmd: {} - exec_prefix='{}') "
6161
"failed due to\n{}"

_unittests/ut_xrun_doc/test_documentation_recipes.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ def run_test(self, fold: str, name: str, verbose=0) -> int:
5252
if '"dot" not found in path.' in st:
5353
# dot not installed, this part
5454
# is tested in onnx framework
55-
if verbose:
56-
print(f"failed: {name!r} due to missing dot.")
57-
return 0
55+
raise unittest.SkipTest(f"failed: {name!r} due to missing dot.")
56+
if "We couldn't connect to 'https://huggingface.co'" in st:
57+
raise unittest.SkipTest(f"Connectivity issues due to\n{err}")
5858
raise AssertionError( # noqa: B904
5959
"Example '{}' (cmd: {} - exec_prefix='{}') "
6060
"failed due to\n{}"

0 commit comments

Comments
 (0)