-
Notifications
You must be signed in to change notification settings - Fork 123
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
Load performance test pipelines from files #796
Merged
google-oss-prow
merged 1 commit into
kubeflow:master
from
ckadner:load_pipelines_from_files_for_performance_test
Dec 1, 2021
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
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,39 @@ | ||
# Copyright 2021 kubeflow.org | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
# pipelines to be loaded in performance_test.py | ||
# relative paths are assumed to be relative to the project root | ||
pipeline_scripts: | ||
# - name: "Sequential" | ||
# path: "sdk/python/tests/compiler/testdata/sequential.py" | ||
# - name: "Flip-Coin-testdata" | ||
# path: "sdk/python/tests/compiler/testdata/condition.py" | ||
# - name: "Retry" | ||
# path: "sdk/python/tests/compiler/testdata/retry.py" | ||
# - name: "Loop-Static" | ||
# path: "sdk/python/tests/compiler/testdata/loop_static.py" | ||
# - name: "Conditions-and-Loops" | ||
# path: "sdk/python/tests/compiler/testdata/conditions_and_loops.py" | ||
# - name: "With-item-Nested" | ||
# path: "sdk/python/tests/compiler/testdata/withitem_nested.py" | ||
# - name: "Condition-and-recur" | ||
# path: "sdk/python/tests/compiler/testdata/cond_recur.py" | ||
- name: "Flip-Coin-samples" | ||
path: "samples/flip-coin/condition.py" # condition with simple python | ||
ckadner marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- name: "Flip-Coin-Custom-Task" | ||
path: "samples/flip-coin-custom-task/condition.py" # custom task condition with simple python | ||
- path: "samples/lightweight-component/calc_pipeline.py" # python in script with package install | ||
- path: "samples/trusted-ai/trusted-ai.py" # long-running python component with S3 file passing | ||
- path: "samples/nested-loops/withitem_nested.py" # nested loop pipelines, many CRDs | ||
# - path: "sdk/python/tests/compiler/testdata/cond_recur.yaml" # never finishes, calling itself 42 times recursively, controller cannot estimate duration |
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.
Since Python caches previsously loaded modules, this change was required to allow using the
compile_pyfile()
method multiple times within the same Python process and enable loading different pipeline scripts from files with the same ("module") name, i.e. we have multiplecondition.py
samples.Without this change, we would get these errors:
See: https://stackoverflow.com/questions/32234156/how-to-unimport-a-python-module-which-is-already-imported/57891909#57891909