k8s.io/test-infra@v0.0.0-20240520184403-27c6b4c223d8/config/jobs/kubernetes/sig-instrumentation/sig-instrumentation-presubmit.yaml (about)

     1  presubmits:
     2    kubernetes/kubernetes:
     3    - name: pull-kubernetes-kind-json-logging
     4      cluster: k8s-infra-prow-build
     5      skip_branches:
     6      - release-\d+\.\d+  # per-release image
     7      annotations:
     8        testgrid-dashboards: sig-instrumentation-presubmits
     9        testgrid-tab-name: pr-json-logging
    10      decorate: true
    11      # Not relevant for most PRs.
    12      always_run: false
    13      # This covers most of the code related to structured, contextual logging.
    14      run_if_changed: /staging/src/k8s.io/component-base/logs/
    15      # The tests might still be flaky (alpha features!) or this job might get triggered accidentally for
    16      # an unrelated PR.
    17      optional: true
    18      labels:
    19        preset-service-account: "true"
    20        preset-dind-enabled: "true"
    21        preset-kind-volume-mounts: "true"
    22      path_alias: k8s.io/kubernetes
    23      spec:
    24        containers:
    25        - image: gcr.io/k8s-staging-test-infra/krte:v20240515-17c6d50e24-master
    26          command:
    27          - wrapper.sh
    28          - bash
    29          - -c
    30          # The modified e2e-k8s.sh customizes logging.
    31          - >
    32            curl -sSL https://kind.sigs.k8s.io/dl/latest/linux-amd64.tgz | tar xvfz - -C "${PATH%%:*}/" &&
    33            curl -sSL https://github.com/kubernetes/test-infra/raw/master/experiment/kind-logs-e2e-k8s.sh >$(which e2e-k8s.sh) &&
    34            chmod u+x $(which e2e-k8s.sh) &&
    35            e2e-k8s.sh
    36  
    37          env:
    38          # Options from https://github.com/kubernetes-sigs/kind/blob/d1eecc46e30cac9d35cd32dc52677ef75ec22e18/hack/ci/e2e-k8s.sh#L79-L83
    39          - name: CLUSTER_LOG_FORMAT
    40            value: json
    41          - name: KIND_CLUSTER_LOG_LEVEL
    42            # Default is 4, but we want to exercise more log calls and get more output.
    43            value: "6"
    44          - name: FEATURE_GATES
    45            value: '{"ContextualLogging":true}'
    46          # don't retry conformance tests
    47          - name: GINKGO_TOLERATE_FLAKES
    48            value: "n"
    49          - name: FOCUS
    50            value: \[Conformance\]|\[Driver:.csi-hostpath\]
    51          # TODO(bentheelder): reduce the skip list further
    52          # NOTE: this skip list is from the standard periodic kind job, just to ensure
    53          # we don't accidentally select any of these
    54          - name: SKIP
    55            value: \[Slow\]|\[Disruptive\]|\[Flaky\]|\[Feature:.+\]|PodSecurityPolicy|LoadBalancer|load.balancer|In-tree.Volumes.\[Driver:.nfs\]|PersistentVolumes.NFS|Network.should.set.TCP.CLOSE_WAIT.timeout|Simple.pod.should.support.exec.through.an.HTTP.proxy|subPath.should.support.existing|should.provide.basic.identity
    56          - name: PARALLEL
    57            value: "true"
    58          # we need privileged mode in order to do docker in docker
    59          securityContext:
    60            privileged: true
    61          resources:
    62            limits:
    63              memory: 9Gi
    64              cpu: 7
    65            requests:
    66              # these are both a bit below peak usage during build
    67              # this is mostly for building kubernetes
    68              memory: 9Gi
    69              cpu: 7
    70  
    71    - name: pull-kubernetes-kind-text-logging
    72      cluster: k8s-infra-prow-build
    73      skip_branches:
    74      - release-\d+\.\d+  # per-release image
    75      annotations:
    76        testgrid-dashboards: sig-instrumentation-presubmits
    77        testgrid-tab-name: pr-text-logging
    78      decorate: true
    79      # Not relevant for most PRs.
    80      always_run: false
    81      # This covers most of the code related to structured, contextual logging.
    82      run_if_changed: /staging/src/k8s.io/component-base/logs/
    83      # The tests might still be flaky (alpha features!) or this job might get triggered accidentally for
    84      # an unrelated PR.
    85      optional: true
    86      labels:
    87        preset-service-account: "true"
    88        preset-dind-enabled: "true"
    89        preset-kind-volume-mounts: "true"
    90      path_alias: k8s.io/kubernetes
    91      spec:
    92        containers:
    93        - image: gcr.io/k8s-staging-test-infra/krte:v20240515-17c6d50e24-master
    94          command:
    95          - wrapper.sh
    96          - bash
    97          - -c
    98          # The modified e2e-k8s.sh customizes logging.
    99          - >
   100            curl -sSL https://kind.sigs.k8s.io/dl/latest/linux-amd64.tgz | tar xvfz - -C "${PATH%%:*}/" &&
   101            curl -sSL https://github.com/kubernetes/test-infra/raw/master/experiment/kind-logs-e2e-k8s.sh >$(which e2e-k8s.sh) &&
   102            chmod u+x $(which e2e-k8s.sh) &&
   103            e2e-k8s.sh
   104  
   105          env:
   106          # Options from https://github.com/kubernetes-sigs/kind/blob/d1eecc46e30cac9d35cd32dc52677ef75ec22e18/hack/ci/e2e-k8s.sh#L79-L83
   107          - name: CLUSTER_LOG_FORMAT
   108            value: text
   109          - name: KIND_CLUSTER_LOG_LEVEL
   110            # Default is 4, but we want to exercise more log calls and get more output.
   111            value: "6"
   112          - name: FEATURE_GATES
   113            value: '{"ContextualLogging":true}'
   114          # don't retry conformance tests
   115          - name: GINKGO_TOLERATE_FLAKES
   116            value: "n"
   117          - name: FOCUS
   118            value: \[Conformance\]|\[Driver:.csi-hostpath\]
   119          # TODO(bentheelder): reduce the skip list further
   120          # NOTE: this skip list is from the standard periodic kind job, just to ensure
   121          # we don't accidentally select any of these
   122          - name: SKIP
   123            value: \[Slow\]|\[Disruptive\]|\[Flaky\]|\[Feature:.+\]|PodSecurityPolicy|LoadBalancer|load.balancer|In-tree.Volumes.\[Driver:.nfs\]|PersistentVolumes.NFS|Network.should.set.TCP.CLOSE_WAIT.timeout|Simple.pod.should.support.exec.through.an.HTTP.proxy|subPath.should.support.existing|should.provide.basic.identity
   124          - name: PARALLEL
   125            value: "true"
   126          # we need privileged mode in order to do docker in docker
   127          securityContext:
   128            privileged: true
   129          resources:
   130            limits:
   131              memory: 9Gi
   132              cpu: 7
   133            requests:
   134              # these are both a bit below peak usage during build
   135              # this is mostly for building kubernetes
   136              memory: 9Gi
   137              cpu: 7