Skip to content

Commit

Permalink
ci: resolve issue where docs failures do not appear in presubmits (#1…
Browse files Browse the repository at this point in the history
…2312)

A bug was introduced in
#12273 and
#12274 which
prevents docs failures from appearing in presubmits
  • Loading branch information
parthea authored Feb 14, 2024
1 parent c23398a commit c04f12e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions ci/run_single_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,21 +50,25 @@ case ${TEST_TYPE} in
;;
docs)
nox -s docs
# This line needs to be directly after `nox -s docs` in order
# for the failure to appear in Github presubmits
retval=$?
# Clean up built docs and python cache after the build process to avoid
# `[Errno 28] No space left on device`
# See https://github.com/googleapis/google-cloud-python/issues/12271
rm -rf docs/_build
find . | grep -E "(__pycache__)" | xargs rm -rf
retval=$?
;;
docfx)
nox -s docfx
# This line needs to be directly after `nox -s docfx` in order
# for the failure to appear in Github presubmits
retval=$?
# Clean up built docs and python cache after the build process to avoid
# `[Errno 28] No space left on device`
# See https://github.com/googleapis/google-cloud-python/issues/12271
rm -rf docs/_build
find . | grep -E "(__pycache__)" | xargs rm -rf
retval=$?
;;
prerelease)
nox -s prerelease_deps-3.12
Expand Down

0 comments on commit c04f12e

Please sign in to comment.