<commit_before>- job-template:
    name: 'gate-manila-tempest-dsvm-{description}'
    node: devstack-trusty

    wrappers:
      - build-timeout:
          timeout: 75
      - timestamps

    builders:
      - print-template-name:
          template-name: "{template-name}"
      - link-logs
      - net-info
      - devstack-checkout
      - shell: |
          #!/bin/bash -xe
          export PYTHONUNBUFFERED=true
          export DEVSTACK_GATE_TIMEOUT=70
          export DEVSTACK_GATE_NEUTRON=1
          export DEVSTACK_GATE_POSTGRES={postgres_enabled}
          export PROJECTS="openstack/python-manilaclient $PROJECTS"
          export ENABLED_SERVICES=tempest

          # Enable manila devstack plugin. Provided repo should be
          # cloned by zuul before devstack run and below provided
          # link should not be used.
          export DEVSTACK_LOCAL_CONFIG="enable_plugin manila git://git.openstack.org/openstack/manila"

          # Keep localrc to be able to set some vars in pre_test_hook
          export KEEP_LOCALRC=1

          function pre_test_hook {{
              source $BASE/new/manila/contrib/ci/pre_test_hook.sh \
                  # Variable 'dhss' means 'driver handles share servers',
                  # boolean-like.
                  {dhss} \
                  # Driver codename for configuring specific share driver
                  {driver} \
                  # Configure Manila for work in 'singlebackend' or
                  # 'multibackend' mode.
                  {back_end_type}
          }}
          export -f pre_test_hook

          function post_test_hook {{
              source $BASE/new/manila/contrib/ci/post_test_hook.sh \
                  # Configure and run tempest on 'singlebackend' or
                  # 'multibackend' manila installation.
                  {back_end_type} \
                  # Set of test suites can differ based on used share driver
                  {driver} \
                  # 'test_type' can have values as 'api' and 'scenario'
                  # that is used for running of appropriate test suites.
                  {test_type} \
                  # Set of test suites can differ depending of DB back-end
                  {postgres_enabled}
          }}
          export -f post_test_hook

          cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
          ./safe-devstack-vm-gate-wrap.sh

    publishers:
      - devstack-logs
      - console-log

- job:
    name: gate-manilaclient-dsvm-neutron-functional
    node: devstack-trusty

    wrappers:
      - build-timeout:
          timeout: 75
      - timestamps

    builders:<commit_msg>Fix Tempest jobs for Manila project<commit_after>- job-template:
    name: 'gate-manila-tempest-dsvm-{description}'
    node: devstack-trusty

    wrappers:
      - build-timeout:
          timeout: 75
      - timestamps

    builders:
      - print-template-name:
          template-name: "{template-name}"
      - link-logs
      - net-info
      - devstack-checkout
      - shell: |
          #!/bin/bash -xe
          export PYTHONUNBUFFERED=true
          export DEVSTACK_GATE_TIMEOUT=70
          export DEVSTACK_GATE_NEUTRON=1
          export DEVSTACK_GATE_POSTGRES={postgres_enabled}
          export PROJECTS="openstack/python-manilaclient $PROJECTS"
          export ENABLED_SERVICES=tempest

          # Enable manila devstack plugin. Provided repo should be
          # cloned by zuul before devstack run and below provided
          # link should not be used.
          export DEVSTACK_LOCAL_CONFIG="enable_plugin manila git://git.openstack.org/openstack/manila"

          # Keep localrc to be able to set some vars in pre_test_hook
          export KEEP_LOCALRC=1

          function pre_test_hook {{
              # 'dhss' - acronym for 'Driver Handles Share Servers',
              # defines mode of a share driver. Boolean-like.
              # 'driver' - codename of a share driver to configure.
              # 'back_end_type' - defines which installation Manila should
              # have - either 'singlebackend' or 'multibackend'.
              source $BASE/new/manila/contrib/ci/pre_test_hook.sh \
                  {dhss} \
                  {driver} \
                  {back_end_type}
          }}
          export -f pre_test_hook

          function post_test_hook {{
              # 'back_end_type' - defines which installation Manila is
              # configured to - either 'singlebackend' or 'multibackend'.
              # 'driver' - codename of a share driver that is configured in
              # Manila. It is used for enabling/disabling tests that are not
              # supported by share driver that is used.
              # 'test_type' - defines which set of test suites should be used,
              # can have 'api' and 'scenario' values.
              # 'postgres_enabled' - set of test suites depends on DB backend
              # in some cases, so it is provided explicitely. Boolean-like.
              source $BASE/new/manila/contrib/ci/post_test_hook.sh \
                  {back_end_type} \
                  {driver} \
                  {test_type} \
                  {postgres_enabled}
          }}
          export -f post_test_hook

          cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
          ./safe-devstack-vm-gate-wrap.sh

    publishers:
      - devstack-logs
      - console-log

- job:
    name: gate-manilaclient-dsvm-neutron-functional
    node: devstack-trusty

    wrappers:
      - build-timeout:
          timeout: 75
      - timestamps

    builders:
{'fraction_non_alphanumeric': 0.07701885450017787, 'fraction_numerical': 0.002845962290999644, 'mean_word_length': 1.6649289099526066, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '779250', 'n_tokens_mistral': 1640, 'n_tokens_neox': 1555, 'n_words': 406}