Skip to content

Conversation

@aniketpati1121
Copy link
Contributor

@aniketpati1121 aniketpati1121 commented Aug 22, 2025

This PR removes the KFP dependency executor and related checks from the Kubeflow Pipelines SDK. The _KFP_RUNTIME check in kfp/init.py has been removed, and necessary updates have been applied to ensure compatibility.

fixes #12090

@google-oss-prow google-oss-prow bot requested review from DharmitD and zazulam August 22, 2025 12:12
@google-oss-prow
Copy link

Hi @aniketpati1121. Thanks for your PR.

I'm waiting for a kubeflow member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@github-actions
Copy link

🚫 This command cannot be processed. Only organization members or owners can use the commands.

@aniketpati1121 aniketpati1121 force-pushed the remove-kfp-dependency-executor branch 2 times, most recently from 5bb7118 to 122ca21 Compare August 22, 2025 18:07
@aniketpati1121 aniketpati1121 force-pushed the remove-kfp-dependency-executor branch from 122ca21 to c0addc3 Compare September 1, 2025 06:50
@aniketpati1121
Copy link
Contributor Author

Hi all,
This PR is ready for review.
All checks have passed successfully.
Looking forward to your feedback. Thanks!

@zazulam
Copy link
Collaborator

zazulam commented Sep 9, 2025

/ok-to-test

@github-actions
Copy link

github-actions bot commented Sep 9, 2025

Approvals successfully granted for pending runs.

@aniketpati1121 aniketpati1121 force-pushed the remove-kfp-dependency-executor branch 2 times, most recently from fcb0f6c to 6ec4cb4 Compare September 12, 2025 11:15
@google-oss-prow
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign mprahl for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@aniketpati1121 aniketpati1121 force-pushed the remove-kfp-dependency-executor branch from 6ec4cb4 to 78220c7 Compare September 15, 2025 04:42
@aniketpati1121
Copy link
Contributor Author

Hi @kubeflow/owners,

This PR removes the KFP dependency executor and related checks. All conflicts have been resolved, rebase is done, and all CI checks (CI Check, DCO) have passed successfully. Could you please review and provide /lgtm and /approve so that it can be merged?

Thanks for your time and support!

Copy link
Collaborator

@zazulam zazulam left a comment

Choose a reason for hiding this comment

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

Hey @aniketpati1121! Thank you for taking on the issue, the scope for that issue was more along the lines of removing the need of the kfp dependency within the dsl.executor. In turn, trying to isolate the executor. I may end up closing that issue for a more refined one.

@@ -0,0 +1,3 @@
import kfp

Copy link
Collaborator

Choose a reason for hiding this comment

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

I believe this file can be removed.

from typing import (Any, cast, Dict, get_type_hints, List, Mapping,
MutableMapping, MutableSequence, Sequence, Type, TypeVar,
Union)
from typing import Any, cast, Dict, get_type_hints, List, Mapping, MutableMapping, MutableSequence, Sequence, Type, TypeVar, Union
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think the linter might not like this change.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sdk/python/kfp/dsl/structures.py
chore(sdk): cleanup imports in component_factory

  • Grouped stdlib, third-party, and local imports
  • Converted long imports to parentheses for readability
  • Removed unused import kfp

import textwrap
from typing import (Any, Callable, Dict, List, Mapping, Optional, Tuple, Type,
Union)
from typing import Any, Callable, Dict, List, Mapping, Optional, Tuple, Type, Union
Copy link
Collaborator

Choose a reason for hiding this comment

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

Linter might not like.

import typing
from typing import (Any, DefaultDict, Dict, List, Mapping, Optional, Tuple,
Union)
from typing import Any, DefaultDict, Dict, List, Mapping, Optional, Tuple, Union
Copy link
Collaborator

Choose a reason for hiding this comment

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

Linter might not like

Comment on lines 98 to 100
@click.version_option(version=kfp.__version__, message='%(prog)s %(version)s')
@click.version_option(version=_version.__version__, message='%(prog)s %(version)s')
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't think this change is needed.

Comment on lines -22 to +23
__version__ = 'dev'
__version__ = "0.0.0+dev"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Not sure if this is needed.

@google-oss-prow google-oss-prow bot added size/L and removed size/M labels Sep 17, 2025
@aniketpati1121 aniketpati1121 force-pushed the remove-kfp-dependency-executor branch from 3667cdc to 095de4e Compare September 17, 2025 05:31
@aniketpati1121 aniketpati1121 force-pushed the remove-kfp-dependency-executor branch from 095de4e to b202677 Compare September 17, 2025 05:45
@aniketpati1121
Copy link
Contributor Author

Hi @zazulam,

Thanks for the feedback!

The test file (test_kfp_version.py) was only used for local testing and is now removed.
Duplicate imports and unused code were cleaned up for linter safety.
Let me know if you have any further suggestions for improvements.
Thanks again for your time and guidance!

@aniketpati1121 aniketpati1121 deleted the remove-kfp-dependency-executor branch September 30, 2025 19:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[feature] Removal of KFP dependency in the Executor

2 participants