-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
test: Migrate miscellaneous SDK tests to GHA Workflow #11032
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: KFP Component YAML Test | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
|
||
pull_request: | ||
paths: | ||
- 'components/**/*.yaml' | ||
- 'test/presubmit-component-yaml.sh' | ||
- 'sdk/python/**' | ||
- 'api/v2alpha1/**' | ||
- '.github/workflows/sdk-component-yaml.yml' | ||
|
||
jobs: | ||
test-component-yaml-kfp: | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.8 | ||
|
||
- name: apt-get update | ||
run: sudo apt-get update | ||
|
||
- name: Install protobuf-compiler | ||
run: sudo apt-get install protobuf-compiler -y | ||
|
||
- name: Install setuptools | ||
run: | | ||
pip3 install setuptools | ||
pip3 freeze | ||
|
||
- name: Install Wheel | ||
run: pip3 install wheel==0.42.0 | ||
|
||
- name: Install protobuf | ||
run: pip3 install protobuf==4.25.3 | ||
|
||
- name: Generate API proto files | ||
working-directory: ./api | ||
run: make clean python | ||
|
||
- name: Install kfp-pipeline-spec from source | ||
run: | | ||
python3 -m pip install api/v2alpha1/python | ||
|
||
- name: Install requirements | ||
run: pip install -r ./test/sdk-execution-tests/requirements.txt | ||
|
||
- name: Run component YAML tests | ||
run: ./test/presubmit-component-yaml.sh | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: KFP SDK Docformatter Test | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
|
||
pull_request: | ||
paths: | ||
- 'sdk/python/**' | ||
- 'test/presubmit-docformatter-sdk.sh' | ||
- '.github/workflows/sdk-docformatter.yml' | ||
|
||
jobs: | ||
test-docformatter-kfp-sdk: | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.8 | ||
|
||
- name: Run docformatter tests | ||
run: ./test/presubmit-docformatter-sdk.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: KFP SDK Isort Test | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
|
||
pull_request: | ||
paths: | ||
- 'sdk/python/**' | ||
- 'test/presubmit-isort-sdk.sh' | ||
- '.github/workflows/sdk-isort.yml' | ||
|
||
jobs: | ||
test-isort-kfp-sdk: | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.8 | ||
|
||
- name: Run isort tests | ||
run: ./test/presubmit-isort-sdk.sh |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm confused. You removed
kubeflow-pipelines-sdk-yapf
in https://github.com/GoogleCloudPlatform/oss-test-infra/pull/2327/files#diff-30095b445aa0ad17f1bc23514587283b5ad03959f815fb48e42bdeee2b39c066L186-L196, but in this PR you're adding a test for./test/presubmit-component-yaml.sh
.Was that a mistake?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't get your question. Looks like the
./test/presubmit-component-yaml.sh
runs a file: https://github.com/kubeflow/pipelines/blob/master/test/presubmit-component-yaml.sh#L27that loads training and testing data: https://github.com/kubeflow/pipelines/blob/master/components/test_load_all_components.sh
Is this not required? If not we could take the GHA out.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let me clarify...
We have these two tests in Prow:
In this PR, you've added kubeflow-pipelines-component-yaml, but you're not removing it from Prow. Instead, you're removing kubeflow-pipelines-sdk-yapf, which you're not adding in this PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops! My bad, deleted the yapf one by mistake instead of the component yaml. Updated now: https://github.com/GoogleCloudPlatform/oss-test-infra/pull/2327/files#diff-30095b445aa0ad17f1bc23514587283b5ad03959f815fb48e42bdeee2b39c066L122
Great catch!