|
| 1 | +variables: |
| 2 | + - &setup_and_teardown_group_gke_code_snippets |
| 3 | + setup_task_can_fail_task: true |
| 4 | + setup_group: |
| 5 | + - func: clone |
| 6 | + - func: setup_gcloud_cli |
| 7 | + - func: setup_mongosh |
| 8 | + - func: download_kube_tools |
| 9 | + - func: build_multi_cluster_binary |
| 10 | + teardown_task: |
| 11 | + - func: upload_e2e_logs |
| 12 | + - func: upload_code_snippets_logs |
| 13 | + |
| 14 | + - &setup_and_teardown_group_kind_code_snippets |
| 15 | + setup_task_can_fail_task: true |
| 16 | + setup_group_can_fail_task: true |
| 17 | + setup_group: |
| 18 | + - func: clone |
| 19 | + - func: cleanup_exec_environment |
| 20 | + - func: download_kube_tools |
| 21 | + - func: configure_docker_auth |
| 22 | + - func: setup_kubernetes_environment |
| 23 | + - func: python_venv |
| 24 | + - func: setup_cloud_qa |
| 25 | + teardown_task: |
| 26 | + - func: upload_e2e_logs |
| 27 | + - func: upload_code_snippets_logs |
| 28 | + - func: teardown_kubernetes_environment |
| 29 | + - func: teardown_cloud_qa |
| 30 | + |
| 31 | +# This variable is copied over from .evergreen.yml because anchors don't work for included files |
| 32 | + - &base_om8_dependency |
| 33 | + depends_on: |
| 34 | + - name: build_om_images |
| 35 | + variant: build_om80_images |
| 36 | + - name: build_operator_ubi |
| 37 | + variant: init_test_run |
| 38 | + - name: build_init_database_image_ubi |
| 39 | + variant: init_test_run |
| 40 | + - name: build_database_image_ubi |
| 41 | + variant: init_test_run |
| 42 | + - name: build_test_image |
| 43 | + variant: init_test_run |
| 44 | + - name: build_init_appdb_images_ubi |
| 45 | + variant: init_test_run |
| 46 | + - name: build_init_om_images_ubi |
| 47 | + variant: init_test_run |
| 48 | + - name: build_agent_images_ubi |
| 49 | + variant: init_test_run |
| 50 | + |
| 51 | +tasks: |
| 52 | + # Code snippets tasks |
| 53 | + # Each scripts/code_snippets/tests/test_*.sh should have its task defined here. |
| 54 | + # TODO: it should be autogenerated |
| 55 | + # Each task executes test_code_snippets functon executes scripts/code_snippets/tests/${task_name} by task name convention |
| 56 | + - name: test_gke_multi_cluster_snippets.sh |
| 57 | + tags: [ "code_snippets" ] |
| 58 | + commands: |
| 59 | + - func: test_code_snippets |
| 60 | + - func: sample_commit_output |
| 61 | + |
| 62 | + - name: test_gke_multi_cluster_no_mesh_snippets.sh |
| 63 | + tags: [ "code_snippets" ] |
| 64 | + commands: |
| 65 | + - func: test_code_snippets |
| 66 | + - func: sample_commit_output |
| 67 | + |
| 68 | + - name: test_kind_search_community_snippets.sh |
| 69 | + tags: [ "code_snippets", "patch-run" ] |
| 70 | + commands: |
| 71 | + - func: test_code_snippets |
| 72 | + - func: sample_commit_output |
| 73 | + |
| 74 | + - name: test_kind_search_enterprise_snippets.sh |
| 75 | + tags: [ "code_snippets", "patch-run" ] |
| 76 | + commands: |
| 77 | + - func: test_code_snippets |
| 78 | + - func: sample_commit_output |
| 79 | + |
| 80 | +task_groups: |
| 81 | + - name: gke_code_snippets_task_group |
| 82 | + <<: *setup_and_teardown_group_gke_code_snippets |
| 83 | + max_hosts: -1 |
| 84 | + tasks: |
| 85 | + - test_gke_multi_cluster_snippets.sh |
| 86 | + - test_gke_multi_cluster_no_mesh_snippets.sh |
| 87 | + |
| 88 | + - name: kind_code_snippets_task_group |
| 89 | + <<: *setup_and_teardown_group_kind_code_snippets |
| 90 | + max_hosts: -1 |
| 91 | + tasks: |
| 92 | + - test_kind_search_community_snippets.sh |
| 93 | + - test_kind_search_enterprise_snippets.sh |
| 94 | + |
| 95 | +buildvariants: |
| 96 | + # These variants are used to test the code snippets and each one can be used in patches |
| 97 | + # Prerelease is especially used when the repo is tagged |
| 98 | + # More details in the TD: https://docs.google.com/document/d/1fuTxfRtP8QPtn7sKYxQM_AGcD6xycTZH8svngGxyKhc/edit?tab=t.0#bookmark=id.e8uva0393mbe |
| 99 | + - name: public_gke_code_snippets |
| 100 | + display_name: public_gke_code_snippets |
| 101 | + allowed_requesters: [ "patch" ] |
| 102 | + run_on: |
| 103 | + - ubuntu2204-small |
| 104 | + tasks: |
| 105 | + - name: gke_code_snippets_task_group |
| 106 | + |
| 107 | + - name: prerelease_gke_code_snippets |
| 108 | + display_name: prerelease_gke_code_snippets |
| 109 | + tags: [ "release" ] |
| 110 | + allowed_requesters: [ "patch", "github_tag" ] |
| 111 | + depends_on: |
| 112 | + - variant: release_images |
| 113 | + name: '*' |
| 114 | + patch_optional: true |
| 115 | + run_on: |
| 116 | + - ubuntu2204-small |
| 117 | + tasks: |
| 118 | + - name: gke_code_snippets_task_group |
| 119 | + |
| 120 | + - name: private_gke_code_snippets |
| 121 | + display_name: private_gke_code_snippets |
| 122 | + allowed_requesters: [ "patch" ] |
| 123 | + run_on: |
| 124 | + - ubuntu2204-small |
| 125 | + <<: *base_om8_dependency |
| 126 | + tasks: |
| 127 | + - name: gke_code_snippets_task_group |
| 128 | + |
| 129 | + - name: private_kind_code_snippets |
| 130 | + display_name: private_kind_code_snippets |
| 131 | + tags: [ "e2e_test_suite" ] |
| 132 | + allowed_requesters: [ "patch", "github_pr" ] |
| 133 | + run_on: |
| 134 | + - ubuntu2204-large |
| 135 | + <<: *base_om8_dependency |
| 136 | + tasks: |
| 137 | + - name: kind_code_snippets_task_group |
| 138 | + |
| 139 | + - name: prerelease_kind_code_snippets |
| 140 | + display_name: prerelease_kind_code_snippets |
| 141 | + allowed_requesters: [ "patch" ] |
| 142 | + run_on: |
| 143 | + - ubuntu2204-large |
| 144 | + tasks: |
| 145 | + - name: kind_code_snippets_task_group |
| 146 | + |
| 147 | + - name: public_kind_code_snippets |
| 148 | + display_name: public_kind_code_snippets |
| 149 | + allowed_requesters: [ "patch" ] |
| 150 | + run_on: |
| 151 | + - ubuntu2204-large |
| 152 | + tasks: |
| 153 | + - name: kind_code_snippets_task_group |
0 commit comments