Add openstack-map and zuul jobs updates step in repository handling

While renaming or retiring repository, we usually forget to update the
openstack-map and zuul jobs definition. To remind to do those, let's
explicitly add these steps in repository rename/retire process.

Change-Id: I8fd68f1ef4b4b1307d9f5fa3023f0a7544186268
This commit is contained in:
Ghanshyam Mann 2022-09-29 13:42:42 -05:00
parent 1230e41276
commit 4df577d376
1 changed files with 51 additions and 2 deletions

View File

@ -22,6 +22,17 @@ If you rename an existing official OpenStack project, add the
``openstack/project-config`` change so that it can merge after the
rename is done.
Do not forget to update the Zuul job definitions. This is important to
keep the Zuul jobs definition correct and utilize the CI/CD infra resources
in better way. You need to find if retiring repository is used in Zuul
job definition on master and stable branches as ``required-projects``
or any other place. Searching in master jobs is easy via
`codesearch <https://codesearch.openstack.org/>`_ but searching in
stable branches is tricky. Make sure you cleanup all the stable branches
including branches in ``Extended Maintenance`` state. Otherwise it will
leads to the Zuul config errors which can be found in the `Zuul config
errors list <https://zuul.opendev.org/t/openstack/config-errors>`_
The detailed steps for renaming a project are documented in the
section `Project Renames
<https://docs.opendev.org/opendev/infra-manual/latest/creators.html#project-renames>`_
@ -82,7 +93,34 @@ patch needs to merge without any depends-on but you need to use Needed-By
In step 3 of OpenDev Manual patches, use Depends-On on ``governance`` patch
submitted in Step 1.
Step 6: Remove docs.openstack.org content
Use Depends-On on ``governance`` patch submitted in Step 1.
Step 6: Remove repository references
------------------------------------
Make sure all the reference to the retiring repository has been removed
properly. A few of the places to audit and update are:
#. Check all the projects source code and documentation if there is any
reference of retiring repository. Use `codesearch
<https://codesearch.openstack.org/>`_ to check it.
#. Zuul job definitions:
This is important to keep the Zuul jobs definition correct and utilize
the CI/CD infra resources in better way. You need to find if retiring
repository is used in Zuul job definition on master and stable branches
as ``required-projects`` or any other place. Searching in master jobs
is easy via `codesearch <https://codesearch.openstack.org/>`_ but searching
in stable branches is tricky. Make sure you cleanup all the stable branches
including branches in ``Extended Maintenance`` state. Otherwise it will
leads to the Zuul config errors which can found in the `Zuul config
errors list <https://zuul.opendev.org/t/openstack/config-errors>`_
Use Depends-On on ``governance`` patch submitted in Step 1.
Step 7: Remove docs.openstack.org content
-----------------------------------------
Inform users that reach the ``docs.openstack.org`` page of your
@ -96,7 +134,7 @@ will redirect to the repositories' ``README.rst`` file.
Use Depends-On on ``governance`` patch submitted in Step 1.
Step 7: Mark the deliverables as retired
Step 8: Mark the deliverables as retired
----------------------------------------
For maintained openstack series, on ``openstack/releases``, amend the related
@ -121,6 +159,17 @@ deliverable in some specific cases.
Use Depends-On on ``governance`` patch submitted in Step 1.
Step 9: Update openstack-map to remove the retired project
----------------------------------------------------------
If the retired repository/project is listed in `openstack-map
<https://opendev.org/openinfra/openstack-map>`_ , you need to remove
it from there.
For Example: https://review.opendev.org/c/openinfra/openstack-map/+/764544
Use Depends-On on ``governance`` patch submitted in Step 1.
Deprecating a Repository
========================