<commit_before>- job-template:
    name: 'gate-trove-buildimage-{datastore}'
    node: ubuntu-trusty

    builders:
      - link-logs
      - net-info
      - gerrit-git-prep
      - install-distro-packages
      - shell: |
          #!/bin/bash -xe
          sudo mkdir -p /opt/trove-image-build
          sudo chown $(whoami) /opt/trove-image-build
          export DEST=/opt/trove-image-build
          export KEY_DIR=`pwd`/scripts/files/keys
          cd scripts
          ./redstack build-image {datastore}
          mv $HOME/images/ubuntu_{datastore}/ubuntu_{datastore}.qcow2 $WORKSPACE/{datastore}.qcow2

    publishers:
      - scp:
          site: 'tarballs.openstack.org'
          files:
            - source: '{datastore}.qcow2'
              target: 'tarballs/trove/images/ubuntu'
              keep-hierarchy: false
              copy-after-failure: false
      - console-log


- job-template:
    name: 'gate-trove-functional-dsvm-{datastore}{job-suffix}'
    node: ubuntu-trusty

    wrappers:
      - build-timeout:
          timeout: 150
      - timestamps

    builders:
      - link-logs
      - net-info
      - devstack-checkout
      - shell: |
          #!/bin/bash -xe
          ENABLED_SERVICES=tempest
          ENABLED_SERVICES+=,s-proxy,s-object,s-container,s-account
          ENABLED_SERVICES+=,trove,tr-api,tr-tmgr,tr-cond
          export ENABLED_SERVICES

          export PYTHONUNBUFFERED=true
          if [[ "stable/kilo" =~ $ZUUL_BRANCH ]]; then
              # Trove was moved out of DevStack as plugin after Kilo
              export DEVSTACK_GATE_TROVE=1
          else
              export DEVSTACK_LOCAL_CONFIG="enable_plugin trove git://git.openstack.org/openstack/trove"
          fi
          export PROJECTS="openstack/python-troveclient $PROJECTS"
          export DEVSTACK_PROJECT_FROM_GIT=python-troveclient
          export PROJECTS="openstack/tripleo-image-elements $PROJECTS"
          export PROJECTS="openstack/diskimage-builder $PROJECTS"
          export PROJECTS="openstack/trove-integration $PROJECTS"
          function post_test_hook {{
              export BRIDGE_IP=10.1.0.1
              export DEST=$BASE/new
              export PATH_DEVSTACK_SRC=$DEST/devstack
              cd /opt/stack/new/trove-integration/scripts
              ./redstack dsvm-gate-tests {datastore}
          }}
          export -f post_test_hook

          export BRANCH_OVERRIDE={branch-override}
          if [ "$BRANCH_OVERRIDE" != "default" ] ; then
              export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
          fi
          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-template:
    name: 'gate-trove-scenario-functional-dsvm-{datastore}{job-suffix}'
    node: ubuntu-trusty

    wrappers:
      - build-timeout:
          timeout: 150
      - timestamps

    builders:
      - link-logs
      - net-info
      - devstack-checkout
      - shell: |
          #!/bin/bash -xe
          ENABLED_SERVICES=tempest
          ENABLED_SERVICES+=,s-proxy,s-object,s-container,s-account
          ENABLED_SERVICES+=,trove,tr-api,tr-tmgr,tr-cond
          export ENABLED_SERVICES

          export PYTHONUNBUFFERED=true
          export DEVSTACK_LOCAL_CONFIG="enable_plugin trove git://git.openstack.org/openstack/trove"
          export PROJECTS="openstack/python-troveclient $PROJECTS"
          export DEVSTACK_PROJECT_FROM_GIT=python-troveclient
          export PROJECTS="openstack/tripleo-image-elements $PROJECTS"
          export PROJECTS="openstack/diskimage-builder $PROJECTS"
          export PROJECTS="openstack/trove-integration $PROJECTS"

          function post_test_hook {{
              export BRIDGE_IP=10.1.0.1
              export DEST=$BASE/new
              export PATH_DEVSTACK_SRC=$DEST/devstack
              cd /opt/stack/new/trove-integration/scripts
              ./redstack dsvm-gate-tests {datastore} {datastore}_supported
          }}
          export -f post_test_hook

          export BRANCH_OVERRIDE={branch-override}
          if [ "$BRANCH_OVERRIDE" != "default" ] ; then
              export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
          fi
          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-template:
    name: '{pipeline}-tempest-dsvm-neutron-src-python-troveclient{job-suffix}'
    node: '{node}'

    wrappers:
      - build-timeout:
          timeout: 130
      - timestamps

    builders:
      - link-logs
      - net-info
      - devstack-checkout
      - shell: |
          #!/bin/bash -xe
          export PYTHONUNBUFFERED=true
          if [[ "stable/kilo" =~ $ZUUL_BRANCH ]]; then
              # Trove was moved out of DevStack as plugin after Kilo
              export DEVSTACK_GATE_TROVE=1
          else
              export DEVSTACK_LOCAL_CONFIG="enable_plugin trove git://git.openstack.org/openstack/trove"
          fi
          export DEVSTACK_GATE_TEMPEST=1
          export DEVSTACK_GATE_TEMPEST_FULL=1
          export DEVSTACK_GATE_NEUTRON=1
          export BRANCH_OVERRIDE={branch-override}
          if [ "$BRANCH_OVERRIDE" != "default" ] ; then
              export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
          fi
          export PROJECTS="openstack/python-troveclient $PROJECTS"
          export DEVSTACK_PROJECT_FROM_GIT=python-troveclient
          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<commit_msg>[trove] Add trove-dashboard to PROJECTS<commit_after>- job-template:
    name: 'gate-trove-buildimage-{datastore}'
    node: ubuntu-trusty

    builders:
      - link-logs
      - net-info
      - gerrit-git-prep
      - install-distro-packages
      - shell: |
          #!/bin/bash -xe
          sudo mkdir -p /opt/trove-image-build
          sudo chown $(whoami) /opt/trove-image-build
          export DEST=/opt/trove-image-build
          export KEY_DIR=`pwd`/scripts/files/keys
          cd scripts
          ./redstack build-image {datastore}
          mv $HOME/images/ubuntu_{datastore}/ubuntu_{datastore}.qcow2 $WORKSPACE/{datastore}.qcow2

    publishers:
      - scp:
          site: 'tarballs.openstack.org'
          files:
            - source: '{datastore}.qcow2'
              target: 'tarballs/trove/images/ubuntu'
              keep-hierarchy: false
              copy-after-failure: false
      - console-log


