ftl/benchmark/ftl_php_benchmark_yaml.py [17:59]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
parser = argparse.ArgumentParser(
    description='Generate cloudbuild yaml for FTL benchmarking.')

parser.add_argument(
    '--iterations',
    action='store',
    type=int,
    default=5,
    help='Number of times to build the image.')

parser.add_argument(
    '--dep-test',
    dest='dep_test',
    action='store_true',
    default=False,
    help='Flag to enable to dependency test for the benchmark.')

parser.add_argument(
    '--app-size-test',
    dest='app_size_test',
    action='store_true',
    default=False,
    help='Flag to enable the app size test for the benchmark.')


def main():
    args = parser.parse_args()
    if not (args.dep_test and args.app_size):
        args.dep_test = True
        args.app_size = True

    cloudbuild_yaml = {
        'steps': [
            # We need to chmod in some cases for permissions.
            {
                'name': 'ubuntu',
                'args': ['chmod', 'a+rx', '-R', '/workspace']
            },
            # Build the FTL image from source and load it into the daemon.
            {
                'name':
                'gcr.io/cloud-builders/bazel@sha256:7360c36bded15db68a35cfb1740a994f0a09ad5ce378a97f96d698bc223e442a',
                'args': [
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



ftl/benchmark/ftl_python_benchmark_yaml.py [17:59]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
parser = argparse.ArgumentParser(
    description='Generate cloudbuild yaml for FTL benchmarking.')

parser.add_argument(
    '--iterations',
    action='store',
    type=int,
    default=5,
    help='Number of times to build the image.')

parser.add_argument(
    '--dep-test',
    dest='dep_test',
    action='store_true',
    default=False,
    help='Flag to enable to dependency test for the benchmark.')

parser.add_argument(
    '--app-size-test',
    dest='app_size_test',
    action='store_true',
    default=False,
    help='Flag to enable the app size test for the benchmark.')


def main():
    args = parser.parse_args()
    if not (args.dep_test and args.app_size):
        args.dep_test = True
        args.app_size = True

    cloudbuild_yaml = {
        'steps': [
            # We need to chmod in some cases for permissions.
            {
                'name': 'ubuntu',
                'args': ['chmod', 'a+rx', '-R', '/workspace']
            },
            # Build the FTL image from source and load it into the daemon.
            {
                'name':
                'gcr.io/cloud-builders/bazel@sha256:7360c36bded15db68a35cfb1740a994f0a09ad5ce378a97f96d698bc223e442a',
                'args': [
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



