Skip to content
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

[patch] Adjustments to Mobile FVT Pipeline #1137

Merged
merged 5 commits into from
Jul 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions tekton/src/pipelines/fvt-mobile.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ spec:
# -------------------------------------------------------------------------

{{ lookup('template', 'taskdefs/fvt-mobile/phase1-setup.yml.j2') | indent(4) }}
{{ lookup('template', 'taskdefs/fvt-mobile/phase1.4-pytest.yml.j2') | indent(4) }}
{{ lookup('template', 'taskdefs/fvt-mobile/phase1.5-selenium-civil.yml.j2') | indent(4) }}
{{ lookup('template', 'taskdefs/fvt-mobile/phase2-android-part1.yml.j2') | indent(4) }}
{{ lookup('template', 'taskdefs/fvt-mobile/phase3-android-part2.yml.j2') | indent(4) }}
Expand Down
30 changes: 0 additions & 30 deletions tekton/src/pipelines/taskdefs/fvt-mobile/phase1-setup.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -30,33 +30,3 @@
- input: "$(params.fvt_digest_mobile_pytest)"
operator: notin
values: [""]

- name: fvt-mobile-test-sr
taskRef:
kind: Task
name: mas-fvt-mobile-pytest
workspaces:
- name: configs
workspace: shared-configs
params:
- name: fvt_image_registry
value: $(params.fvt_image_registry)
- name: fvt_image_digest
value: $(params.fvt_digest_mobile_pytest)
- name: fvt_test_suite
value: sr_api
- name: mas_instance_id
value: $(params.mas_instance_id)
- name: mas_workspace_id
value: $(params.mas_workspace_id)
- name: product_channel
value: $(params.mas_app_channel_manage)
when:
- input: "$(params.mas_app_channel_manage)"
operator: notin
values: [""]
- input: "$(params.fvt_digest_mobile_pytest)"
operator: notin
values: [""]
runAfter:
- fvt-mobile-setup-data
89 changes: 89 additions & 0 deletions tekton/src/pipelines/taskdefs/fvt-mobile/phase1.4-pytest.yml.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
- name: fvt-mobile-test-sr
taskRef:
kind: Task
name: mas-fvt-mobile-pytest
workspaces:
- name: configs
workspace: shared-configs
params:
- name: fvt_image_registry
value: $(params.fvt_image_registry)
- name: fvt_image_digest
value: $(params.fvt_digest_mobile_pytest)
- name: fvt_test_suite
value: mobile_api_sr
- name: mas_instance_id
value: $(params.mas_instance_id)
- name: mas_workspace_id
value: $(params.mas_workspace_id)
- name: product_channel
value: $(params.mas_app_channel_manage)
when:
- input: "$(params.mas_app_channel_manage)"
operator: notin
values: [""]
- input: "$(params.fvt_digest_mobile_pytest)"
operator: notin
values: [""]
runAfter:
- fvt-mobile-setup-data

- name: fvt-mobile-test-insp
taskRef:
kind: Task
name: mas-fvt-mobile-pytest
workspaces:
- name: configs
workspace: shared-configs
params:
- name: fvt_image_registry
value: $(params.fvt_image_registry)
- name: fvt_image_digest
value: $(params.fvt_digest_mobile_pytest)
- name: fvt_test_suite
value: mobile_api_insp
- name: mas_instance_id
value: $(params.mas_instance_id)
- name: mas_workspace_id
value: $(params.mas_workspace_id)
- name: product_channel
value: $(params.mas_app_channel_manage)
when:
- input: "$(params.mas_app_channel_manage)"
operator: notin
values: [""]
- input: "$(params.fvt_digest_mobile_pytest)"
operator: notin
values: [""]
runAfter:
- fvt-mobile-test-sr

- name: fvt-mobile-test-tech
taskRef:
kind: Task
name: mas-fvt-mobile-pytest
workspaces:
- name: configs
workspace: shared-configs
params:
- name: fvt_image_registry
value: $(params.fvt_image_registry)
- name: fvt_image_digest
value: $(params.fvt_digest_mobile_pytest)
- name: fvt_test_suite
value: mobile_api_tech
- name: mas_instance_id
value: $(params.mas_instance_id)
- name: mas_workspace_id
value: $(params.mas_workspace_id)
- name: product_channel
value: $(params.mas_app_channel_manage)
when:
- input: "$(params.mas_app_channel_manage)"
operator: notin
values: [""]
- input: "$(params.fvt_digest_mobile_pytest)"
operator: notin
values: [""]
runAfter:
- fvt-mobile-test-insp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
- name: fvt_test_suite
value: civil-bvt
runAfter:
- fvt-mobile-test-sr
- fvt-mobile-setup-data

## Minimum Verification Test for Mobile Defects MAS test suites
- name: fvt-civil-defects-mvt-android
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
- name: fvt_test_suite
value: mobfoundation-mvt-android
runAfter:
- fvt-mobile-test-sr

- fvt-mobile-setup-data
## Minimum Verification Test for Mobile Inspection MAS test suites
- name: fvt-inspections-mvt-android
{{ lookup('template', 'taskdefs/fvt-mobile/common/taskref.yml.j2') | indent(2) }}
Expand All @@ -24,8 +23,7 @@
- name: fvt_test_suite
value: inspections-mvt-android
runAfter:
- fvt-mobile-test-sr

- fvt-mobile-setup-data
## Minimum Verification Test for Mobile Asset Manager MAS test suites
- name: fvt-asset-manager-mvt-android
{{ lookup('template', 'taskdefs/fvt-mobile/common/taskref.yml.j2') | indent(2) }}
Expand All @@ -38,7 +36,7 @@
- name: fvt_test_suite
value: asset-manager-mvt-android
runAfter:
- fvt-mobile-test-sr
- fvt-mobile-setup-data

## Mobile FVT - Inventory Counting Android
- name: fvt-inventorycounting-mvt-android
Expand All @@ -52,4 +50,4 @@
- name: fvt_test_suite
value: inventory-counting-mvt-android # xml for Mobile IC
runAfter:
- fvt-mobile-test-sr
- fvt-mobile-setup-data