Commit bdbd7f3
authored
CLOUDP-295785 - add evg aliases used for variants used in each build scenario (#420)
# Summary
This PR groups all evergreen variants in four categories:
- `pr_patch`: for patches created by GitHub PRs
- `staging`: for builds triggered when merging to master or release
branch
- `release`: for builds triggered on git tags
- `manual_patch`: for builds that are **only** triggered manually
(patch) or by PCT. Examples: `migrate_all_agents`, `e2e_operator_perf`
or `publish_om80_images`.
This configuration allows us to run all the associated tasks for each
scenario from evergreen command line. This is especially helpful when
making changes to `staging` or `release` variants and testing them using
Evergreen
command line patches. For example there is no other way to trigger tasks
that are run on merges to master other than
combining them together using aliases. The same applies for tasks being
run on git tags.
This change additionally fixes:
- release variants were missing some of the tasks, because of the evg
[bug](https://mongodb.slack.com/archives/C0V896UV8/p1757071183767219)
- added missing `prerelease_kind_code_snippets` to release task
- merges to master were missing `e2e_om_ops_manager_backup` (multiple
variants), `task_gke_multi_cluster_snippets` and
`task_gke_multi_cluster_no_mesh_snippets` due to wrong configuration of
`allowed_requesters: [ "patch", "github_pr" ]`
## Proof of Work
### Pull Request scenario
`pr_patch` triggered by evg cmd line:
[727](https://spruce.mongodb.com/version/68bf33356671b00007c237d0/tasks?sorts=STATUS%3AASC%3BBASE_STATUS%3ADESC)
tasks (two more, because `build_readiness_probe_image` and
`build_upgrade_hook_image` were previously missing)
```
evergreen patch -p mongodb-kubernetes -a pr_patch -d "Test PR patch" -f -y -u --browse --path .evergreen.yml
```
Example PR patch:
[725](https://spruce.mongodb.com/version/68baea296698b70007246fea/tasks?sorts=STATUS%3AASC%3BBASE_STATUS%3ADESC)
tasks
### Staging scenario
`staging` triggered by evg cmd line:
[753](https://spruce.mongodb.com/version/68bf37b692e52b0008acd87d/tasks?sorts=STATUS%3AASC%3BBASE_STATUS%3ADESC)
tasks (this is more because `e2e_om_ops_manager_backup` (multiple
variants), `task_gke_multi_cluster_snippets` and
`task_gke_multi_cluster_no_mesh_snippets` was missing by mistake in
regular merge to master and now it is fixed)
```
evergreen patch -p mongodb-kubernetes -a staging -d "Test staging" -f -y -u --browse --path .evergreen.yml
```
Example merge to master:
[746](https://spruce.mongodb.com/version/mongodb_kubernetes_6c65673d870adb76b898365051ed8b01667403a9/tasks?sorts=STATUS%3AASC%3BBASE_STATUS%3ADESC)
tasks
### Release scenario
`release` triggered by evg cmd line:
[17](https://spruce.mongodb.com/version/68bf387276bbd5000744f633/tasks?sorts=STATUS%3AASC%3BBASE_STATUS%3ADESC)
tasks (added missing `e2e_smoke`, `e2e_static_smoke` and `code_snippets`
tests)
```
evergreen patch -p mongodb-kubernetes -a release -d "Test release" -f -y -u --browse --path .evergreen.yml
```
Example git tag job:
[12](https://spruce.mongodb.com/version/mongodb_kubernetes_1.3.0_68baae22f7d2690007feb541/tasks?sorts=STATUS%3AASC%3BBASE_STATUS%3ADESC)
tasks
## Checklist
- [ ] Have you linked a jira ticket and/or is the ticket in the title?
- [ ] Have you checked whether your jira ticket required DOCSP changes?
- [ ] Have you added changelog file?
- use `skip-changelog` label if not needed
- refer to [Changelog files and Release
Notes](https://github.com/mongodb/mongodb-kubernetes/blob/master/CONTRIBUTING.md#changelog-files-and-release-notes)
section in CONTRIBUTING.md for more details1 parent aa1f57b commit bdbd7f3
File tree
5 files changed
+127
-101
lines changed- scripts/dev/contexts
5 files changed
+127
-101
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
154 | 180 | | |
155 | 181 | | |
156 | | - | |
| 182 | + | |
157 | 183 | | |
158 | 184 | | |
159 | 185 | | |
| |||
162 | 188 | | |
163 | 189 | | |
164 | 190 | | |
165 | | - | |
| 191 | + | |
166 | 192 | | |
167 | 193 | | |
168 | 194 | | |
| |||
176 | 202 | | |
177 | 203 | | |
178 | 204 | | |
179 | | - | |
| 205 | + | |
180 | 206 | | |
181 | 207 | | |
182 | 208 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
129 | | - | |
130 | 129 | | |
131 | 130 | | |
132 | 131 | | |
| 132 | + | |
133 | 133 | | |
134 | 134 | | |
135 | | - | |
| 135 | + | |
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
147 | 143 | | |
148 | | - | |
| 144 | + | |
149 | 145 | | |
150 | | - | |
| 146 | + | |
151 | 147 | | |
152 | 148 | | |
153 | 149 | | |
| 150 | + | |
154 | 151 | | |
155 | 152 | | |
156 | | - | |
| 153 | + | |
157 | 154 | | |
158 | 155 | | |
159 | 156 | | |
160 | 157 | | |
161 | 158 | | |
162 | 159 | | |
163 | | - | |
| 160 | + | |
164 | 161 | | |
165 | 162 | | |
166 | | - | |
| 163 | + | |
167 | 164 | | |
168 | 165 | | |
169 | 166 | | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
78 | 77 | | |
79 | 78 | | |
80 | 79 | | |
81 | 80 | | |
82 | 81 | | |
83 | 82 | | |
84 | | - | |
85 | 83 | | |
86 | 84 | | |
87 | 85 | | |
| |||
791 | 789 | | |
792 | 790 | | |
793 | 791 | | |
794 | | - | |
795 | 792 | | |
796 | 793 | | |
797 | 794 | | |
| |||
0 commit comments