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

Fix kfp workflows which were created with a bad template #672

Merged
merged 10 commits into from
Oct 7, 2024
Merged

Conversation

daw3rd
Copy link
Member

@daw3rd daw3rd commented Oct 4, 2024

Summary of changes

  1. Check for existence of kfp_ray/Makefile instead of just the kfp_ray directory so that individual transforms can use the same mechanism to disable kfp pipeline tests on their transform (i.e., renaming the Makefile).
  2. fix typo from .make.workflow to .make.workflows
  3. Remove test of kfp_support_lib in transform kfp pipeline test workflows/actions.
  4. Disable a few transform kfp pipeline tests due to failures by renaming their kfp_ray/Makefile. Note that I suspect these have always been failing. We see them now since, for the first time, we are testing all transform kfp pipelines. I will be creating issues after this PR is merged.
    • code/repo_level_ordering
    • code/license_select
    • language/text_encoder
  5. Fix what seems like a real bug in repo_level_ordering transform with a float value set with a string value in the wf.py

Why are these changes needed?

To enable kfp tests across all transforms (likely for the first time).

Related issue number (if any).

@daw3rd daw3rd requested a review from revit13 October 5, 2024 12:14
@@ -9,7 +9,7 @@ define set_env_var
endef


KFP_ENDPOINT ?= "http://localhost:8080/"
KFP_ENDPOINT?="http://localhost:8080/"
Copy link
Member Author

Choose a reason for hiding this comment

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

this change is only to trigger the transform kfp tests.

# repo_level_order parameters
repo_lvl_stage_one_only: bool = False,
repo_lvl_grouping_column: str = "repo_name",
repo_lvl_store_type: str = "ray",
repo_lvl_store_backend_dir: str = "",
repo_lvl_store_ray_cpus: float = "0.5",
repo_lvl_store_ray_cpus: float = 0.5,
Copy link
Member Author

Choose a reason for hiding this comment

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

Most of the other changes here were pre-commit cleanups, but this one seems like a real bug fix.

Copy link
Member

@roytman roytman Oct 5, 2024

Choose a reason for hiding this comment

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

yes, it was and it's fixed in #619

timeout-minutes: 120
run: |
if [ -e "@TARGET_TRANSFORM_DIR/Makefile" -a -d "@TARGET_TRANSFORM_DIR/kfp_ray" ]; then
if [ -e "transforms/code/code2parquet/Makefile" -a -e "transforms/code/code2parquet/kfp_ray/Makefile" ]; then
Copy link
Member

Choose a reason for hiding this comment

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

can we combine the lines 62-86 in a shared Make rule, which will be the same for all transformers, and just change its arguments?

Copy link
Member Author

Choose a reason for hiding this comment

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

100% agree with this, but can I put that on @revit13 for another PR.

@revit13
Copy link
Collaborator

revit13 commented Oct 6, 2024

@daw3rd according to https://github.com/IBM/data-prep-kit/actions/runs/11193934073/job/31119824449 it seems header_cleanser should be added to the kfp black list.

@daw3rd daw3rd merged commit 87bff17 into dev Oct 7, 2024
39 checks passed
@daw3rd daw3rd deleted the cicd-opt2 branch October 14, 2024 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants