Skip to content

Commit a858603

Browse files
committed
update
1 parent 8758ffb commit a858603

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.jenkins/build.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ elif [[ "${JOB_BASE_NAME}" == *manager ]]; then
139139

140140
# Step 5: Remove INVISIBLE_CODE_BLOCK from .html/.rst.txt/.ipynb/.py files
141141
bash $DIR/remove_invisible_code_block_batch.sh docs
142+
python .jenkins/validate_tutorials_built.py docs
142143

143144
# Step 6: Copy generated HTML files and static files to S3
144145
7z a manager.7z docs

.jenkins/validate_tutorials_built.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,18 @@ def main():
8888
if (
8989
"Total running time of the script: ( 0 minutes 0.000 seconds)"
9090
in elem.text
91-
and not any(html_file_path.endswith(file) for file in KNOWN_BAD + OK_TO_NOT_RUN)
91+
and not any(
92+
html_file_path.endswith(file) for file in KNOWN_BAD + OK_TO_NOT_RUN
93+
)
9294
):
9395
did_not_run.append(html_file_path)
9496

9597
if len(did_not_run) != 0:
9698
raise RuntimeError(
97-
f"File(s) {' '.join(did_not_run)} are not known bad but ran in 0.000 sec, meaning that any python code in this tutorial probably didn't run"
99+
"The following file(s) are not known bad but ran in 0.000 sec, meaning that any "
100+
+ "python code in this tutorial probably didn't run:\n{}".format(
101+
"\n".join(did_not_run)
102+
)
98103
)
99104

100105

0 commit comments

Comments
 (0)