<commit_before>pep8:
    rpm_deps: [ python-neutron, openstack-tempest ]
    remove_rpm: [ ]
    archive_run: ''
    run: >
      git checkout -- test-requirements.txt requirements.txt;
      tox -v -e pep8 2>&1 | tee ../logs/testrun.log;

unittest:
    rpm_deps: [ python-neutron,
                python-cliff,
                python-requests-mock,
                python-webtest,
                python-os-testr,
                python-eventlet,
                python-oslo-utils,
                python-pyroute2,
                python-mock,
                python-oslotest,
                python-testresources, 
                python-testscenarios,
                python-pep8,
                python-designateclient,
                python-flake8,
                openstack-neutron-openvswitch,
                python-oslo-db,
                python-oslo-db-tests,
                python-ddt ]
    remove_rpm: [ python-neutron ]
    archive_run: ''
    run: >
      sudo yum install -y https://bitbucket.org/abregman/bregman-rpms/downloads/libsqlite3-0-3.8.3-2.1.x86_64.rpm https://bitbucket.org/abregman/bregman-rpms/downloads/sqlite3-3.8.3-2.1.x86_64.rpm;
      sudo yum install -y https://bitbucket.org/abregman/bregman-rpms/downloads/python2-hacking-0.11.0-1.el7.noarch.rpm;
      tox --sitepackages -v -e py27 2>&1 | tee ../logs/testrun.log;

# FAIL_ON_MISSING_DEPS is disabled because we are not testing postgresql.
# functional has is own requirements file, which is truncated to use RPMs instead of pip.
dsvm-functional:
    rpm_deps: [ openstack-neutron, openstack-neutron-openvswitch, python-testresources,
                python-oslotest, bridge-utils, nmap-ncat, ebtables, openstack-selinux,
                mysql-server, python-ryu, python-novaclient, python-keystonemiddleware,
                psmisc, nfs-utils, selinux-policy, python-os-testr ]
    remove_rpm: []
    archive_run: tar zcvf /home/cloud-user/logs/functional-tests.tar.gz /opt/stack/logs/dsvm-functional-logs;
    run: >
        sudo modprobe bridge;
        sudo modprobe br_netfilter;
        sudo chmod -R 777 /etc/neutron;
        sudo chmod 777 /opt;
        sudo systemctl start openvswitch;
        sed -i s@OS_FAIL_ON_MISSING_DEPS=1@OS_FAIL_ON_MISSING_DEPS=0@ tox.ini;
        truncate --size 0 neutron/tests/functional/requirements.txt;
        sudo systemctl start mariadb;<commit_msg>Set selinux to permissive in neutron OSP 13<commit_after>pep8:
    rpm_deps: [ python-neutron, openstack-tempest ]
    remove_rpm: [ ]
    archive_run: ''
    run: >
      git checkout -- test-requirements.txt requirements.txt;
      tox -v -e pep8 2>&1 | tee ../logs/testrun.log;

unittest:
    rpm_deps: [ python-neutron,
                python-cliff,
                python-requests-mock,
                python-webtest,
                python-os-testr,
                python-eventlet,
                python-oslo-utils,
                python-pyroute2,
                python-mock,
                python-oslotest,
                python-testresources, 
                python-testscenarios,
                python-pep8,
                python-designateclient,
                python-flake8,
                openstack-neutron-openvswitch,
                python-oslo-db,
                python-oslo-db-tests,
                python-ddt ]
    remove_rpm: [ python-neutron ]
    archive_run: ''
    run: >
      sudo yum install -y https://bitbucket.org/abregman/bregman-rpms/downloads/libsqlite3-0-3.8.3-2.1.x86_64.rpm https://bitbucket.org/abregman/bregman-rpms/downloads/sqlite3-3.8.3-2.1.x86_64.rpm;
      sudo yum install -y https://bitbucket.org/abregman/bregman-rpms/downloads/python2-hacking-0.11.0-1.el7.noarch.rpm;
      tox --sitepackages -v -e py27 2>&1 | tee ../logs/testrun.log;

# FAIL_ON_MISSING_DEPS is disabled because we are not testing postgresql.
# functional has is own requirements file, which is truncated to use RPMs instead of pip.
dsvm-functional:
    rpm_deps: [ openstack-neutron, openstack-neutron-openvswitch, python-testresources,
                python-oslotest, bridge-utils, nmap-ncat, ebtables, openstack-selinux,
                mysql-server, python-ryu, python-novaclient, python-keystonemiddleware,
                psmisc, nfs-utils, selinux-policy, python-os-testr ]
    remove_rpm: []
    archive_run: tar zcvf /home/cloud-user/logs/functional-tests.tar.gz /opt/stack/logs/dsvm-functional-logs;
    run: >
        sudo setenforce 0;
        sudo modprobe bridge;
        sudo modprobe br_netfilter;
        sudo chmod -R 777 /etc/neutron;
        sudo chmod 777 /opt;
        sudo systemctl start openvswitch;
        sed -i s@OS_FAIL_ON_MISSING_DEPS=1@OS_FAIL_ON_MISSING_DEPS=0@ tox.ini;
        truncate --size 0 neutron/tests/functional/requirements.txt;
        sudo systemctl start mariadb;
{'fraction_non_alphanumeric': 0.10226094171333748, 'fraction_numerical': 0.020535158680771624, 'mean_word_length': 2.026993094789705, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2638595', 'n_tokens_mistral': 1720, 'n_tokens_neox': 1567, 'n_words': 293}