Switch remaining docs publications jobs to sphinx

This gets the main publish-openstack-sphinx jobs, plus api-ref,
api-guide, deploy-guide, install-guide and placement-api-ref.

The write_root_marker and prepare-docs-for-afs roles have been udpated
to have good defaults and also to honor sphinx_build_dir as a variable,
so remove setting those explicitly.

Depends-On: I7c3d578a00a4aa4c9e175f5f83e3171c6f6a4a61
Change-Id: I9ed0b02d6ca20a6b679507c4d988531abc55b09d
This commit is contained in:
Monty Taylor 2017-12-05 12:33:12 -06:00 committed by Andreas Jaeger
parent d8c7050826
commit 6e0cb7c8d1
13 changed files with 36 additions and 51 deletions

View File

@ -1,11 +1,8 @@
- hosts: all - hosts: all
roles: roles:
- fetch-tox-output
- role: write-root-marker - role: write-root-marker
root_marker_dir: "src/{{ zuul.project.canonical_name }}/api-guide/build/html"
when: zuul_success | bool when: zuul_success | bool
- role: fetch-sphinx-output - role: fetch-sphinx-output
sphinx_output_src: "{{ zuul.project.src_dir }}/api-guide/build/html/"
zuul_executor_dest: "{{ zuul.executor.work_root }}/artifacts" zuul_executor_dest: "{{ zuul.executor.work_root }}/artifacts"
when: zuul_success | bool when: zuul_success | bool

View File

@ -1,11 +1,8 @@
- hosts: all - hosts: all
roles: roles:
- fetch-tox-output
- role: write-root-marker - role: write-root-marker
root_marker_dir: "src/{{ zuul.project.canonical_name }}/api-ref/build/html"
when: zuul_success | bool when: zuul_success | bool
- role: fetch-sphinx-output - role: fetch-sphinx-output
sphinx_output_src: "{{ zuul.project.src_dir }}/api-ref/build/html/"
zuul_executor_dest: "{{ zuul.executor.work_root }}/artifacts" zuul_executor_dest: "{{ zuul.executor.work_root }}/artifacts"
when: zuul_success | bool when: zuul_success | bool

View File

@ -1,11 +1,8 @@
- hosts: all - hosts: all
roles: roles:
- fetch-tox-output
- role: write-root-marker - role: write-root-marker
root_marker_dir: "src/{{ zuul.project.canonical_name }}/doc/build/html"
when: zuul_success | bool when: zuul_success | bool
- role: fetch-sphinx-output - role: fetch-sphinx-output
sphinx_output_src: "{{ zuul.project.src_dir }}/doc/build/html/"
zuul_executor_dest: "{{ zuul.executor.work_root }}/artifacts" zuul_executor_dest: "{{ zuul.executor.work_root }}/artifacts"
when: zuul_success | bool when: zuul_success | bool

View File

@ -1,14 +1,10 @@
- hosts: all - hosts: all
roles: roles:
- role: prepare-docs-for-afs - role: prepare-docs-for-afs
doc_toplevel_dir: "deploy-guide"
when: zuul_success | bool when: zuul_success | bool
- fetch-tox-output
- role: write-root-marker - role: write-root-marker
root_marker_dir: "src/{{ zuul.project.canonical_name }}/deploy-guide/build/html"
when: zuul_success | bool when: zuul_success | bool
- role: fetch-sphinx-output - role: fetch-sphinx-output
sphinx_output_src: "{{ zuul.project.src_dir }}/deploy-guide/build/html/"
zuul_executor_dest: "{{ zuul.executor.work_root }}/artifacts" zuul_executor_dest: "{{ zuul.executor.work_root }}/artifacts"
when: zuul_success | bool when: zuul_success | bool

View File

