Commit 97bd623
[CLOUDP-352109] Run MCK E2E tests against OCI published helm chart (#509)
# Summary
As part of our work to move towards OCI compatible container registries
for our helm chart, we are also planning to run our E2E tests against
the helm chart that we publish to OCI. This will make sure that we are
testing in our E2E what we are providing to our customers.
As part of this effort we have already [raised a
PR](#507) that starts
publishing our helm chart to the OCI container registry during
dev/staging workflows.
This PR goes and changes our E2E tests to start consuming the helm chart
from OCI registry instead of the local helm chart repo.
Additional unrelated change is to fix `kubectl-mongodb` location that is
used for gke code snippets. The fix is to add missing `workdir` path
suffix.
## Proof of Work
Successful CI on this PR.
I also ran the test `e2e_replica_set_migration` locally and it was
successful. The logs are
[here](https://gist.github.com/viveksinghggits/1b6403ffd43d53759a1714aa9cf04f30).
`publish_helm_chart` example output:
```
[2025/11/05 22:11:19.857] Running command 'subprocess.exec' in function 'publish_helm_chart' (step 7 of 7).
[2025/11/05 22:11:19.919] INFO 2025-11-05 21:11:19,919 [publish_helm_chart] Packaging chart: mongodb-kubernetes with Version: 0.0.0+690bbc0f836fbf0007154375
[2025/11/05 22:11:19.959] INFO 2025-11-05 21:11:19,959 [publish_helm_chart] Successfully executed: helm package --version 0.0.0+690bbc0f836fbf0007154375 helm_chart
[2025/11/05 22:11:19.959] INFO 2025-11-05 21:11:19,959 [publish_helm_chart] Successfully packaged chart and saved it to: /data/mci/55da5d1be5488b41a9ec4e7d02041a86/src/github.com/mongodb/mongodb-kubernetes/mongodb-kubernetes-0.0.0+690bbc0f836fbf0007154375.tgz
[2025/11/05 22:11:19.959] INFO 2025-11-05 21:11:19,959 [publish_helm_chart] Determined OCI Registry: oci://268558157000.dkr.ecr.us-east-1.amazonaws.com/dev/mongodb/helm-charts
[2025/11/05 22:11:19.959] INFO 2025-11-05 21:11:19,959 [publish_helm_chart] Pushing chart to registry: oci://268558157000.dkr.ecr.us-east-1.amazonaws.com/dev/mongodb/helm-charts
[2025/11/05 22:11:20.848] INFO 2025-11-05 21:11:20,848 [publish_helm_chart] Successfully executed: helm push mongodb-kubernetes-0.0.0+690bbc0f836fbf0007154375.tgz oci://268558157000.dkr.ecr.us-east-1.amazonaws.com/dev/mongodb/helm-charts
[2025/11/05 22:11:20.848] INFO 2025-11-05 21:11:20,848 [publish_helm_chart] Helm Chart mongodb-kubernetes:0.0.0+690bbc0f836fbf0007154375 was published successfully!
[2025/11/05 22:11:20.858] Finished command 'subprocess.exec' in function 'publish_helm_chart' (step 7 of 7) in 1.001053371s.
```
Downloading the chart with `helm pull
oci://268558157000.dkr.ecr.us-east-1.amazonaws.com/dev/mongodb/helm-charts/mongodb-kubernetes
--untar --version 0.0.0+690bbc0f836fbf0007154375` you can see that the
`Chart.yaml` version was properly updated:
```yaml
apiVersion: v2
description: 'MongoDB Controllers for Kubernetes translate the human knowledge of
creating a MongoDB instance into a scalable, repeatable, and standardized method. '
home: https://github.com/mongodb/mongodb-kubernetes
icon: https://mongodb-images-new.s3.eu-west-1.amazonaws.com/leaf-green-dark.png
keywords:
- mongodb
- database
- nosql
kubeVersion: '>=1.16-0'
maintainers:
- email: [email protected]
name: MongoDB
name: mongodb-kubernetes
type: application
version: 0.0.0+690bbc0f836fbf0007154375
```
Also [run
release](https://evergreen.mongodb.com/version/690cf486c59aec0007dd2ba4?redirect_spruce_users=true)
test and e2e smoke tests are also passing (ignore `ibm_power`, they are
fixed in #573)
## Checklist
- [x] Have you linked a jira ticket and/or is the ticket in the title?
- [x] Have you checked whether your jira ticket required DOCSP changes?
- [x] 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 details
---------
Co-authored-by: Maciej Karaś <[email protected]>1 parent 102501c commit 97bd623
File tree
19 files changed
+291
-81
lines changed- docker/mongodb-kubernetes-tests
- kubetester
- tests
- scripts
- dev/contexts
- evergreen
- deployments/test-app
- templates
- e2e
- release
- build
- tests
19 files changed
+291
-81
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
| 217 | + | |
| 218 | + | |
217 | 219 | | |
218 | 220 | | |
219 | 221 | | |
| |||
228 | 230 | | |
229 | 231 | | |
230 | 232 | | |
| 233 | + | |
| 234 | + | |
231 | 235 | | |
232 | 236 | | |
233 | 237 | | |
| |||
245 | 249 | | |
246 | 250 | | |
247 | 251 | | |
| 252 | + | |
| 253 | + | |
248 | 254 | | |
249 | 255 | | |
250 | 256 | | |
| |||
258 | 264 | | |
259 | 265 | | |
260 | 266 | | |
| 267 | + | |
| 268 | + | |
261 | 269 | | |
262 | 270 | | |
263 | 271 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
40 | 42 | | |
41 | 43 | | |
42 | 44 | | |
| |||
54 | 56 | | |
55 | 57 | | |
56 | 58 | | |
| 59 | + | |
| 60 | + | |
57 | 61 | | |
58 | 62 | | |
59 | 63 | | |
| |||
67 | 71 | | |
68 | 72 | | |
69 | 73 | | |
| 74 | + | |
| 75 | + | |
70 | 76 | | |
71 | 77 | | |
72 | 78 | | |
| |||
138 | 144 | | |
139 | 145 | | |
140 | 146 | | |
| 147 | + | |
| 148 | + | |
141 | 149 | | |
142 | 150 | | |
143 | 151 | | |
| |||
155 | 163 | | |
156 | 164 | | |
157 | 165 | | |
| 166 | + | |
| 167 | + | |
158 | 168 | | |
159 | 169 | | |
160 | 170 | | |
| |||
173 | 183 | | |
174 | 184 | | |
175 | 185 | | |
| 186 | + | |
| 187 | + | |
176 | 188 | | |
177 | 189 | | |
178 | 190 | | |
| |||
1305 | 1317 | | |
1306 | 1318 | | |
1307 | 1319 | | |
| 1320 | + | |
| 1321 | + | |
1308 | 1322 | | |
1309 | 1323 | | |
1310 | 1324 | | |
| |||
1442 | 1456 | | |
1443 | 1457 | | |
1444 | 1458 | | |
| 1459 | + | |
| 1460 | + | |
1445 | 1461 | | |
1446 | 1462 | | |
1447 | 1463 | | |
| |||
1461 | 1477 | | |
1462 | 1478 | | |
1463 | 1479 | | |
| 1480 | + | |
| 1481 | + | |
1464 | 1482 | | |
1465 | 1483 | | |
1466 | 1484 | | |
| |||
1483 | 1501 | | |
1484 | 1502 | | |
1485 | 1503 | | |
| 1504 | + | |
| 1505 | + | |
1486 | 1506 | | |
1487 | 1507 | | |
1488 | 1508 | | |
| |||
1503 | 1523 | | |
1504 | 1524 | | |
1505 | 1525 | | |
| 1526 | + | |
| 1527 | + | |
1506 | 1528 | | |
1507 | 1529 | | |
1508 | 1530 | | |
| |||
1521 | 1543 | | |
1522 | 1544 | | |
1523 | 1545 | | |
| 1546 | + | |
| 1547 | + | |
1524 | 1548 | | |
1525 | 1549 | | |
1526 | 1550 | | |
| |||
1537 | 1561 | | |
1538 | 1562 | | |
1539 | 1563 | | |
| 1564 | + | |
| 1565 | + | |
1540 | 1566 | | |
1541 | 1567 | | |
1542 | 1568 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
453 | 453 | | |
454 | 454 | | |
455 | 455 | | |
| 456 | + | |
456 | 457 | | |
457 | 458 | | |
458 | 459 | | |
459 | 460 | | |
460 | 461 | | |
461 | 462 | | |
| 463 | + | |
462 | 464 | | |
463 | 465 | | |
464 | 466 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
20 | 25 | | |
21 | 26 | | |
22 | 27 | | |
| |||
75 | 80 | | |
76 | 81 | | |
77 | 82 | | |
78 | | - | |
79 | | - | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
80 | 86 | | |
81 | 87 | | |
82 | 88 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | 2 | | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
10 | 15 | | |
11 | 16 | | |
12 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
13 | 22 | | |
14 | 23 | | |
15 | 24 | | |
| |||
25 | 34 | | |
26 | 35 | | |
27 | 36 | | |
28 | | - | |
| 37 | + | |
29 | 38 | | |
30 | 39 | | |
31 | 40 | | |
| |||
145 | 154 | | |
146 | 155 | | |
147 | 156 | | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
148 | 206 | | |
149 | 207 | | |
150 | 208 | | |
| |||
162 | 220 | | |
163 | 221 | | |
164 | 222 | | |
165 | | - | |
| 223 | + | |
166 | 224 | | |
167 | 225 | | |
168 | 226 | | |
| |||
183 | 241 | | |
184 | 242 | | |
185 | 243 | | |
186 | | - | |
187 | | - | |
| 244 | + | |
| 245 | + | |
188 | 246 | | |
189 | 247 | | |
190 | | - | |
| 248 | + | |
191 | 249 | | |
192 | 250 | | |
193 | 251 | | |
| |||
230 | 288 | | |
231 | 289 | | |
232 | 290 | | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
0 commit comments