Commit 67762993 authored by moto's avatar moto Committed by Facebook GitHub Bot
Browse files

Tweak build doc job to avoid timeout (#2399)

Summary:
After https://github.com/pytorch/audio/issues/2395, build_doc job is exceeding default no-output-timeout
threshould (10m).

This commit updates the timeout threshold to 30m.
Also it moves the installation of tools to the previous step.

Pull Request resolved: https://github.com/pytorch/audio/pull/2399

Reviewed By: carolineechen

Differential Revision: D36539022

Pulled By: mthrok

fbshipit-source-id: 391764a0fb5bf87cfb2beaab401a90dcb56493e5
parent 010583b6
...@@ -827,17 +827,18 @@ jobs: ...@@ -827,17 +827,18 @@ jobs:
source /usr/local/etc/profile.d/conda.sh && conda activate python${PYTHON_VERSION} source /usr/local/etc/profile.d/conda.sh && conda activate python${PYTHON_VERSION}
conda install -v -y -c pytorch-${UPLOAD_CHANNEL} pytorch cudatoolkit=${CU_VERSION:2:2}.${CU_VERSION:4} -c conda-forge conda install -v -y -c pytorch-${UPLOAD_CHANNEL} pytorch cudatoolkit=${CU_VERSION:2:2}.${CU_VERSION:4} -c conda-forge
conda install -v -y -c file://$HOME/workspace/conda-bld torchaudio conda install -v -y -c file://$HOME/workspace/conda-bld torchaudio
conda install -y pandoc 'ffmpeg<5'
apt update && apt-get -qq install -y git make
pip install -r docs/requirements.txt -r docs/requirements-tutorials.txt
- run: - run:
name: Build docs name: Build docs
command: | command: |
cd docs
apt update && apt-get -qq install -y git make
source /usr/local/etc/profile.d/conda.sh && conda activate python${PYTHON_VERSION} source /usr/local/etc/profile.d/conda.sh && conda activate python${PYTHON_VERSION}
pip install -r requirements.txt -r requirements-tutorials.txt cd docs
conda install -y pandoc 'ffmpeg<5'
make 'SPHINXOPTS=-W' html make 'SPHINXOPTS=-W' html
environment: environment:
BUILD_GALLERY: 1 BUILD_GALLERY: 1
no_output_timeout: 30m
- persist_to_workspace: - persist_to_workspace:
root: ./ root: ./
paths: paths:
...@@ -866,7 +867,6 @@ jobs: ...@@ -866,7 +867,6 @@ jobs:
DONE DONE
- run: - run:
name: Upload docs name: Upload docs
no_output_timeout: 30m
command: | command: |
# Don't use "checkout" step since it uses ssh, which cannot git push # Don't use "checkout" step since it uses ssh, which cannot git push
# https://circleci.com/docs/2.0/configuration-reference/#checkout # https://circleci.com/docs/2.0/configuration-reference/#checkout
......
...@@ -827,17 +827,18 @@ jobs: ...@@ -827,17 +827,18 @@ jobs:
source /usr/local/etc/profile.d/conda.sh && conda activate python${PYTHON_VERSION} source /usr/local/etc/profile.d/conda.sh && conda activate python${PYTHON_VERSION}
conda install -v -y -c pytorch-${UPLOAD_CHANNEL} pytorch cudatoolkit=${CU_VERSION:2:2}.${CU_VERSION:4} -c conda-forge conda install -v -y -c pytorch-${UPLOAD_CHANNEL} pytorch cudatoolkit=${CU_VERSION:2:2}.${CU_VERSION:4} -c conda-forge
conda install -v -y -c file://$HOME/workspace/conda-bld torchaudio conda install -v -y -c file://$HOME/workspace/conda-bld torchaudio
conda install -y pandoc 'ffmpeg<5'
apt update && apt-get -qq install -y git make
pip install -r docs/requirements.txt -r docs/requirements-tutorials.txt
- run: - run:
name: Build docs name: Build docs
command: | command: |
cd docs
apt update && apt-get -qq install -y git make
source /usr/local/etc/profile.d/conda.sh && conda activate python${PYTHON_VERSION} source /usr/local/etc/profile.d/conda.sh && conda activate python${PYTHON_VERSION}
pip install -r requirements.txt -r requirements-tutorials.txt cd docs
conda install -y pandoc 'ffmpeg<5'
make 'SPHINXOPTS=-W' html make 'SPHINXOPTS=-W' html
environment: environment:
BUILD_GALLERY: 1 BUILD_GALLERY: 1
no_output_timeout: 30m
- persist_to_workspace: - persist_to_workspace:
root: ./ root: ./
paths: paths:
...@@ -866,7 +867,6 @@ jobs: ...@@ -866,7 +867,6 @@ jobs:
DONE DONE
- run: - run:
name: Upload docs name: Upload docs
no_output_timeout: 30m
command: | command: |
# Don't use "checkout" step since it uses ssh, which cannot git push # Don't use "checkout" step since it uses ssh, which cannot git push
# https://circleci.com/docs/2.0/configuration-reference/#checkout # https://circleci.com/docs/2.0/configuration-reference/#checkout
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment