Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: test: Re-enable KFP Dockerfile-CLI component SDK unit test #11305

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

DharmitD
Copy link
Contributor

@DharmitD DharmitD commented Oct 17, 2024

Removed the skip unit test decorator that was previously added to bypass the test due to failure (referencing issue #11038).

The issue reported in #11038 was caused due to the Dockerfile referencing to Python 3.7. With the Python version updated to 3.9 (done as part of this commit), the test now passes consistently. This commit re-enables the test to ensure proper validation of Dockerfile creation and KFP package.

Description of your changes:

Checklist:

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 connor-mccarthy 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

@DharmitD DharmitD changed the title Re-enable test_dockerfile_can_contain_custom_kfp_package SDK unit test test: Re-enable test_dockerfile_can_contain_custom_kfp_package SDK unit test Oct 17, 2024
@DharmitD DharmitD changed the title test: Re-enable test_dockerfile_can_contain_custom_kfp_package SDK unit test test: Re-enable KFP Dockerfile-CLI component SDK unit test Oct 17, 2024
@DharmitD DharmitD changed the title test: Re-enable KFP Dockerfile-CLI component SDK unit test WIP: test: Re-enable KFP Dockerfile-CLI component SDK unit test Oct 17, 2024
@@ -608,7 +605,7 @@ def test_dockerfile_can_contain_custom_kfp_package(self):
file_start = textwrap.dedent('''\
# Generated by KFP.

FROM python:3.9
FROM python:3.12
Copy link
Collaborator

Choose a reason for hiding this comment

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

based on your comment, it seems like it works for 3.9, if so maybe it's best if we keep this consistent with the rest of the tests and use 3.9

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Unfortunately it doesn't. I'd executed a subprocess previously in my virtual environment and then ran this test which is why it went through.

I replicated this on a fresh venv and the missing wheel file error still comes up.

Removed the skip unit test decorator that was previously added to bypass the test due to failure (referencing issue kubeflow#11038).

The issue reported in kubeflow#11038 was caused due to the Dockerfile referencing to Python 3.7. With the Python version updated to 3.9, the test now passes consistently.
This commit re-enables the test to ensure proper validation of Dockerfile creation and KFP package.

Signed-off-by: ddalvi <ddalvi@redhat.com>
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.

2 participants