<commit_before>job_template: &job_template
  branches:
  - "^master$"
  decorate: true
  path_alias: istio.io/istio

istio_container: &istio_container
  image: gcr.io/istio-testing/istio-builder:v20181008-db31a9fd
  # Docker in Docker
  securityContext:
    privileged: true
  resources:
    requests:
      memory: "512Mi"
      cpu: "500m"
    limits:
      memory: "24Gi"
      cpu: "7000m"

presubmits:

  istio/istio:

  - name: istio-unit-tests
    <<: *job_template
    context: prow/istio-unit-tests.sh
    always_run: true
    spec:
      containers:
      - <<: *istio_container
        command:
        - entrypoint
        - prow/istio-unit-tests.sh
      nodeSelector:
        testing: build-pool

  - name: istio-integ-local-tests
    <<: *job_template
    optional: true
    context: prow/istio-integ-local-tests.sh
    always_run: true
    spec:
      containers:
      - <<: *istio_container
        command:
        - entrypoint
        - prow/istio-integ-local-tests.sh
      nodeSelector:
        testing: build-pool

  - name: test-e2e-mixer-no_auth
    <<: *job_template
    optional: true
    skip_report: true
    context: "prow: test-e2e-mixer-no_auth"
    max_concurrency: 5
    labels:
      preset-service-account: "true"
    spec:
      containers:
      - <<: *istio_container
        command:
        - entrypoint
        - prow/test-e2e-mixer-no_auth.sh
      nodeSelector:
        testing: test-pool

  - name: istio-presubmit
    <<: *job_template
    context: prow/istio-presubmit.sh
    always_run: true
    labels:
      preset-service-account: "true"
    spec:
      containers:
      - <<: *istio_container
        command:
        - entrypoint
        - prow/istio-presubmit.sh
      nodeSelector:
        testing: build-pool
    run_after_success:
    - name: istio-pilot-e2e-envoyv2-v1alpha3
      <<: *job_template
      always_run: true
      context: prow/istio-pilot-e2e-envoyv2-v1alpha3.sh
      labels:
        preset-service-account: "true"
      max_concurrency: 5
      spec:
        containers:
        - <<: *istio_container
          command:
          - entrypoint
          - prow/istio-pilot-e2e-envoyv2-v1alpha3.sh
        nodeSelector:
          testing: test-pool
    - name: istio-pilot-e2e-envoyv2-v1alpha3-mcp
      <<: *job_template
      always_run: true
      context: prow/istio-pilot-e2e-envoyv2-v1alpha3-mcp.sh
      optional: true
      labels:
        preset-service-account: "true"
      max_concurrency: 5
      spec:
        containers:
        - <<: *istio_container
          command:
          - entrypoint
          - prow/istio-pilot-e2e-envoyv2-v1alpha3-mcp.sh
        nodeSelector:
          testing: test-pool
    - name: e2e-mixer-no_auth
      <<: *job_template
      always_run: true
      context: prow/e2e-mixer-no_auth.sh
      labels:
        preset-service-account: "true"
      max_concurrency: 5
      spec:
        containers:
        - <<: *istio_container
          command:
          - entrypoint
          - prow/e2e-mixer-no_auth.sh
        nodeSelector:
          testing: test-pool
    - name: e2e-mixer-no_auth-mcp
      <<: *job_template
      always_run: true
      context: prow/e2e-mixer-no_auth-mcp.sh
      optional: true
      labels:
        preset-service-account: "true"
      max_concurrency: 5
      spec:
        containers:
        - <<: *istio_container
          command:
          - entrypoint
          - prow/e2e-mixer-no_auth-mcp.sh
        nodeSelector:
          testing: test-pool
    - name: e2e-dashboard
      <<: *job_template
      always_run: true
      context: prow/e2e-dashboard.sh
      labels:
        preset-service-account: "true"
      max_concurrency: 5
      spec:
        containers:
        - <<: *istio_container
          command:
          - entrypoint
          - prow/e2e-dashboard.sh
        nodeSelector:
          testing: test-pool
    - name: e2e-bookInfoTests-envoyv2-v1alpha3
      <<: *job_template
      always_run: true
      context: prow/e2e-bookInfoTests-v1alpha3.sh
      labels:
        preset-service-account: "true"
      max_concurrency: 5
      spec:
        containers:
        - <<: *istio_container
          command:
          - entrypoint
          - prow/e2e-bookInfoTests-envoyv2-v1alpha3.sh
        nodeSelector:
          testing: test-pool
    - name: e2e-simpleTests
      <<: *job_template
      always_run: true
      context: prow/e2e-simpleTests.sh
      labels:
        preset-service-account: "true"
      max_concurrency: 5
      spec:
        containers:
        - <<: *istio_container
          command:
          - entrypoint
          - prow/e2e-simpleTests.sh
        nodeSelector:
          testing: test-pool
    - name: istio-pilot-multicluster-e2e
      <<: *job_template
      always_run: true
      context: prow/istio-pilot-multicluster-e2e.sh
      optional: true
      labels:
        preset-service-account: "true"
      max_concurrency: 5
      spec:
        containers:
        - <<: *istio_container
          command:
          - entrypoint
          - prow/istio-pilot-multicluster-e2e.sh
        nodeSelector:
          testing: test-pool
    - name: e2e-simpleTests-cni
      <<: *job_template
      always_run: false
      context: prow/e2e-simpleTests-cni.sh
      optional: true
      labels:
        preset-service-account: "true"
      max_concurrency: 5
      spec:
        containers:
        - <<: *istio_container
          command:
          - entrypoint
          - prow/e2e-simpleTests-cni.sh
        nodeSelector:
    - name: build-tests
      <<: *job_template
      always_run: true
      context: prow/build-tests.sh
      optional: true
      labels:
        preset-service-account: "true"
      max_concurrency: 5
      spec:
        containers:
        - <<: *istio_container
          command:
          - entrypoint
          - prow/build-tests.sh
        nodeSelector:
          testing: test-pool


