Skip to content

Commit 8758ffb

Browse files
committed
refactor
1 parent 1172e71 commit 8758ffb

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.jenkins/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ if [[ "${JOB_BASE_NAME}" == *worker_* ]]; then
105105

106106
# Step 5: Remove INVISIBLE_CODE_BLOCK from .html/.rst.txt/.ipynb/.py files
107107
bash $DIR/remove_invisible_code_block_batch.sh docs
108-
python .jenkins/validate_tutorial_built_correct.py docs
108+
python .jenkins/validate_tutorials_built.py docs
109109

110110
# Step 6: Copy generated files to S3, tag with commit ID
111111
7z a worker_${WORKER_ID}.7z docs

.jenkins/validate_tutorial_built_correct.py renamed to .jenkins/validate_tutorials_built.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,16 @@
44

55
from bs4 import BeautifulSoup
66

7+
# files that are ok to have 0 min 0 sec time, probably because they don't have any python code
8+
OK_TO_NOT_RUN = [
9+
"beginner/basics/intro.html",
10+
]
11+
712
KNOWN_BAD = [
813
"beginner/translation_transformer.html",
914
"beginner/torchtext_translation.html",
1015
"beginner/profiler.html",
1116
"beginner/saving_loading_models.html",
12-
"beginner/basics/intro.html",
1317
"beginner/introyt/captumyt.html",
1418
"beginner/introyt/trainingyt.html",
1519
"beginner/examples_nn/polynomial_module.html",
@@ -61,6 +65,7 @@
6165
"recipes/recipes/defining_a_neural_network.html",
6266
"recipes/recipes/timer_quick_start.html",
6367
"recipes/recipes/amp_recipe.html",
68+
"recipes/recipes/Captum_Recipe.html",
6469
]
6570

6671

@@ -83,7 +88,7 @@ def main():
8388
if (
8489
"Total running time of the script: ( 0 minutes 0.000 seconds)"
8590
in elem.text
86-
and not any(html_file_path.endswith(file) for file in KNOWN_BAD)
91+
and not any(html_file_path.endswith(file) for file in KNOWN_BAD + OK_TO_NOT_RUN)
8792
):
8893
did_not_run.append(html_file_path)
8994

0 commit comments

Comments
 (0)