k8s.io/test-infra@v0.0.0-20240520184403-27c6b4c223d8/config/jobs/kubernetes/node-problem-detector/node-problem-detector-presubmits.yaml (about)

     1  presubmits:
     2    kubernetes/node-problem-detector:
     3    - name: pull-npd-build
     4      cluster: k8s-infra-prow-build
     5      branches:
     6      - master
     7      always_run: true
     8      decorate: true
     9      path_alias: k8s.io/node-problem-detector
    10      labels:
    11        preset-service-account: "true"
    12        preset-dind-enabled: "true"
    13      spec:
    14        containers:
    15        - image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20240515-17c6d50e24-master
    16          command:
    17          - runner.sh
    18          args:
    19          - bash
    20          - -c
    21          # TODO: this job doesn't match the CI version (no .env file push).
    22          # Consider making it similar or even deleting it.
    23          - >-
    24            ./test/build.sh install-lib &&
    25            make build
    26          resources:
    27            limits:
    28              cpu: 4
    29              memory: 6Gi
    30            requests:
    31              cpu: 4
    32              memory: 6Gi
    33          # docker-in-docker needs privileged mode
    34          securityContext:
    35            privileged: true
    36      annotations:
    37        testgrid-dashboards: presubmits-node-problem-detector
    38        testgrid-num-columns-recent: '30'
    39    - name: pull-npd-test
    40      cluster: k8s-infra-prow-build
    41      branches:
    42      - master
    43      always_run: true
    44      decorate: true
    45      path_alias: k8s.io/node-problem-detector
    46      labels:
    47        preset-service-account: "true"
    48      spec:
    49        containers:
    50        - image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20240515-17c6d50e24-master
    51          command:
    52          - runner.sh
    53          args:
    54          - bash
    55          - -c
    56          - >-
    57            ./test/build.sh install-lib &&
    58            make test
    59          resources:
    60            limits:
    61              cpu: 2
    62              memory: 4Gi
    63            requests:
    64              cpu: 2
    65              memory: 4Gi
    66      annotations:
    67        testgrid-dashboards: presubmits-node-problem-detector
    68        testgrid-num-columns-recent: '30'
    69    - name: pull-npd-verify-gomod
    70      cluster: k8s-infra-prow-build
    71      branches:
    72      - master
    73      always_run: true
    74      decorate: true
    75      path_alias: k8s.io/node-problem-detector
    76      labels:
    77        preset-service-account: "true"
    78      spec:
    79        containers:
    80        - image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20240515-17c6d50e24-master
    81          command:
    82          - runner.sh
    83          args:
    84          - bash
    85          - -c
    86          - >-
    87            ./hack/verify-gomod.sh
    88          resources:
    89            limits:
    90              cpu: 2
    91              memory: 4Gi
    92            requests:
    93              cpu: 2
    94              memory: 4Gi
    95      annotations:
    96        testgrid-dashboards: presubmits-node-problem-detector
    97        testgrid-num-columns-recent: '30'
    98    - name: pull-npd-e2e-node
    99      # TODO(kubernetes/kubernetes#119211): switch to k8s-infra-prow-build once it has been properly configured
   100      cluster: default
   101      branches:
   102      - master
   103      always_run: true
   104      decorate: true
   105      path_alias: k8s.io/node-problem-detector
   106      labels:
   107        preset-service-account: "true"
   108        preset-k8s-ssh: "true"
   109        preset-dind-enabled: "true"
   110      extra_refs:
   111      - org: kubernetes
   112        repo: kubernetes
   113        base_ref: master
   114        path_alias: k8s.io/kubernetes
   115      - org: kubernetes
   116        repo: test-infra
   117        base_ref: master
   118        path_alias: k8s.io/test-infra
   119      spec:
   120        containers:
   121        - image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20240515-17c6d50e24-master
   122          command:
   123          - runner.sh
   124          args:
   125          - bash
   126          - -c
   127          - >-
   128            ./test/build.sh -p $(BUILD_ID) pr &&
   129            source pr.env &&
   130            cd $(GOPATH)/src/k8s.io/kubernetes &&
   131            /workspace/scenarios/kubernetes_e2e.py
   132            --deployment=node
   133            --provider=gce
   134            --gcp-zone=us-west1-b
   135            --node-tests=true
   136            "--node-args=--image-config-file=/home/prow/go/src/k8s.io/test-infra/jobs/e2e_node/containerd/image-config-systemd.yaml --extra-envs=${EXTRA_ENVS}"
   137            '--node-test-args=--kubelet-flags="--cgroup-driver=systemd --cgroups-per-qos=true --cgroup-root=/"'
   138            '--test_args=--nodes=8 --focus=NodeProblemDetector'
   139            --timeout=90m
   140          resources:
   141            limits:
   142              cpu: 4
   143              memory: 6Gi
   144            requests:
   145              cpu: 4
   146              memory: 6Gi
   147          # docker-in-docker needs privileged mode
   148          securityContext:
   149            privileged: true
   150      annotations:
   151        testgrid-dashboards: presubmits-node-problem-detector
   152        testgrid-num-columns-recent: '30'
   153    - name: pull-npd-e2e-kubernetes-gce-gci
   154      # TODO(kubernetes/kubernetes#119211): switch to k8s-infra-prow-build once it has been properly configured
   155      cluster: default
   156      branches:
   157      - master
   158      always_run: true
   159      decorate: true
   160      path_alias: k8s.io/node-problem-detector
   161      labels:
   162        preset-service-account: "true"
   163        preset-k8s-ssh: "true"
   164        preset-dind-enabled: "true"
   165      spec:
   166        containers:
   167        - image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20240515-17c6d50e24-master
   168          command:
   169          - runner.sh
   170          args:
   171          - bash
   172          - -c
   173          - >-
   174            ./test/build.sh -p $(BUILD_ID) pr &&
   175            source pr.env &&
   176            /workspace/scenarios/kubernetes_e2e.py
   177            --cluster=
   178            --extract=ci/latest
   179            --provider=gce
   180            --gcp-node-image=gci
   181            --gcp-zone=us-west1-b
   182            --ginkgo-parallel=30
   183            --test_args=--ginkgo.focus=NodeProblemDetector
   184            --timeout=60m
   185          resources:
   186            limits:
   187              cpu: 4
   188              memory: 6Gi
   189            requests:
   190              cpu: 4
   191              memory: 6Gi
   192          # docker-in-docker needs privileged mode
   193          securityContext:
   194            privileged: true
   195      annotations:
   196        testgrid-dashboards: presubmits-node-problem-detector
   197        testgrid-num-columns-recent: '30'
   198    - name: pull-npd-e2e-kubernetes-gce-gci-custom-flags
   199      # TODO(kubernetes/kubernetes#119211): switch to k8s-infra-prow-build once it has been properly configured
   200      cluster: default
   201      branches:
   202      - master
   203      always_run: true
   204      decorate: true
   205      path_alias: k8s.io/node-problem-detector
   206      labels:
   207        preset-service-account: "true"
   208        preset-k8s-ssh: "true"
   209        preset-dind-enabled: "true"
   210      spec:
   211        containers:
   212        - image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20240515-17c6d50e24-master
   213          command:
   214          - runner.sh
   215          args:
   216          - bash
   217          - -c
   218          - >-
   219            ./test/build.sh -p $(BUILD_ID) -f pr &&
   220            source pr.env &&
   221            /workspace/scenarios/kubernetes_e2e.py
   222            --cluster=
   223            --extract=ci/latest
   224            --provider=gce
   225            --gcp-node-image=gci
   226            --gcp-zone=us-west1-b
   227            --ginkgo-parallel=30
   228            --test_args=--ginkgo.focus=NodeProblemDetector
   229            --timeout=60m
   230          resources:
   231            limits:
   232              cpu: 4
   233              memory: 6Gi
   234            requests:
   235              cpu: 4
   236              memory: 6Gi
   237          # docker-in-docker needs privileged mode
   238          securityContext:
   239            privileged: true
   240      annotations:
   241        testgrid-dashboards: presubmits-node-problem-detector
   242        testgrid-num-columns-recent: '30'
   243    - name: pull-npd-e2e-test
   244      cluster: k8s-infra-prow-build
   245      branches:
   246      - master
   247      always_run: true
   248      decorate: true
   249      path_alias: k8s.io/node-problem-detector
   250      labels:
   251        preset-service-account: "true"
   252        preset-k8s-ssh: "true"
   253      spec:
   254        containers:
   255        - image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20240515-17c6d50e24-master
   256          env:
   257          - name: ZONE
   258            value: us-central1-a
   259          - name: IMAGE_FAMILY
   260            value: cos-stable
   261          - name: IMAGE_PROJECT
   262            value: cos-cloud
   263          - name: BOSKOS_PROJECT_TYPE
   264            value: gce-project
   265          command:
   266          - runner.sh
   267          args:
   268          - bash
   269          - -c
   270          - >-
   271            ./test/build.sh install-lib &&
   272            SSH_USER=${USER} SSH_KEY=${JENKINS_GCE_SSH_PRIVATE_KEY_FILE} make e2e-test
   273          resources:
   274            limits:
   275              cpu: 2
   276              memory: 4Gi
   277            requests:
   278              cpu: 2
   279              memory: 4Gi
   280      annotations:
   281        testgrid-dashboards: presubmits-node-problem-detector
   282        testgrid-num-columns-recent: '30'
   283    - name: pull-npd-e2e-kubernetes-gce-ubuntu
   284      # TODO(kubernetes/kubernetes#119211): switch to k8s-infra-prow-build once it has been properly configured
   285      cluster: default
   286      branches:
   287      - master
   288      always_run: true
   289      decorate: true
   290      path_alias: k8s.io/node-problem-detector
   291      labels:
   292        preset-service-account: "true"
   293        preset-k8s-ssh: "true"
   294        preset-dind-enabled: "true"
   295      spec:
   296        containers:
   297        - image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20240515-17c6d50e24-master
   298          command:
   299          - runner.sh
   300          args:
   301          - bash
   302          - -c
   303          - >-
   304            ./test/build.sh -p $(BUILD_ID) pr &&
   305            source pr.env &&
   306            /workspace/scenarios/kubernetes_e2e.py
   307            --cluster=
   308            --extract=ci/latest
   309            --provider=gce
   310            --gcp-node-image=ubuntu
   311            --gcp-zone=us-west1-b
   312            --ginkgo-parallel=30
   313            --image-family=pipeline-1-24
   314            --image-project=ubuntu-os-gke-cloud
   315            --test_args=--ginkgo.focus=NodeProblemDetector
   316            --timeout=60m
   317          resources:
   318            limits:
   319              cpu: 4
   320              memory: 6Gi
   321            requests:
   322              cpu: 4
   323              memory: 6Gi
   324          # docker-in-docker needs privileged mode
   325          securityContext:
   326            privileged: true
   327      annotations:
   328        testgrid-dashboards: presubmits-node-problem-detector
   329        testgrid-num-columns-recent: '30'
   330    - name: pull-npd-e2e-kubernetes-gce-ubuntu-custom-flags
   331      # TODO(kubernetes/kubernetes#119211): switch to k8s-infra-prow-build once it has been properly configured
   332      cluster: default
   333      branches:
   334      - master
   335      always_run: true
   336      decorate: true
   337      path_alias: k8s.io/node-problem-detector
   338      labels:
   339        preset-service-account: "true"
   340        preset-k8s-ssh: "true"
   341        preset-dind-enabled: "true"
   342      spec:
   343        containers:
   344        - image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20240515-17c6d50e24-master
   345          command:
   346          - runner.sh
   347          args:
   348          - bash
   349          - -c
   350          - >-
   351            ./test/build.sh -p $(BUILD_ID) -f pr &&
   352            source pr.env &&
   353            /workspace/scenarios/kubernetes_e2e.py
   354            --cluster=
   355            --extract=ci/latest
   356            --provider=gce
   357            --gcp-node-image=ubuntu
   358            --gcp-zone=us-west1-b
   359            --ginkgo-parallel=30
   360            --image-family=pipeline-1-24
   361            --image-project=ubuntu-os-gke-cloud
   362            --test_args=--ginkgo.focus=NodeProblemDetector
   363            --timeout=60m
   364          resources:
   365            limits:
   366              cpu: 4
   367              memory: 6Gi
   368            requests:
   369              cpu: 4
   370              memory: 6Gi
   371          # docker-in-docker needs privileged mode
   372          securityContext:
   373            privileged: true
   374      annotations:
   375        testgrid-dashboards: presubmits-node-problem-detector
   376        testgrid-num-columns-recent: '30'