postsubmits:

  istio/istio:
  - name: istio-integ-local-tests
    <<: *job_template
    spec:
      containers:
      - <<: *istio_container
        command:
        - entrypoint
        - prow/istio-integ-local-tests.sh
      nodeSelector:
        testing: test-pool
  - name: istio-integ-k8s-tests
    <<: *job_template
    labels:
      preset-service-account: "true"
    spec:
      containers:
      - <<: *istio_container
        command:
        - entrypoint
        - prow/istio-integ-k8s-tests.sh
      nodeSelector:
        testing: test-pool
  - name: istio-postsubmit
    <<: *job_template
    labels:
      preset-service-account: "true"
    spec:
      containers:
      - <<: *istio_container
        command:
        - entrypoint
        - prow/istio-postsubmit.sh
      nodeSelector:
        testing: test-pool
    run_after_success:
    - name: e2e-simpleTests
      <<: *job_template
      labels:
        preset-service-account: "true"
      spec:
        containers:
        - <<: *istio_container
          command:
          - entrypoint
          - prow/e2e-simpleTests.sh
        nodeSelector:
          testing: test-pool
    - name: e2e-simpleTests-mcp
      <<: *job_template
      labels:
        preset-service-account: "true"
      max_concurrency: 5
      spec:
        containers:
        - <<: *istio_container
          command:
          - entrypoint
          - prow/e2e-simpleTests-mcp.sh
        nodeSelector:
          testing: test-pool
    - name: e2e-bookInfoTests-envoyv2-v1alpha3
      <<: *job_template
      labels:
        preset-service-account: "true"
      spec:
        containers:
        - <<: *istio_container
          command:
          - entrypoint
          - prow/e2e-bookInfoTests-envoyv2-v1alpha3.sh
        nodeSelector:
          testing: test-pool
    - name: istio-pilot-e2e-envoyv2-v1alpha3
      <<: *job_template
      labels:
        preset-service-account: "true"
      spec:
        containers:
        - <<: *istio_container
          command:
          - entrypoint
          - prow/istio-pilot-e2e-envoyv2-v1alpha3.sh
        nodeSelector:
          testing: test-pool
    - name: istio-pilot-e2e-envoyv2-v1alpha3-k8s-latest
      <<: *job_template
      labels:
        preset-service-account: "true"
      spec:
        containers:
        - <<: *istio_container
          command:
          - entrypoint
          - prow/istio-pilot-e2e-envoyv2-v1alpha3-k8s-latest.sh
        nodeSelector:
          testing: test-pool
    - name: e2e-bookInfoTests-envoyv2-v1alpha3-mcp
      <<: *job_template
      labels:
        preset-service-account: "true"
      max_concurrency: 5
      spec:
        containers:
        - <<: *istio_container
          command:
          - entrypoint
          - prow/e2e-bookInfoTests-envoyv2-v1alpha3-mcp.sh
        nodeSelector:
          testing: test-pool
    - name: e2e-mixer-no_auth
      <<: *job_template
      labels:
        preset-service-account: "true"
      spec:
        containers:
        - <<: *istio_container
          command:
          - entrypoint
          - prow/e2e-mixer-no_auth.sh
        nodeSelector:
          testing: test-pool
    - name: e2e-dashboard
      <<: *job_template
      labels:
        preset-service-account: "true"
      spec:
        containers:
        - <<: *istio_container
          command:
          - entrypoint
          - prow/e2e-dashboard.sh
        nodeSelector:
          testing: test-pool
