-
Notifications
You must be signed in to change notification settings - Fork 812
Remove end2end.yml #5034
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
Merged
Merged
Remove end2end.yml #5034
Changes from 9 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
29eb7a0
Use flytectl demo to run integration tests
pingsutw 679fbc7
test
pingsutw 2cffdbe
test
pingsutw e3f1602
test
pingsutw f4263ca
Merge branch 'master' of github.com:flyteorg/flyte into flytectl-demo
pingsutw 2187b0e
test
pingsutw 785ff3e
test
pingsutw e260f00
on push
pingsutw c659e43
run after build-and-push-sandbox-bundled-image
pingsutw 346fac1
Merge branch 'master' into flytectl-demo
pingsutw faf8fc8
test
pingsutw 80bba95
test
pingsutw 19b1b49
test
pingsutw 6679fc7
Merge branch 'master' of github.com:flyteorg/flyte into flytectl-demo
pingsutw 74764a8
merged master
pingsutw 83eecb5
remove end2end.yml
pingsutw 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -22,10 +22,12 @@ def execute_workflow( | |
| workflow_name, | ||
| inputs, | ||
| cluster_pool_name: Optional[str] = None, | ||
| wait: bool = False, | ||
| ): | ||
| print(f"Fetching workflow={workflow_name} and version={version}") | ||
| wf = remote.fetch_workflow(name=workflow_name, version=version) | ||
| return remote.execute(wf, inputs=inputs, wait=False, cluster_pool=cluster_pool_name) | ||
| print(f"Executing workflow={workflow_name} and version={version}") | ||
| return remote.execute(wf, inputs=inputs, wait=wait, cluster_pool=cluster_pool_name) | ||
|
|
||
|
|
||
| def executions_finished( | ||
|
|
@@ -64,6 +66,7 @@ def schedule_workflow_groups( | |
| terminate_workflow_on_failure: bool, | ||
| parsed_manifest: List[dict], | ||
| cluster_pool_name: Optional[str] = None, | ||
| parallel: bool = True, | ||
| ) -> Dict[str, bool]: | ||
| """ | ||
| Schedule workflows executions for all workflow groups and return True if all executions succeed, otherwise | ||
|
|
@@ -81,7 +84,7 @@ def schedule_workflow_groups( | |
| if not workflows: | ||
| continue | ||
| executions_by_wfgroup[wf_group] = [ | ||
| execute_workflow(remote, tag, workflow[0], workflow[1], cluster_pool_name) | ||
| execute_workflow(remote, tag, workflow[0], workflow[1], cluster_pool_name, not parallel) | ||
| for workflow in workflows | ||
| ] | ||
|
|
||
|
|
@@ -137,6 +140,7 @@ def run( | |
| test_project_name: str, | ||
| test_project_domain: str, | ||
| cluster_pool_name: Optional[str] = None, | ||
| parallel: bool = True, | ||
| ) -> List[Dict[str, str]]: | ||
| remote = FlyteRemote( | ||
| Config.auto(config_file=config_file_path), | ||
|
|
@@ -184,6 +188,7 @@ def run( | |
| terminate_workflow_on_failure, | ||
| parsed_manifest, | ||
| cluster_pool_name, | ||
| parallel | ||
| ) | ||
|
|
||
| for workflow_group, succeeded in results_by_wfgroup.items(): | ||
|
|
@@ -243,6 +248,12 @@ def run( | |
| is_flag=False, | ||
| help="Name of domain in project to run functional tests on", | ||
| ) | ||
| @click.option( | ||
| "--parallel", | ||
| is_flag=True, | ||
| default=False, | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Run flytesnacks workflow serially by default in the CI due to disk pressure in the sandbox. |
||
| help="Run tests in parallel if set to True", | ||
| ) | ||
| @click.argument( | ||
| "cluster_pool_name", | ||
| required=False, | ||
|
|
@@ -257,6 +268,7 @@ def cli( | |
| terminate_workflow_on_failure, | ||
| test_project_name, | ||
| test_project_domain, | ||
| parallel, | ||
| cluster_pool_name, | ||
| ): | ||
| print(f"return_non_zero_on_failure={return_non_zero_on_failure}") | ||
|
|
@@ -268,6 +280,7 @@ def cli( | |
| test_project_name, | ||
| test_project_domain, | ||
| cluster_pool_name, | ||
| parallel | ||
| ) | ||
|
|
||
| # Write a json object in its own line describing the result of this run to stdout | ||
|
|
||
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.
Uh oh!
There was an error while loading. Please reload this page.