@ -1,14 +1,10 @@
- hosts: all - hosts: all
roles: roles:
- role: prepare-docs-for-afs - role: prepare-docs-for-afs
doc_toplevel_dir: "install-guide"
when: zuul_success | bool when: zuul_success | bool
- fetch-tox-output
- role: write-root-marker - role: write-root-marker
root_marker_dir: "src/{{ zuul.project.canonical_name }}/install-guide/build/html"
when: zuul_success | bool when: zuul_success | bool
- role: fetch-sphinx-output - role: fetch-sphinx-output
sphinx_output_src: "{{ zuul.project.src_dir }}/install-guide/build/html/"
zuul_executor_dest: "{{ zuul.executor.work_root }}/artifacts" zuul_executor_dest: "{{ zuul.executor.work_root }}/artifacts"
when: zuul_success | bool when: zuul_success | bool

View File

@ -1,8 +1,6 @@
- hosts: all - hosts: all
roles: roles:
- fetch-tox-output
- role: fetch-sphinx-output - role: fetch-sphinx-output
sphinx_output_src: "src/{{ zuul.project.canonical_name }}/doc/build/html/"
zuul_executor_dest: "{{ zuul.executor.work_root }}/artifacts" zuul_executor_dest: "{{ zuul.executor.work_root }}/artifacts"
when: zuul_success | bool when: zuul_success | bool

View File

@ -1,11 +1,8 @@
- hosts: all - hosts: all
roles: roles:
- fetch-tox-output
- role: write-root-marker - role: write-root-marker
root_marker_dir: "src/{{ zuul.project.canonical_name }}/placement-api-ref/build/html"
when: zuul_success | bool when: zuul_success | bool
- role: fetch-sphinx-output - role: fetch-sphinx-output
sphinx_output_src: "{{ zuul.project.src_dir }}/placement-api-ref/build/html/"
zuul_executor_dest: "{{ zuul.executor.work_root }}/artifacts" zuul_executor_dest: "{{ zuul.executor.work_root }}/artifacts"
when: zuul_success | bool when: zuul_success | bool

View File

@ -1,10 +1,8 @@
- hosts: all - hosts: all
roles: roles:
- role: write-root-marker - role: write-root-marker
root_marker_dir: "{{ zuul.project.src_dir }}/releasenotes/build/html/"
when: zuul_success | bool when: zuul_success | bool
- role: fetch-sphinx-output - role: fetch-sphinx-output
sphinx_output_src: "{{ zuul.project.src_dir }}/releasenotes/build/html/"
zuul_executor_dest: "{{ zuul.executor.work_root }}/artifacts" zuul_executor_dest: "{{ zuul.executor.work_root }}/artifacts"
when: zuul_success | bool when: zuul_success | bool

View File

@ -0,0 +1,4 @@
# TODO(mordred) ZOMG DELETE THIS
- hosts: all
roles:
- neutron-horizon-hack

View File

@ -1,9 +1,7 @@
- hosts: all - hosts: all
roles: roles:
- role: write-root-marker - role: write-root-marker
root_marker_dir: "src/{{ zuul.project.canonical_name }}/doc/build/html"
when: zuul_success | bool when: zuul_success | bool
- role: fetch-sphinx-output - role: fetch-sphinx-output
sphinx_output_src: "src/{{ zuul.project.canonical_name }}/doc/build/html/"
zuul_executor_dest: "{{ zuul.executor.work_root }}/artifacts" zuul_executor_dest: "{{ zuul.executor.work_root }}/artifacts"
when: zuul_success | bool when: zuul_success | bool

View File

@ -2,5 +2,4 @@
roles: roles:
- prepare-infra-docs-for-afs - prepare-infra-docs-for-afs
- role: fetch-sphinx-output - role: fetch-sphinx-output
sphinx_output_src: "src/{{ zuul.project.canonical_name }}/doc/build/html/"
zuul_executor_dest: "{{ zuul.executor.work_root }}/artifacts" zuul_executor_dest: "{{ zuul.executor.work_root }}/artifacts"

View File

@ -2,5 +2,4 @@
roles: roles:
- prepare-docs-for-afs - prepare-docs-for-afs
- role: fetch-sphinx-output - role: fetch-sphinx-output
sphinx_output_src: "src/{{ zuul.project.canonical_name }}/doc/build/html/"
zuul_executor_dest: "{{ zuul.executor.work_root }}/artifacts" zuul_executor_dest: "{{ zuul.executor.work_root }}/artifacts"

