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
2 changes: 1 addition & 1 deletion .github/workflows/backend-visualization.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
python-version: '3.10'

- name: Run tests
run: ./test/presubmit-backend-visualization.sh
16 changes: 8 additions & 8 deletions .github/workflows/e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9
python-version: 3.10

- name: Create KFP cluster
id: create-kfp-cluster
Expand Down Expand Up @@ -83,7 +83,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9
python-version: 3.10

- name: Create KFP cluster
id: create-kfp-cluster
Expand Down Expand Up @@ -133,7 +133,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9
python-version: 3.10

- name: Create KFP cluster
id: create-kfp-cluster
Expand Down Expand Up @@ -190,7 +190,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9
python-version: 3.10

- name: Create KFP cluster
id: create-kfp-cluster
Expand Down Expand Up @@ -248,7 +248,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9
python-version: 3.10

- name: Create KFP cluster
id: create-kfp-cluster
Expand Down Expand Up @@ -306,7 +306,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9
python-version: 3.10

- name: Create KFP cluster
id: create-kfp-cluster
Expand Down Expand Up @@ -363,7 +363,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9
python-version: 3.10

- name: Create KFP cluster
id: create-kfp-cluster
Expand Down Expand Up @@ -420,7 +420,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9
python-version: 3.10

- name: Create KFP cluster
id: create-kfp-cluster
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/gcpc-modules-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9
python-version: 3.10

- name: Install protobuf-compiler
run: sudo apt update && sudo apt install -y protobuf-compiler
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/kfp-kubernetes-execution-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
python-version: '3.10'

# This is intended to address disk space issues that have surfaced
# intermittently during CI -
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/kfp-kubernetes-library-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
strategy:
matrix:
python: [
{ 'version': '3.9' },
{ 'version': '3.10' },
{ 'version': '3.13' }
]
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/kfp-samples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9
python-version: 3.10

- name: Free up space in /dev/root
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/kfp-sdk-runtime-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
runs-on: ubuntu-24.04
strategy:
matrix:
python: ['3.9', '3.13']
python: ['3.10', '3.13']
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/kfp-sdk-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9', '3.13']
python-version: ['3.10', '3.13']

steps:
- name: Checkout code
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/periodic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9
python-version: 3.10
- name: Create KFP cluster
uses: ./.github/actions/kfp-cluster
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sdk-component-yaml.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9
python-version: 3.10

- name: Install protobuf dependencies
uses: ./.github/actions/protobuf
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sdk-docformatter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9
python-version: 3.10

- name: Run docformatter tests
run: ./test/presubmit-docformatter-sdk.sh
2 changes: 1 addition & 1 deletion .github/workflows/sdk-isort.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9
python-version: 3.10

- name: Run isort tests
run: ./test/presubmit-isort-sdk.sh
2 changes: 1 addition & 1 deletion .github/workflows/sdk-upgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9
python-version: 3.10

- name: Run SDK upgrade tests
run: ./test/presubmit-test-sdk-upgrade.sh
2 changes: 1 addition & 1 deletion .github/workflows/sdk-yapf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
python-version: '3.10'

- name: Install dependencies
run: pip install yapf
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/upgrade-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9
python-version: 3.10

- name: Create KFP cluster
id: create-kfp-cluster
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/validate-generated-files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9
python-version: 3.10

- name: Install protobuf dependencies & kfp-pipeline-spec
id: install-protobuf-deps
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ _build

# virtualenv
.venv/
venv