<commit_msg>Adding k8s integration test to master presubmit (#1039)<commit_after>job_template: &job_template
  branches:
  - "^master$"
  decorate: true
  path_alias: istio.io/istio

istio_container: &istio_container
  image: gcr.io/istio-testing/istio-builder:v20181008-db31a9fd
  # Docker in Docker
  securityContext:
    privileged: true
  resources:
    requests:
      memory: "512Mi"
      cpu: "500m"
    limits:
      memory: "24Gi"
      cpu: "7000m"

presubmits:

  istio/istio:

  - name: istio-unit-tests
    <<: *job_template
    context: prow/istio-unit-tests.sh
    always_run: true
    spec:
      containers:
      - <<: *istio_container
        command:
        - entrypoint
        - prow/istio-unit-tests.sh
      nodeSelector:
        testing: build-pool

  - name: istio-integ-local-tests
    <<: *job_template
    optional: true
    context: prow/istio-integ-local-tests.sh
    always_run: true
    spec:
      containers:
      - <<: *istio_container
        command:
        - entrypoint
        - prow/istio-integ-local-tests.sh
      nodeSelector:
        testing: build-pool

  - name: istio-integ-k8s-tests
    <<: *job_template
    optional: true
    context: prow/istio-integ-k8s-tests.sh
    max_concurrency: 5
    always_run: true
    labels:
      preset-service-account: "true"
    spec:
      containers:
      - <<: *istio_container
        command:
        - entrypoint
        - prow/istio-integ-k8s-tests.sh
      nodeSelector:
        testing: build-pool

  - name: test-e2e-mixer-no_auth
    <<: *job_template
    optional: true
    skip_report: true
    context: "prow: test-e2e-mixer-no_auth"
    max_concurrency: 5
    labels:
      preset-service-account: "true"
    spec:
      containers:
      - <<: *istio_container
        command:
        - entrypoint
        - prow/test-e2e-mixer-no_auth.sh
      nodeSelector:
        testing: test-pool

  - name: istio-presubmit
    <<: *job_template
    context: prow/istio-presubmit.sh
    always_run: true
    labels:
      preset-service-account: "true"
    spec:
      containers:
      - <<: *istio_container
        command:
        - entrypoint
        - prow/istio-presubmit.sh
      nodeSelector:
        testing: build-pool
    run_after_success:
    - name: istio-pilot-e2e-envoyv2-v1alpha3
      <<: *job_template
      always_run: true
      context: prow/istio-pilot-e2e-envoyv2-v1alpha3.sh
      labels:
        preset-service-account: "true"
      max_concurrency: 5
      spec:
        containers:
        - <<: *istio_container
          command:
          - entrypoint
          - prow/istio-pilot-e2e-envoyv2-v1alpha3.sh
        nodeSelector:
          testing: test-pool
    - name: istio-pilot-e2e-envoyv2-v1alpha3-mcp
      <<: *job_template
      always_run: true
      context: prow/istio-pilot-e2e-envoyv2-v1alpha3-mcp.sh
      optional: true
      labels:
        preset-service-account: "true"
      max_concurrency: 5
      spec:
        containers:
        - <<: *istio_container
          command:
          - entrypoint
          - prow/istio-pilot-e2e-envoyv2-v1alpha3-mcp.sh
        nodeSelector:
          testing: test-pool
    - name: e2e-mixer-no_auth
      <<: *job_template
      always_run: true
      context: prow/e2e-mixer-no_auth.sh
      labels:
        preset-service-account: "true"
      max_concurrency: 5
      spec:
        containers:
        - <<: *istio_container
          command:
          - entrypoint
          - prow/e2e-mixer-no_auth.sh
        nodeSelector:
          testing: test-pool
    - name: e2e-mixer-no_auth-mcp
      <<: *job_template
      always_run: true
      context: prow/e2e-mixer-no_auth-mcp.sh
      optional: true
      labels:
        preset-service-account: "true"
      max_concurrency: 5
      spec:
        containers:
        - <<: *istio_container
          command:
          - entrypoint
          - prow/e2e-mixer-no_auth-mcp.sh
        nodeSelector:
          testing: test-pool
    - name: e2e-dashboard
      <<: *job_template
      always_run: true
      context: prow/e2e-dashboard.sh
      labels:
        preset-service-account: "true"
      max_concurrency: 5
      spec:
        containers:
        - <<: *istio_container
          command:
          - entrypoint
          - prow/e2e-dashboard.sh
        nodeSelector:
          testing: test-pool
    - name: e2e-bookInfoTests-envoyv2-v1alpha3
      <<: *job_template
      always_run: true
      context: prow/e2e-bookInfoTests-v1alpha3.sh
      labels:
        preset-service-account: "true"
      max_concurrency: 5
      spec:
        containers:
        - <<: *istio_container
          command:
          - entrypoint
          - prow/e2e-bookInfoTests-envoyv2-v1alpha3.sh
        nodeSelector:
          testing: test-pool
    - name: e2e-simpleTests
      <<: *job_template
      always_run: true
      context: prow/e2e-simpleTests.sh
      labels:
        preset-service-account: "true"
      max_concurrency: 5
      spec:
        containers:
        - <<: *istio_container
          command:
          - entrypoint
          - prow/e2e-simpleTests.sh
        nodeSelector:
          testing: test-pool
    - name: istio-pilot-multicluster-e2e
      <<: *job_template
      always_run: true
      context: prow/istio-pilot-multicluster-e2e.sh
      optional: true
      labels:
        preset-service-account: "true"
      max_concurrency: 5
      spec:
        containers:
        - <<: *istio_container
          command:
          - entrypoint
          - prow/istio-pilot-multicluster-e2e.sh
        nodeSelector:
          testing: test-pool
    - name: e2e-simpleTests-cni
      <<: *job_template
      always_run: false
      context: prow/e2e-simpleTests-cni.sh
      optional: true
      labels:
        preset-service-account: "true"
      max_concurrency: 5
      spec:
        containers:
        - <<: *istio_container
          command:
          - entrypoint
          - prow/e2e-simpleTests-cni.sh
        nodeSelector:
    - name: build-tests
      <<: *job_template
      always_run: true
      context: prow/build-tests.sh
      optional: true
      labels:
        preset-service-account: "true"
      max_concurrency: 5
      spec:
        containers:
        - <<: *istio_container
          command:
          - entrypoint
          - prow/build-tests.sh
        nodeSelector:
          testing: test-pool


postsubmits:

  istio/istio:
  - name: istio-integ-local-tests
    <<: *job_template
    spec:
      containers:
      - <<: *istio_container
        command:
        - entrypoint
        - prow/istio-integ-local-tests.sh
      nodeSelector:
        testing: test-pool
  - name: istio-integ-k8s-tests
    <<: *job_template
    labels:
      preset-service-account: "true"
    spec:
      containers:
      - <<: *istio_container
        command:
        - entrypoint
        - prow/istio-integ-k8s-tests.sh
      nodeSelector:
        testing: test-pool
  - name: istio-postsubmit
    <<: *job_template
    labels:
      preset-service-account: "true"
    spec:
      containers:
      - <<: *istio_container
        command:
        - entrypoint
        - prow/istio-postsubmit.sh
      nodeSelector:
        testing: test-pool
    run_after_success:
    - name: e2e-simpleTests
      <<: *job_template
      labels:
        preset-service-account: "true"
      spec:
        containers:
        - <<: *istio_container
          command:
          - entrypoint
          - prow/e2e-simpleTests.sh
        nodeSelector:
          testing: test-pool
    - name: e2e-simpleTests-mcp
      <<: *job_template
      labels:
        preset-service-account: "true"
      max_concurrency: 5
      spec:
        containers:
        - <<: *istio_container
          command:
          - entrypoint
          - prow/e2e-simpleTests-mcp.sh
        nodeSelector:
          testing: test-pool
    - name: e2e-bookInfoTests-envoyv2-v1alpha3
      <<: *job_template
      labels:
        preset-service-account: "true"
      spec:
        containers:
        - <<: *istio_container
          command:
          - entrypoint
          - prow/e2e-bookInfoTests-envoyv2-v1alpha3.sh
        nodeSelector:
          testing: test-pool
    - name: istio-pilot-e2e-envoyv2-v1alpha3
      <<: *job_template
      labels:
        preset-service-account: "true"
      spec:
        containers:
        - <<: *istio_container
          command:
          - entrypoint
          - prow/istio-pilot-e2e-envoyv2-v1alpha3.sh
        nodeSelector:
          testing: test-pool
    - name: istio-pilot-e2e-envoyv2-v1alpha3-k8s-latest
      <<: *job_template
      labels:
        preset-service-account: "true"
      spec:
        containers:
        - <<: *istio_container
          command:
          - entrypoint
          - prow/istio-pilot-e2e-envoyv2-v1alpha3-k8s-latest.sh
        nodeSelector:
          testing: test-pool
    - name: e2e-bookInfoTests-envoyv2-v1alpha3-mcp
      <<: *job_template
      labels:
        preset-service-account: "true"
      max_concurrency: 5
      spec:
        containers:
        - <<: *istio_container
          command:
          - entrypoint
          - prow/e2e-bookInfoTests-envoyv2-v1alpha3-mcp.sh
        nodeSelector:
          testing: test-pool
    - name: e2e-mixer-no_auth
      <<: *job_template
      labels:
        preset-service-account: "true"
      spec:
        containers:
        - <<: *istio_container
          command:
          - entrypoint
          - prow/e2e-mixer-no_auth.sh
        nodeSelector:
          testing: test-pool
    - name: e2e-dashboard
      <<: *job_template
      labels:
        preset-service-account: "true"
      spec:
        containers:
        - <<: *istio_container
          command:
          - entrypoint
          - prow/e2e-dashboard.sh
        nodeSelector:
          testing: test-pool

{'fraction_non_alphanumeric': 0.10049389134390434, 'fraction_numerical': 0.014608786067065246, 'mean_word_length': 1.658374792703151, 'pattern_counts': {'":': 0, '<': 207, '<?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': '1687864', 'n_tokens_mistral': 6403, 'n_tokens_neox': 6380, 'n_words': 1022}