forked from opendatahub-io/data-science-pipelines
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(sdk): Sdk ParallelFor task spec inline (kubeflow#633)
* TODO1: PipelineLoop inlined including nested loops and added tests. * Supported recursive and parallel tasks inlining. For recursive tasks, we simply skip them. For Parallel tasks, relevant tests were added. * Run all tests against inlined taskSpec and normal taskRefs * Added CLI Flag disable/enable spec inlining.
- Loading branch information
1 parent
2fc23fa
commit 64d4324
Showing
72 changed files
with
8,637 additions
and
58 deletions.
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
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
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
62 changes: 62 additions & 0 deletions
62
sdk/python/tests/compiler/testdata/affinity_noninlined.yaml
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,62 @@ | ||
# 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. | ||
|
||
apiVersion: tekton.dev/v1beta1 | ||
kind: PipelineRun | ||
metadata: | ||
annotations: | ||
pipelines.kubeflow.org/pipeline_spec: '{"description": "A pipeline with affinity", | ||
"name": "affinity"}' | ||
sidecar.istio.io/inject: 'false' | ||
tekton.dev/artifact_bucket: mlpipeline | ||
tekton.dev/artifact_endpoint: minio-service.kubeflow:9000 | ||
tekton.dev/artifact_endpoint_scheme: http:// | ||
tekton.dev/artifact_items: '{"echo": []}' | ||
tekton.dev/input_artifacts: '{}' | ||
tekton.dev/output_artifacts: '{}' | ||
name: affinity | ||
spec: | ||
pipelineSpec: | ||
tasks: | ||
- name: echo | ||
taskSpec: | ||
metadata: | ||
annotations: | ||
tekton.dev/template: '' | ||
labels: | ||
pipelines.kubeflow.org/cache_enabled: 'true' | ||
pipelines.kubeflow.org/generation: '' | ||
pipelines.kubeflow.org/pipelinename: '' | ||
steps: | ||
- args: | ||
- echo "Got scheduled" | ||
command: | ||
- sh | ||
- -c | ||
image: busybox | ||
name: main | ||
timeout: 0s | ||
taskRunSpecs: | ||
- pipelineTaskName: echo | ||
taskPodTemplate: | ||
affinity: | ||
nodeAffinity: | ||
requiredDuringSchedulingIgnoredDuringExecution: | ||
nodeSelectorTerms: | ||
- matchExpressions: | ||
- key: kubernetes.io/os | ||
operator: In | ||
values: | ||
- linux | ||
timeout: 0s |
Oops, something went wrong.