Skip to content

Commit

Permalink
lite version of the functional test for quick testing (flyteorg#70)
Browse files Browse the repository at this point in the history
* It will add a lite version of the functional test for quick testing

Large functional test good for end 2 end test of releases, but for quick regression test we don't need to validate all workflows, Few workflows will work fine

Signed-off-by: Yuvraj <[email protected]>
  • Loading branch information
yindia authored Sep 12, 2022
1 parent 1603bd3 commit f49e451
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions boilerplate-repo/boilerplate/flyte/end2end/run-tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@
# inputs. This is so we can progressively cover all priorities in the original flytesnacks manifest,
# starting with "core".
FLYTESNACKS_WORKFLOW_GROUPS: Mapping[str, List[Tuple[str, dict]]] = {
"lite": [
("core.flyte_basics.hello_world.my_wf", {}),
("core.flyte_basics.lp.go_greet", {"day_of_week": "5", "number": 3, "am": True}),
],
"core": [
("core.control_flow.chain_entities.chain_workflows_wf", {}),
("core.control_flow.dynamics.wf", {"s1": "Pear", "s2": "Earth"}),
Expand Down Expand Up @@ -190,10 +194,11 @@ def run(
f"{flytesnacks_release_tag}/cookbook/flyte_tests_manifest.json"
r = requests.get(manifest_url)
parsed_manifest = r.json()
workflow_groups = []
workflow_groups = ["lite"] if "lite" in priorities else [
group["name"] for group in parsed_manifest if group["priority"] in priorities
]

workflow_groups = [
group["name"] for group in parsed_manifest if group["priority"] in priorities
]
results = []
valid_workgroups = []
for workflow_group in workflow_groups:
Expand Down

0 comments on commit f49e451

Please sign in to comment.