- job-template:
    name: 'gate-trove-functional-dsvm-{datastore}{job-suffix}'
    node: ubuntu-trusty

    wrappers:
      - build-timeout:
          timeout: 150
      - timestamps

    builders:
      - link-logs
      - net-info
      - devstack-checkout
      - shell: |
          #!/bin/bash -xe
          ENABLED_SERVICES=tempest
          ENABLED_SERVICES+=,s-proxy,s-object,s-container,s-account
          ENABLED_SERVICES+=,trove,tr-api,tr-tmgr,tr-cond
          export ENABLED_SERVICES

          export PYTHONUNBUFFERED=true
          if [[ "stable/kilo" =~ $ZUUL_BRANCH ]]; then
              # Trove was moved out of DevStack as plugin after Kilo
              export DEVSTACK_GATE_TROVE=1
          else
              export DEVSTACK_LOCAL_CONFIG="enable_plugin trove git://git.openstack.org/openstack/trove"
          fi
          export PROJECTS="openstack/python-troveclient $PROJECTS"
          export PROJECTS="openstack/trove-dashboard $PROJECTS"
          export DEVSTACK_PROJECT_FROM_GIT=python-troveclient
          export PROJECTS="openstack/tripleo-image-elements $PROJECTS"
          export PROJECTS="openstack/diskimage-builder $PROJECTS"
          export PROJECTS="openstack/trove-integration $PROJECTS"
          function post_test_hook {{
              export BRIDGE_IP=10.1.0.1
              export DEST=$BASE/new
              export PATH_DEVSTACK_SRC=$DEST/devstack
              cd /opt/stack/new/trove-integration/scripts
              ./redstack dsvm-gate-tests {datastore}
          }}
          export -f post_test_hook

          export BRANCH_OVERRIDE={branch-override}
          if [ "$BRANCH_OVERRIDE" != "default" ] ; then
              export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
          fi
          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-template:
    name: 'gate-trove-scenario-functional-dsvm-{datastore}{job-suffix}'
    node: ubuntu-trusty

    wrappers:
      - build-timeout:
          timeout: 150
      - timestamps

    builders:
      - link-logs
      - net-info
      - devstack-checkout
      - shell: |
          #!/bin/bash -xe
          ENABLED_SERVICES=tempest
          ENABLED_SERVICES+=,s-proxy,s-object,s-container,s-account
          ENABLED_SERVICES+=,trove,tr-api,tr-tmgr,tr-cond
          export ENABLED_SERVICES

          export PYTHONUNBUFFERED=true
          export DEVSTACK_LOCAL_CONFIG="enable_plugin trove git://git.openstack.org/openstack/trove"
          export PROJECTS="openstack/python-troveclient $PROJECTS"
          export PROJECTS="openstack/trove-dashboard $PROJECTS"
          export DEVSTACK_PROJECT_FROM_GIT=python-troveclient
          export PROJECTS="openstack/tripleo-image-elements $PROJECTS"
          export PROJECTS="openstack/diskimage-builder $PROJECTS"
          export PROJECTS="openstack/trove-integration $PROJECTS"

          function post_test_hook {{
              export BRIDGE_IP=10.1.0.1
              export DEST=$BASE/new
              export PATH_DEVSTACK_SRC=$DEST/devstack
              cd /opt/stack/new/trove-integration/scripts
              ./redstack dsvm-gate-tests {datastore} {datastore}_supported
          }}
          export -f post_test_hook

          export BRANCH_OVERRIDE={branch-override}
          if [ "$BRANCH_OVERRIDE" != "default" ] ; then
              export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
          fi
          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-template:
    name: '{pipeline}-tempest-dsvm-neutron-src-python-troveclient{job-suffix}'
    node: '{node}'

    wrappers:
      - build-timeout:
          timeout: 130
      - timestamps

    builders:
      - link-logs
      - net-info
      - devstack-checkout
      - shell: |
          #!/bin/bash -xe
          export PYTHONUNBUFFERED=true
          if [[ "stable/kilo" =~ $ZUUL_BRANCH ]]; then
              # Trove was moved out of DevStack as plugin after Kilo
              export DEVSTACK_GATE_TROVE=1
          else
              export DEVSTACK_LOCAL_CONFIG="enable_plugin trove git://git.openstack.org/openstack/trove"
          fi
          export DEVSTACK_GATE_TEMPEST=1
          export DEVSTACK_GATE_TEMPEST_FULL=1
          export DEVSTACK_GATE_NEUTRON=1
          export BRANCH_OVERRIDE={branch-override}
          if [ "$BRANCH_OVERRIDE" != "default" ] ; then
              export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
          fi
          export PROJECTS="openstack/python-troveclient $PROJECTS"
          export PROJECTS="openstack/trove-dashboard $PROJECTS"
          export DEVSTACK_PROJECT_FROM_GIT=python-troveclient
          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
{'fraction_non_alphanumeric': 0.09922945205479453, 'fraction_numerical': 0.004623287671232877, 'mean_word_length': 1.980607297780046, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 4, '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': '6924089', 'n_tokens_mistral': 3996, 'n_tokens_neox': 3760, 'n_words': 578}