# python sdk package
*.tar.gz
Expand Down
4 changes: 2 additions & 2 deletions sdk/python/kfp/cli/compile_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def my_comp():
@dsl.container_component
def my_container_comp():
return dsl.ContainerSpec(
image='python:3.9',
image='python:3.10',
command=['echo', 'hello world'],
args=[],
)
Expand All @@ -55,7 +55,7 @@ def my_comp():
@dsl.container_component
def my_container_comp():
return dsl.ContainerSpec(
image='python:3.9',
image='python:3.10',
command=['echo', 'hello world'],
args=[],
)
Expand Down
14 changes: 7 additions & 7 deletions sdk/python/kfp/cli/component_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ def test_docker_file_is_created_correctly(self):
textwrap.dedent('''\
# Generated by KFP.

FROM python:3.9
FROM python:3.10

WORKDIR /usr/local/src/kfp/components
COPY runtime-requirements.txt runtime-requirements.txt
Expand Down Expand Up @@ -523,7 +523,7 @@ def test_docker_file_is_created_correctly_with_one_url(self):
textwrap.dedent('''\
# Generated by KFP.

FROM python:3.9
FROM python:3.10

WORKDIR /usr/local/src/kfp/components
COPY runtime-requirements.txt runtime-requirements.txt
Expand Down Expand Up @@ -554,7 +554,7 @@ def test_docker_file_is_created_correctly_with_two_urls(self):
textwrap.dedent('''\
# Generated by KFP.

FROM python:3.9
FROM python:3.10

WORKDIR /usr/local/src/kfp/components
COPY runtime-requirements.txt runtime-requirements.txt
Expand Down Expand Up @@ -597,7 +597,7 @@ def test_existing_dockerfile_can_be_overwritten(self):
textwrap.dedent('''\
# Generated by KFP.

FROM python:3.9
FROM python:3.10

WORKDIR /usr/local/src/kfp/components
COPY runtime-requirements.txt runtime-requirements.txt
Expand Down Expand Up @@ -636,7 +636,7 @@ def test_dockerfile_can_contain_custom_kfp_package(self):
file_start = textwrap.dedent('''\
# Generated by KFP.

FROM python:3.9
FROM python:3.10

WORKDIR /usr/local/src/kfp/components
COPY runtime-requirements.txt runtime-requirements.txt
Expand Down Expand Up @@ -665,7 +665,7 @@ def test_docker_file_is_created_one_trusted_host(self):
textwrap.dedent('''\
# Generated by KFP.

FROM python:3.9
FROM python:3.10

WORKDIR /usr/local/src/kfp/components
COPY runtime-requirements.txt runtime-requirements.txt
Expand Down Expand Up @@ -695,7 +695,7 @@ def test_docker_file_is_created_two_trusted_host(self):
textwrap.dedent('''\
# Generated by KFP.

FROM python:3.9
FROM python:3.10

WORKDIR /usr/local/src/kfp/components
COPY runtime-requirements.txt runtime-requirements.txt
Expand Down
16 changes: 8 additions & 8 deletions sdk/python/kfp/compiler/compiler_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,7 @@ def test_use_task_final_status_in_non_exit_op_yaml(self):
- {name: message, type: PipelineTaskFinalStatus}
implementation:
container:
image: python:3.9
image: python:3.10
command:
- echo
- {inputValue: message}
Expand Down Expand Up @@ -975,14 +975,14 @@ def orchestrator_pipeline():
def test_pipeline_with_parameterized_container_image(self):
with tempfile.TemporaryDirectory() as tmpdir:

@dsl.component(base_image='docker.io/python:3.9.17')
@dsl.component(base_image='docker.io/python:3.10.17')
def empty_component():
pass

@dsl.pipeline()
def simple_pipeline(img: str):
task = empty_component()
# overwrite base_image="docker.io/python:3.9.17"
# overwrite base_image="docker.io/python:3.10.17"
task.set_container_image(img)

output_yaml = os.path.join(tmpdir, 'result.yaml')
Expand Down Expand Up @@ -1010,14 +1010,14 @@ def simple_pipeline(img: str):
def test_pipeline_with_constant_container_image(self):
with tempfile.TemporaryDirectory() as tmpdir:

@dsl.component(base_image='docker.io/python:3.9.17')
@dsl.component(base_image='docker.io/python:3.10.17')
def empty_component():
pass

@dsl.pipeline()
def simple_pipeline():
task = empty_component()
# overwrite base_image="docker.io/python:3.9.17"
# overwrite base_image="docker.io/python:3.10.17"
task.set_container_image('constant-value')

output_yaml = os.path.join(tmpdir, 'result.yaml')
Expand Down Expand Up @@ -1474,7 +1474,7 @@ def test_compile_container_component_simple(self):
def hello_world_container() -> dsl.ContainerSpec:
"""Hello world component."""
return dsl.ContainerSpec(
image='python:3.9',
image='python:3.10',
command=['echo', 'hello world'],
args=[],
)
Expand All @@ -1497,7 +1497,7 @@ def test_compile_container_with_simple_io(self):
@dsl.container_component
def container_simple_io(text: str, output_path: dsl.OutputPath(str)):
return dsl.ContainerSpec(
image='python:3.9',
image='python:3.10',
command=['my_program', text],
args=['--output_path', output_path])

Expand Down Expand Up @@ -2545,7 +2545,7 @@ def my_component(string: str, model: bool) -> str:
def my_container_component(text: str, output_path: OutputPath(str)):
"""component description."""
return ContainerSpec(
image='python:3.9',
image='python:3.10',
command=['my_program', text],
args=['--output_path', output_path])

Expand Down
2 changes: 1 addition & 1 deletion sdk/python/kfp/components/load_yaml_utilities_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def test_load_component_from_url(self):
self.assertEqual(component.name, 'identity')
self.assertEqual(
component.component_spec.implementation.container.image,
'python:3.9')
'python:3.10')


if __name__ == '__main__':
Expand Down
2 changes: 1 addition & 1 deletion sdk/python/kfp/dsl/component_decorator.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def my_function_one(input: str, output: Output[Model]):
...

@dsl.component(
base_image='python:3.9',
base_image='python:3.10',
output_component_file='my_function.yaml'
)
def my_function_two(input: Input[Mode])):
Expand Down
Loading
Loading