Browse Source

Remove zuul-migrate

This was intended as a one-time helper program to help people upgrade
from Zuul v2 to v3.  It did not cover all use cases, and has not been
kept up to date or improved.  It's time to remove it before the v4
release.

Change-Id: I12cdcedb5baabd8fa0937a6ea21590259093ead1
changes/45/776245/1
James E. Blair 8 months ago
parent
commit
f1e7ffab93
  1. 12
      .zuul.yaml
  2. 26
      playbooks/zuul-migrate/post.yaml
  3. 10
      playbooks/zuul-migrate/run.yaml
  4. 3
      setup.cfg
  5. 1744
      zuul/cmd/migrate.py

12
.zuul.yaml

@ -224,9 +224,6 @@
vars:
tox_install_bindep: false
- tox-py36:
irrelevant-files:
- zuul/cmd/migrate.py
- playbooks/zuul-migrate/.*
nodeset: ubuntu-bionic
timeout: 4800 # 80 minutes
vars: &zuul_tox_vars
@ -238,9 +235,6 @@
YARN_REGISTRY: "https://{{ zuul_site_mirror_fqdn }}:4443/registry.npmjs"
post-run: playbooks/common/post-system-logs.yaml
- tox-py38:
irrelevant-files:
- zuul/cmd/migrate.py
- playbooks/zuul-migrate/.*
timeout: 4800 # 80 minutes
nodeset: ubuntu-bionic
vars: *zuul_tox_vars
@ -276,16 +270,10 @@
vars:
tox_install_bindep: false
- tox-py36:
irrelevant-files:
- zuul/cmd/migrate.py
- playbooks/zuul-migrate/.*
nodeset: ubuntu-bionic
timeout: 4800 # 80 minutes
vars: *zuul_tox_vars
- tox-py38:
irrelevant-files:
- zuul/cmd/migrate.py
- playbooks/zuul-migrate/.*
timeout: 4800 # 80 minutes
nodeset: ubuntu-bionic
vars: *zuul_tox_vars

26
playbooks/zuul-migrate/post.yaml

@ -1,26 +0,0 @@
- hosts: all
tasks:
- name: Collect openstack-zuul-jobs generated job config
synchronize:
dest: "{{ zuul.executor.log_root }}/openstack-zuul-jobs"
mode: pull
src: "src/opendev.org/openstack/openstack-zuul-jobs/zuul.d"
verify_host: true
no_log: true
- name: Collect project generated job config
synchronize:
dest: "{{ zuul.executor.log_root }}/openstack-zuul-jobs"
mode: pull
src: "src/opendev.org/openstack/project-config/zuul.d"
verify_host: true
no_log: true
- name: Collect generated playbooks
synchronize:
dest: "{{ zuul.executor.log_root }}/playbooks"
mode: pull
src: "src/opendev.org/openstack/openstack-zuul-jobs/playbooks/legacy"
verify_host: true
no_log: true

10
playbooks/zuul-migrate/run.yaml

@ -1,10 +0,0 @@
- hosts: all
tasks:
- name: Install migration dependencies
command: "python3 -m pip install --user src/opendev.org/zuul/zuul[migrate]"
- name: Migrate the data
command: tools/run-migration.sh -v --final
args:
chdir: src/opendev.org/zuul/zuul

3
setup.cfg

@ -33,7 +33,6 @@ console_scripts =
zuul-executor = zuul.cmd.executor:main
zuul-bwrap = zuul.driver.bubblewrap:main
zuul-web = zuul.cmd.web:main
zuul-migrate = zuul.cmd.migrate:main
zuul-fingergw = zuul.cmd.fingergw:main
zuul-manage-ansible = zuul.cmd.manage_ansible:main
@ -46,8 +45,6 @@ warning-is-error = 1
[extras]
mysql_reporter=
PyMySQL
migrate=
jenkins-job-builder==1.6.2
# The container image build process will look at the python extras and install
# any that match the target container name. It makes a container image for
# every console_script listed above. The extra name must have underscores.

1744
zuul/cmd/migrate.py

File diff suppressed because it is too large
Loading…
Cancel
Save