View File

@ -196,21 +196,24 @@
Publishes depending on branch to latest/ (for master), or the Publishes depending on branch to latest/ (for master), or the
basename of the branch like pike (for stable/pike). basename of the branch like pike (for stable/pike).
final: true final: true
pre-run: playbooks/project-config/pre-tox.yaml pre-run:
run: playbooks/project-config/run-tox.yaml - playbooks/sphinx/pre.yaml
# TODO(mordred) REMOVE THIS HACK
- playbooks/sphinx/neutron-horizon-hack.yaml
run: playbooks/sphinx/run.yaml
post-run: post-run:
- playbooks/project-config/post-tox.yaml
- playbooks/sphinx/post.yaml - playbooks/sphinx/post.yaml
- playbooks/publish/openstack-afs.yaml - playbooks/publish/openstack-afs.yaml
required-projects: required-projects:
- name: openstack/requirements - name: openstack/requirements
# TODO(mordred) REMOVE THIS HACK ONCE neutron-horizon-hack is removed
- name: openstack/neutron
- name: openstack/horizon
roles: roles:
- zuul: openstack-infra/zuul-jobs - zuul: openstack-infra/zuul-jobs
- zuul: openstack-infra/openstack-zuul-jobs - zuul: openstack-infra/openstack-zuul-jobs
vars: vars:
tox_constraints_file: '{{ ansible_user_dir }}/src/git.openstack.org/openstack/requirements/upper-constraints.txt' constraints_file: '{{ ansible_user_dir }}/src/git.openstack.org/openstack/requirements/upper-constraints.txt'
tox_envlist: venv
tox_extra_args: -vv python setup.py build_sphinx
secrets: secrets:
- secret: afsdocs_secret - secret: afsdocs_secret
name: afs name: afs
@ -362,6 +365,7 @@
- zuul: openstack-infra/zuul-jobs - zuul: openstack-infra/zuul-jobs
vars: vars:
constraints_file: '{{ ansible_user_dir }}/src/git.openstack.org/openstack/requirements/upper-constraints.txt' constraints_file: '{{ ansible_user_dir }}/src/git.openstack.org/openstack/requirements/upper-constraints.txt'
sphinx_build_dir: releasenotes/build
secrets: secrets:
- secret: afsdocs_secret - secret: afsdocs_secret
name: afs name: afs
@ -505,7 +509,6 @@
description: | description: |
Publish the publication index Publish the publication index
final: true final: true
pre-run: playbooks/project-config/pre-tox.yaml
run: playbooks/publications-index/run.yaml run: playbooks/publications-index/run.yaml
post-run: playbooks/publish/publications-index.yaml post-run: playbooks/publish/publications-index.yaml
allowed-projects: allowed-projects:
@ -524,7 +527,6 @@
description: | description: |
Publish one publication from openstack-infra/publications Publish one publication from openstack-infra/publications
final: true final: true
pre-run: playbooks/project-config/pre-tox.yaml
run: playbooks/publications/run.yaml run: playbooks/publications/run.yaml
post-run: playbooks/publish/publications.yaml post-run: playbooks/publish/publications.yaml
allowed-projects: allowed-projects:
@ -728,8 +730,8 @@
description: | description: |
Publish api-guide document to Publish api-guide document to
https://developer.openstack.org/api-guide. https://developer.openstack.org/api-guide.
pre-run: playbooks/project-config/pre-tox.yaml pre-run: playbooks/sphinx/pre.yaml
run: playbooks/project-config/run-tox.yaml run: playbooks/sphinx/run.yaml
post-run: playbooks/publish/api-guide.yaml post-run: playbooks/publish/api-guide.yaml
roles: roles:
- zuul: openstack-infra/zuul-jobs - zuul: openstack-infra/zuul-jobs
@ -738,7 +740,8 @@
# for changes on other branches. # for changes on other branches.
branches: master branches: master
vars: vars:
tox_envlist: api-guide sphinx_source_dir: api-guide/source
sphinx_build_dir: api-guide/build
secrets: secrets:
- secret: afsdeveloper_secret - secret: afsdeveloper_secret
name: afs name: afs
@ -748,8 +751,8 @@
description: | description: |
Publish api-ref document to Publish api-ref document to
https://developer.openstack.org/api-ref. https://developer.openstack.org/api-ref.
pre-run: playbooks/project-config/pre-tox.yaml pre-run: playbooks/sphinx/pre.yaml
run: playbooks/project-config/run-tox.yaml run: playbooks/sphinx/run.yaml
post-run: playbooks/publish/api-ref.yaml post-run: playbooks/publish/api-ref.yaml
roles: roles:
- zuul: openstack-infra/zuul-jobs - zuul: openstack-infra/zuul-jobs
@ -758,7 +761,8 @@
# for changes on other branches. # for changes on other branches.
branches: master branches: master
vars: vars:
tox_envlist: api-ref sphinx_build_dir: api-ref/build
sphinx_source_dir: api-ref/source
secrets: secrets:
- secret: afsdeveloper_secret - secret: afsdeveloper_secret
name: afs name: afs
@ -768,8 +772,10 @@
description: | description: |
Publish placement-api-ref document to Publish placement-api-ref document to
https://developer.openstack.org/api-ref/placement. https://developer.openstack.org/api-ref/placement.
pre-run: playbooks/project-config/pre-tox.yaml allowed-projects:
run: playbooks/project-config/run-tox.yaml - openstack/nova
pre-run: playbooks/sphinx/pre.yaml
run: playbooks/sphinx/run.yaml
post-run: playbooks/publish/placement-api-ref.yaml post-run: playbooks/publish/placement-api-ref.yaml
roles: roles:
- zuul: openstack-infra/zuul-jobs - zuul: openstack-infra/zuul-jobs
@ -778,7 +784,8 @@
# for changes on other branches. # for changes on other branches.
branches: master branches: master
vars: vars:
tox_envlist: placement-api-ref sphinx_build_dir: placement-api-ref/build
sphinx_source_dir: placement-api-ref/source
secrets: secrets:
- secret: afsdeveloper_secret - secret: afsdeveloper_secret
name: afs name: afs
@ -788,8 +795,8 @@
description: | description: |
Publish install-guide document to Publish install-guide document to
https://docs.openstack.org/project-install-guide/ https://docs.openstack.org/project-install-guide/
pre-run: playbooks/project-config/pre-tox.yaml pre-run: playbooks/sphinx/pre.yaml
run: playbooks/project-config/run-tox.yaml run: playbooks/sphinx/run.yaml
post-run: playbooks/publish/install-guide.yaml post-run: playbooks/publish/install-guide.yaml
roles: roles:
- zuul: openstack-infra/zuul-jobs - zuul: openstack-infra/zuul-jobs
@ -799,7 +806,8 @@
branches: branches:
- stable/ocata - stable/ocata
vars: vars:
tox_envlist: install-guide sphinx_build_dir: install-guide/build
sphinx_source_dir: install-guide/source
secrets: secrets:
- secret: afsdocs_secret - secret: afsdocs_secret
name: afs name: afs
@ -809,8 +817,8 @@
description: | description: |
Publish deploy-guide document to Publish deploy-guide document to
https://docs.openstack.org/project-deploy-guide/ https://docs.openstack.org/project-deploy-guide/
pre-run: playbooks/project-config/pre-tox.yaml pre-run: playbooks/sphinx/pre.yaml
run: playbooks/project-config/run-tox.yaml run: playbooks/sphinx/run.yaml
post-run: playbooks/publish/deploy-guide.yaml post-run: playbooks/publish/deploy-guide.yaml
roles: roles:
- zuul: openstack-infra/zuul-jobs - zuul: openstack-infra/zuul-jobs
@ -819,7 +827,8 @@
# for changes on other branches. # for changes on other branches.
branches: master branches: master
vars: vars:
tox_envlist: deploy-guide sphinx_build_dir: deploy-guide/build
sphinx_source_dir: deploy-guide/source
secrets: secrets:
- secret: afsdocs_secret - secret: afsdocs_secret
name: afs name: afs