<commit_before>#!/bin/bash

## Deploy virtualenv for testing environment molecule/ansible-playbook/infratest

## Shell Opts ----------------------------------------------------------------

set -ex
set -o pipefail

## Variables -----------------------------------------------------------------

# The RPC_PRODUCT_RELEASE and RPC_RELEASE need to be brought into scope
# before running system tests.
if [[ ${RE_JOB_IMAGE} =~ .*mnaio.* ]]; then
  source /opt/rpc-openstack/scripts/functions.sh
fi

RE_HOOK_ARTIFACT_DIR="${RE_HOOK_ARTIFACT_DIR:-/tmp/artifacts}"
export RE_HOOK_RESULT_DIR="${RE_HOOK_RESULT_DIR:-/tmp/results}"
SYS_WORKING_DIR=$(mktemp  -d -t system_test_workingdir.XXXXXXXX)
export SYS_VENV_NAME="${SYS_VENV_NAME:-venv-molecule}"
SYS_TEST_SOURCE_BASE="${SYS_TEST_SOURCE_BASE:-https://github.com/rcbops}"
SYS_TEST_SOURCE="${SYS_TEST_SOURCE:-rpc-openstack-system-tests}"
SYS_TEST_SOURCE_REPO="${SYS_TEST_SOURCE_BASE}/${SYS_TEST_SOURCE}"
SYS_TEST_BRANCH="${RE_JOB_BRANCH:-master}"

# Switch system test branch to `dev` on the experimental-asc job.
# This job is specifically for running system tests under development.
if [[ ${RE_JOB_NAME} == experimental-asc* ]] ; then
    SYS_TEST_BRANCH=dev
fi

## Main ----------------------------------------------------------------------<commit_msg>(ASC-1085) (ASC-1126) create pipeline for MaaS system tests.<commit_after>#!/bin/bash

## Deploy virtualenv for testing environment molecule/ansible-playbook/infratest

## Shell Opts ----------------------------------------------------------------

set -ex
set -o pipefail

## Variables -----------------------------------------------------------------

# The RPC_PRODUCT_RELEASE and RPC_RELEASE need to be brought into scope
# before running system tests.
if [[ ${RE_JOB_IMAGE} =~ .*mnaio.* ]]; then
  source /opt/rpc-openstack/scripts/functions.sh
fi

RE_HOOK_ARTIFACT_DIR="${RE_HOOK_ARTIFACT_DIR:-/tmp/artifacts}"
export RE_HOOK_RESULT_DIR="${RE_HOOK_RESULT_DIR:-/tmp/results}"
SYS_WORKING_DIR=$(mktemp  -d -t system_test_workingdir.XXXXXXXX)
export SYS_VENV_NAME="${SYS_VENV_NAME:-venv-molecule}"
SYS_TEST_SOURCE_BASE="${SYS_TEST_SOURCE_BASE:-https://github.com/rcbops}"
SYS_TEST_SOURCE="${SYS_TEST_SOURCE:-rpc-openstack-system-tests}"
SYS_TEST_SOURCE_REPO="${SYS_TEST_SOURCE_BASE}/${SYS_TEST_SOURCE}"
SYS_TEST_BRANCH="${RE_JOB_BRANCH:-master}"

# Switch system test branch to `dev` or `maas` on the experimental-asc job.
# This job is specifically for running system tests under development.
if [[ ${RE_JOB_NAME} == experimental-asc* ]]; then
    if [[ ${RE_JOB_ACTION} == "system_staging" ]]; then
        SYS_TEST_BRANCH=dev
    fi
    if [[ ${RE_JOB_ACTION} == "system_maas" ]]; then
        SYS_TEST_BRANCH=maas
    fi
fi

## Main ----------------------------------------------------------------------
{'fraction_non_alphanumeric': 0.25427350427350426, 'fraction_numerical': 0.002849002849002849, 'mean_word_length': 2.720529801324503, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, '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': '7464692', 'n_tokens_mistral': 896, 'n_tokens_neox': 870, 'n_words': 172}