Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
152 changes: 4 additions & 148 deletions config/jobs/kubernetes/generated/generated.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ periodics:
- --env=KUBE_FEATURE_GATES=AllAlpha=true,AllBeta=true,EventedPLEG=false
- --env=ENABLE_CACHE_MUTATION_DETECTOR=true
- --runtime-config=api/all=true
- --test_args=--ginkgo.focus=\[Feature:(AdmissionWebhookMatchConditions|InPlacePodVerticalScaling|SidecarContainers|StorageVersionAPI|PodPreset|StatefulSetAutoDeletePVC)\]|Networking --ginkgo.skip=\[Feature:(SCTPConnectivity|Volumes|Networking-Performance|Example)\]|IPv6|csi-hostpath-v0 --minStartupPods=8
- --test_args=--ginkgo.focus=\[Feature:(AdmissionWebhookMatchConditions|InPlacePodVerticalScaling|StorageVersionAPI|PodPreset|StatefulSetAutoDeletePVC)\]|Networking --ginkgo.skip=\[Feature:(SCTPConnectivity|Volumes|Networking-Performance|Example)\]|IPv6|csi-hostpath-v0 --minStartupPods=8
env:
image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20251029-79c2132152-master
resources:
Expand Down Expand Up @@ -78,42 +78,6 @@ periodics:
annotations:
testgrid-tab-name: gce-cos-k8sbeta-default
testgrid-dashboards: sig-release-1.34-blocking
- tags:
- generated # AUTO-GENERATED by releng/generate_tests.py - DO NOT EDIT!
interval: 1h
labels:
preset-service-account: 'true'
preset-k8s-ssh: 'true'
decorate: true
decoration_config:
timeout: 170m
name: ci-kubernetes-e2e-gce-cos-k8sbeta-ingress
spec:
containers:
- command:
- runner.sh
- /workspace/scenarios/kubernetes_e2e.py
args:
- --check-leaked-resources
- --provider=gce
- --gcp-region=us-central1
- --gcp-node-image=gci
- --extract=ci/latest-1.34
- --timeout=150m
- --test_args=--ginkgo.focus=\[Feature:Ingress\] --minStartupPods=8
env:
image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20251029-79c2132152-master
resources:
requests:
cpu: 1000m
memory: 3Gi
limits:
cpu: 1000m
memory: 3Gi
cluster: k8s-infra-prow-build
annotations:
testgrid-tab-name: gce-cos-k8sbeta-ingress
testgrid-dashboards: sig-release-1.34-blocking
- tags:
- generated # AUTO-GENERATED by releng/generate_tests.py - DO NOT EDIT!
interval: 1h
Expand Down Expand Up @@ -253,7 +217,7 @@ periodics:
- --env=KUBE_FEATURE_GATES=AllAlpha=true,AllBeta=true,EventedPLEG=false
- --env=ENABLE_CACHE_MUTATION_DETECTOR=true
- --runtime-config=api/all=true
- --test_args=--ginkgo.focus=\[Feature:(AdmissionWebhookMatchConditions|InPlacePodVerticalScaling|SidecarContainers|StorageVersionAPI|PodPreset|StatefulSetAutoDeletePVC)\]|Networking --ginkgo.skip=\[Feature:(SCTPConnectivity|Volumes|Networking-Performance|Example)\]|IPv6|csi-hostpath-v0 --minStartupPods=8
- --test_args=--ginkgo.focus=\[Feature:(AdmissionWebhookMatchConditions|InPlacePodVerticalScaling|StorageVersionAPI|PodPreset|StatefulSetAutoDeletePVC)\]|Networking --ginkgo.skip=\[Feature:(SCTPConnectivity|Volumes|Networking-Performance|Example)\]|IPv6|csi-hostpath-v0 --minStartupPods=8
env:
image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20251029-79c2132152-master
resources:
Expand Down Expand Up @@ -299,42 +263,6 @@ periodics:
annotations:
testgrid-tab-name: gce-cos-k8sstable1-default
testgrid-dashboards: sig-release-1.33-blocking
- tags:
- generated # AUTO-GENERATED by releng/generate_tests.py - DO NOT EDIT!
interval: 2h
labels:
preset-service-account: 'true'
preset-k8s-ssh: 'true'
decorate: true
decoration_config:
timeout: 170m
name: ci-kubernetes-e2e-gce-cos-k8sstable1-ingress
spec:
containers:
- command:
- runner.sh
- /workspace/scenarios/kubernetes_e2e.py
args:
- --check-leaked-resources
- --provider=gce
- --gcp-region=us-central1
- --gcp-node-image=gci
- --extract=ci/latest-1.33
- --timeout=150m
- --test_args=--ginkgo.focus=\[Feature:Ingress\] --minStartupPods=8
env:
image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20251029-79c2132152-master
resources:
requests:
cpu: 1000m
memory: 3Gi
limits:
cpu: 1000m
memory: 3Gi
cluster: k8s-infra-prow-build
annotations:
testgrid-tab-name: gce-cos-k8sstable1-ingress
testgrid-dashboards: sig-release-1.33-blocking
- tags:
- generated # AUTO-GENERATED by releng/generate_tests.py - DO NOT EDIT!
interval: 2h
Expand Down Expand Up @@ -468,7 +396,7 @@ periodics:
- --env=KUBE_FEATURE_GATES=AllAlpha=true,AllBeta=true,EventedPLEG=false
- --env=ENABLE_CACHE_MUTATION_DETECTOR=true
- --runtime-config=api/all=true
- --test_args=--ginkgo.focus=\[Feature:(AdmissionWebhookMatchConditions|InPlacePodVerticalScaling|SidecarContainers|StorageVersionAPI|PodPreset|StatefulSetAutoDeletePVC)\]|Networking --ginkgo.skip=\[Feature:(SCTPConnectivity|Volumes|Networking-Performance|Example)\]|IPv6|csi-hostpath-v0 --minStartupPods=8
- --test_args=--ginkgo.focus=\[Feature:(AdmissionWebhookMatchConditions|InPlacePodVerticalScaling|StorageVersionAPI|PodPreset|StatefulSetAutoDeletePVC)\]|Networking --ginkgo.skip=\[Feature:(SCTPConnectivity|Volumes|Networking-Performance|Example)\]|IPv6|csi-hostpath-v0 --minStartupPods=8
env:
image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20251029-79c2132152-master
resources:
Expand Down Expand Up @@ -514,42 +442,6 @@ periodics:
annotations:
testgrid-tab-name: gce-cos-k8sstable2-default
testgrid-dashboards: sig-release-1.32-blocking
- tags:
- generated # AUTO-GENERATED by releng/generate_tests.py - DO NOT EDIT!
interval: 6h
labels:
preset-service-account: 'true'
preset-k8s-ssh: 'true'
decorate: true
decoration_config:
timeout: 170m
name: ci-kubernetes-e2e-gce-cos-k8sstable2-ingress
spec:
containers:
- command:
- runner.sh
- /workspace/scenarios/kubernetes_e2e.py
args:
- --check-leaked-resources
- --provider=gce
- --gcp-region=us-central1
- --gcp-node-image=gci
- --extract=ci/latest-1.32
- --timeout=150m
- --test_args=--ginkgo.focus=\[Feature:Ingress\] --minStartupPods=8
env:
image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20251029-79c2132152-master
resources:
requests:
cpu: 1000m
memory: 3Gi
limits:
cpu: 1000m
memory: 3Gi
cluster: k8s-infra-prow-build
annotations:
testgrid-tab-name: gce-cos-k8sstable2-ingress
testgrid-dashboards: sig-release-1.32-blocking
- tags:
- generated # AUTO-GENERATED by releng/generate_tests.py - DO NOT EDIT!
interval: 6h
Expand Down Expand Up @@ -683,7 +575,7 @@ periodics:
- --env=KUBE_FEATURE_GATES=AllAlpha=true,AllBeta=true,EventedPLEG=false
- --env=ENABLE_CACHE_MUTATION_DETECTOR=true
- --runtime-config=api/all=true
- --test_args=--ginkgo.focus=\[Feature:(AdmissionWebhookMatchConditions|InPlacePodVerticalScaling|SidecarContainers|StorageVersionAPI|PodPreset|StatefulSetAutoDeletePVC)\]|Networking --ginkgo.skip=\[Feature:(SCTPConnectivity|Volumes|Networking-Performance|Example)\]|IPv6|csi-hostpath-v0 --minStartupPods=8
- --test_args=--ginkgo.focus=\[Feature:(AdmissionWebhookMatchConditions|InPlacePodVerticalScaling|StorageVersionAPI|PodPreset|StatefulSetAutoDeletePVC)\]|Networking --ginkgo.skip=\[Feature:(SCTPConnectivity|Volumes|Networking-Performance|Example)\]|IPv6|csi-hostpath-v0 --minStartupPods=8
env:
image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20251029-79c2132152-master
resources:
Expand Down Expand Up @@ -730,42 +622,6 @@ periodics:
testgrid-tab-name: gce-cos-k8sstable3-default
testgrid-dashboards: sig-release-1.31-blocking
testgrid-num-failures-to-alert: '6'
- tags:
- generated # AUTO-GENERATED by releng/generate_tests.py - DO NOT EDIT!
interval: 24h
labels:
preset-service-account: 'true'
preset-k8s-ssh: 'true'
decorate: true
decoration_config:
timeout: 170m
name: ci-kubernetes-e2e-gce-cos-k8sstable3-ingress
spec:
containers:
- command:
- runner.sh
- /workspace/scenarios/kubernetes_e2e.py
args:
- --check-leaked-resources
- --provider=gce
- --gcp-region=us-central1
- --gcp-node-image=gci
- --extract=ci/latest-1.31
- --timeout=150m
- --test_args=--ginkgo.focus=\[Feature:Ingress\] --minStartupPods=8
env:
image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20251029-79c2132152-master
resources:
requests:
cpu: 1000m
memory: 3Gi
limits:
cpu: 1000m
memory: 3Gi
cluster: k8s-infra-prow-build
annotations:
testgrid-tab-name: gce-cos-k8sstable3-ingress
testgrid-dashboards: sig-release-1.31-blocking
- tags:
- generated # AUTO-GENERATED by releng/generate_tests.py - DO NOT EDIT!
interval: 24h
Expand Down
8 changes: 8 additions & 0 deletions config/jobs/kubernetes/kops/build_jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,10 @@ def build_test(cloud='aws',
if instance_groups_overrides is None:
instance_groups_overrides = []

kops_image = None
kops_ssh_user = None
kops_ssh_key_path = None
Comment on lines +122 to +124
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll probably do this in a separate PR. AFAIK this script don't rely on the repo dependencies. cc @hakman

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It might, do you see any issue with the changes, they seem minor?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It got flagged by the linter after the upgrade


if cloud == 'aws':
kops_image = distro_images[distro]
kops_ssh_user = distros_ssh_user[distro]
Expand Down Expand Up @@ -327,6 +331,10 @@ def presubmit_test(branch='master',
alert_num_failures=None,
instance_groups_overrides=None):
# pylint: disable=too-many-statements,too-many-branches,too-many-arguments
kops_image = None
kops_ssh_user = None
kops_ssh_key_path = None

if cloud == 'aws':
if distro == "channels":
kops_image = None
Expand Down
28 changes: 0 additions & 28 deletions config/testgrids/generated-test-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,6 @@ test_groups:
- configuration_value: master_os_image
- configuration_value: Commit
- configuration_value: infra-commit
- name: ci-kubernetes-e2e-gce-cos-k8sbeta-ingress
gcs_prefix: kubernetes-ci-logs/logs/ci-kubernetes-e2e-gce-cos-k8sbeta-ingress
column_header:
- configuration_value: node_os_image
- configuration_value: master_os_image
- configuration_value: Commit
- configuration_value: infra-commit
- name: ci-kubernetes-e2e-gce-cos-k8sbeta-reboot
gcs_prefix: kubernetes-ci-logs/logs/ci-kubernetes-e2e-gce-cos-k8sbeta-reboot
column_header:
Expand Down Expand Up @@ -57,13 +50,6 @@ test_groups:
- configuration_value: master_os_image
- configuration_value: Commit
- configuration_value: infra-commit
- name: ci-kubernetes-e2e-gce-cos-k8sstable1-ingress
gcs_prefix: kubernetes-ci-logs/logs/ci-kubernetes-e2e-gce-cos-k8sstable1-ingress
column_header:
- configuration_value: node_os_image
- configuration_value: master_os_image
- configuration_value: Commit
- configuration_value: infra-commit
- name: ci-kubernetes-e2e-gce-cos-k8sstable1-reboot
gcs_prefix: kubernetes-ci-logs/logs/ci-kubernetes-e2e-gce-cos-k8sstable1-reboot
column_header:
Expand Down Expand Up @@ -99,13 +85,6 @@ test_groups:
- configuration_value: master_os_image
- configuration_value: Commit
- configuration_value: infra-commit
- name: ci-kubernetes-e2e-gce-cos-k8sstable2-ingress
gcs_prefix: kubernetes-ci-logs/logs/ci-kubernetes-e2e-gce-cos-k8sstable2-ingress
column_header:
- configuration_value: node_os_image
- configuration_value: master_os_image
- configuration_value: Commit
- configuration_value: infra-commit
- name: ci-kubernetes-e2e-gce-cos-k8sstable2-reboot
gcs_prefix: kubernetes-ci-logs/logs/ci-kubernetes-e2e-gce-cos-k8sstable2-reboot
column_header:
Expand Down Expand Up @@ -141,13 +120,6 @@ test_groups:
- configuration_value: master_os_image
- configuration_value: Commit
- configuration_value: infra-commit
- name: ci-kubernetes-e2e-gce-cos-k8sstable3-ingress
gcs_prefix: kubernetes-ci-logs/logs/ci-kubernetes-e2e-gce-cos-k8sstable3-ingress
column_header:
- configuration_value: node_os_image
- configuration_value: master_os_image
- configuration_value: Commit
- configuration_value: infra-commit
- name: ci-kubernetes-e2e-gce-cos-k8sstable3-reboot
gcs_prefix: kubernetes-ci-logs/logs/ci-kubernetes-e2e-gce-cos-k8sstable3-reboot
column_header:
Expand Down
18 changes: 0 additions & 18 deletions config/testgrids/kubernetes/sig-network/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,24 +22,6 @@ dashboards:
- name: sig-network-external-dns
- name: sig-network-gce
dashboard_tab:
- name: gce-cos-1.11-ingress
test_group_name: ci-kubernetes-e2e-gce-cos-k8sstable3-ingress
alert_options:
alert_mail_to_addresses: [email protected]
- name: gce-cos-1.12-ingress
test_group_name: ci-kubernetes-e2e-gce-cos-k8sstable2-ingress
alert_options:
alert_mail_to_addresses: [email protected]
- name: gce-cos-1.13-ingress
test_group_name: ci-kubernetes-e2e-gce-cos-k8sstable1-ingress
alert_options:
alert_mail_to_addresses: [email protected]
# TODO(1.30): Uncomment this when adding jobs for release-1.30 branch.
# TODO(1.29): comment this out when we move 1.29 to stable1
- name: gce-cos-1.14-ingress
test_group_name: ci-kubernetes-e2e-gce-cos-k8sbeta-ingress
alert_options:
alert_mail_to_addresses: [email protected]
- name: gci-gce-ipvs
test_group_name: ci-kubernetes-e2e-gci-gce-ipvs
description: network gci-gce e2e tests in ipvs proxier mode
Expand Down
7 changes: 6 additions & 1 deletion hack/make-rules/py-test/activate-python_venv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,12 @@ cd "${REPO_ROOT}"
# Trick from https://pythonspeed.com/articles/activate-virtualenv-dockerfile/
export VIRTUAL_ENV="${REPO_ROOT}/.python_virtual_env"

if [[ ! -f "${VIRTUAL_ENV}/bin/activate" ]]; then
# Check if the virtual environment exists and matches the current python version
CURRENT_PYTHON_VERSION=$(python3 -c 'import sys; print(f"{sys.version_info.major}.{sys.version_info.minor}")')
VENV_PYTHON_VERSION_DIR="${VIRTUAL_ENV}/lib/python${CURRENT_PYTHON_VERSION}"

if [[ ! -d "${VENV_PYTHON_VERSION_DIR}" || ! -f "${VIRTUAL_ENV}/bin/activate" ]]; then
rm -rf "${VIRTUAL_ENV}"
python3 -m venv "${VIRTUAL_ENV}"
fi

Expand Down
4 changes: 2 additions & 2 deletions hack/run-in-python-container.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ cd "${REPO_ROOT}"

# Use ARM version of Python image when on ARM architecture
if [[ "$(uname -m)" == "arm64" ]]; then
PY_IMAGE='python:3.9-slim-buster'
PY_IMAGE='python:3.14-slim-trixie'
PLATFORM_FLAG="--platform=linux/arm64"
else
PY_IMAGE='python:3.9-slim-buster'
PY_IMAGE='python:3.14-slim-trixie'
PLATFORM_FLAG=""
fi

Expand Down
2 changes: 1 addition & 1 deletion kettle/make_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
try:
import defusedxml.ElementTree as ET
except ImportError:
import xml.etree.cElementTree as ET
import xml.etree.ElementTree as ET

import model

Expand Down
2 changes: 1 addition & 1 deletion kettle/make_json_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@ def expect(args, needles, negneedles, expected_ret=None):
for needle in negneedles:
# Only match negative needles in the middle of a word, to avoid
# failures on timestamps that happen to contain a short number.
self.assertNotRegexpMatches(result, r'\b%s\b' % needle) # pylint: disable=deprecated-method
self.assertNotRegex(result, r'\b%s\b' % needle) # pylint: disable=deprecated-method

add_build('some-job/123', last_month, last_month + 10, 'SUCCESS', junits)
add_build('some-job/456', now - 10, now, 'FAILURE', junits)
Expand Down
4 changes: 2 additions & 2 deletions metrics/bigquery.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import argparse
import glob
import os
import pipes
import shlex
import re
import subprocess
import sys
Expand All @@ -34,7 +34,7 @@

def check(cmd, **kwargs):
"""Logs and runs the command, raising on errors."""
print('Run:', ' '.join(pipes.quote(c) for c in cmd), end=' ', file=sys.stderr)
print('Run:', ' '.join(shlex.quote(c) for c in cmd), end=' ', file=sys.stderr)
if hasattr(kwargs.get('stdout'), 'name'):
print(' > %s' % kwargs['stdout'].name, file=sys.stderr)
else:
Expand Down
2 changes: 1 addition & 1 deletion pylintrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[MESSAGES CONTROL]
disable=fixme,locally-disabled,locally-enabled,relative-import,too-few-public-methods,missing-docstring,ungrouped-imports,too-many-lines,too-many-locals,invalid-name,superfluous-parens
disable=fixme,locally-disabled,locally-enabled,relative-import,too-few-public-methods,missing-docstring,ungrouped-imports,too-many-lines,too-many-locals,invalid-name,superfluous-parens,consider-using-f-string,unspecified-encoding,consider-using-with,missing-timeout,consider-using-from-import,too-many-positional-arguments,unnecessary-lambda-assignment,use-dict-literal,broad-exception-raised,consider-using-enumerate,consider-using-in,inconsistent-return-statements,no-else-raise,f-string-without-interpolation,format-string-without-interpolation,consider-iterating-dictionary,useless-option-value,consider-using-max-builtin

[REPORTS]
reports=no
Expand Down
3 changes: 2 additions & 1 deletion releng/generate_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,8 @@ def main(yaml_config_path, output_dir, testgrid_output_path):
if __name__ == '__main__':
PARSER = argparse.ArgumentParser(
description='Create test definitions from the given yaml config')
PARSER.add_argument('--yaml-config-path', help='Path to config.yaml')
PARSER.add_argument('--yaml-config-path', help='Path to config.yaml',
default='releng/test_config.yaml')
PARSER.add_argument(
'--output-dir',
help='Prowjob config output dir',
Expand Down
Loading