Skip to content

Commit 9f503be

Browse files
committed
[executorch] Make docs build less flaky
The docs build sometimes fails with an error like ``` mv docs/_build/html /artifacts mv: inter-device move failed: 'docs/_build/html' to '/artifacts/html'; unable to remove target: Directory not empty ``` (from https://github.com/pytorch/executorch/actions/runs/6251991315/job/16974762713#step:11:209) Update the script to force-remove any existing `/artifacts/html` directory before copying, which should avoid this error. Differential Revision: [D49466514](https://our.internmc.facebook.com/intern/diff/D49466514/) ghstack-source-id: 201361283 Pull Request resolved: #420
1 parent 31c80cf commit 9f503be

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/doc-build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ jobs:
4545
cd ..
4646
4747
cp -rf docs/_build/html/* "${RUNNER_DOCS_DIR}"
48+
49+
# Sometimes the artifact directory already contains an "html" subdir.
50+
rm -rf "${RUNNER_ARTIFACT_DIR}/html"
51+
4852
mv docs/_build/html "${RUNNER_ARTIFACT_DIR}"
4953
5054
# Enable preview later. Previews are available publicly

0 commit comments

Comments
 (0)