Jump to: navigation, search

Difference between revisions of "Rally/RallyGates"

(Created page with "===How to create custom rally-gate job=== To create rally-gate job, you should create rally-scenarios directory at the root of your project. Normally this directory contains...")
 
(How to create custom rally-gate job)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
===How to create custom rally-gate job===
+
The page has been moved to https://rally.readthedocs.io
 
 
To create rally-gate job, you should create rally-scenarios directory at the root of your project.
 
 
 
Normally this directory contains only {pojectname}.yaml, but easily can be added more scenarios and jobs.
 
 
 
To {projectname}.yaml was ran on gate, you need to add "rally-jobs" to "jobs" section of projects.yaml in openstack-infra/config.
 
 
 
For example in glance project:
 
 
 
modules/openstack_project/files/jenkins_job_builder/config/projects.yaml:
 
 
 
- project:
 
    name: glance
 
    github-org: openstack
 
    node: bare-precise
 
    tarball-site: tarballs.openstack.org
 
    doc-publisher-site: docs.openstack.org
 
 
 
    jobs:
 
      - python-jobs
 
      - python-havana-bitrot-jobs
 
      - openstack-publish-jobs
 
      - translation-jobs
 
      - rally-jobs
 
 
 
 
 
and add check-rally-dsvm-{projectname} to modules/openstack_project/files/zuul/layout.yaml:
 
 
 
  - name: openstack/glance
 
    template:
 
      - name: python-jobs
 
      - name: openstack-server-publish-jobs
 
      - name: periodic-havana
 
      - name: check-requirements
 
      - name: integrated-gate
 
    check:
 
      - check-devstack-dsvm-cells
 
      - check-tempest-dsvm-postgres-full
 
      - gate-tempest-dsvm-large-ops
 
      - gate-tempest-dsvm-neutron-large-ops
 
      - check-rally-dsvm-glance
 
 
 
 
 
To add one more scenario and job, you need to add {scenarioname}.yaml file here,
 
and check-rally-dsvm-{scenarioname} in projects.yaml. For example:
 
 
 
add rally-scenarios/myscenario.yaml to rally-scenarios directory in you project
 
 
 
and modules/openstack_project/files/jenkins_job_builder/config/projects.yaml:
 
 
 
- project:
 
    name: glance
 
    github-org: openstack
 
    node: bare-precise
 
    tarball-site: tarballs.openstack.org
 
    doc-publisher-site: docs.openstack.org
 
 
 
    jobs:
 
      - python-jobs
 
      - python-havana-bitrot-jobs
 
      - openstack-publish-jobs
 
      - translation-jobs
 
      - rally-jobs
 
      - 'check-rally-dsvm-{name}':
 
        name: myscenario
 
 
 
and add check-rally-dsvm-myscenario to modules/openstack_project/files/zuul/layout.yaml:
 
 
 
  - name: openstack/glance
 
    template:
 
      - name: python-jobs
 
      - name: openstack-server-publish-jobs
 
      - name: periodic-havana
 
      - name: check-requirements
 
      - name: integrated-gate
 
    check:
 
      - check-devstack-dsvm-cells
 
      - check-tempest-dsvm-postgres-full
 
      - gate-tempest-dsvm-large-ops
 
      - gate-tempest-dsvm-neutron-large-ops
 
      - check-rally-dsvm-myscenario
 

Latest revision as of 12:58, 30 October 2017

The page has been moved to https://rally.readthedocs.io