Commit 749c1a3
authored
CLOUDP-295785 - staging support for image building (#336)
# Summary
PR integrates `staging` build scenario with `atomic_pipeline.py` and the
e2e tests. `staging` repositories are created in AWS ECR under
`/staging` dir. List of new `staging/` repositories:
<img width="2239" height="756" alt="Screenshot 2025-08-13 at 14 39 55"
src="https://github.com/user-attachments/assets/a23a500f-d0bd-4f39-9a74-72a2ca3ad6f6"
/>
Example AWS page with details:
<img width="1654" height="994" alt="Screenshot 2025-08-11 at 21 26 51"
src="https://github.com/user-attachments/assets/4e059aeb-fac3-4208-8cd0-a00692f7d673"
/>
Previously all of the evergreen patch builds were targeting
`268558157000.dkr.ecr.us-east-1.amazonaws.com/dev` repository. Now,
depending on the `BUILD_SCENARIO` environment variable images will be
pushed to and pulled from
different registry:
- PATCH_REGISTRY="268558157000.dkr.ecr.us-east-1.amazonaws.com/dev"
-
STAGING_REGISTRY="268558157000.dkr.ecr.us-east-1.amazonaws.com/staging"
- RELEASE_REGISTRY="quay.io/mongodb"
Additional changes:
- re-added missing `latest` tag for staging builds. This is used for
local testing
- moved all registry variables declarations to `root-context`.
Previously they were duplicated in both
`scripts/dev/contexts/evg-private-context` and
`scripts/dev/contexts/local-defaults-context`
- fixes multi arch smoke tests configuration. We can now run them also
for released images (tbd)
- started to use `OPERATOR_VERSION` instead of `VERSION_ID`.
`VERSION_ID` was only related to patch builds, which did not apply for
staging and release builds
- BASE_REPO_URL_SHARED is now
`268558157000.dkr.ecr.us-east-1.amazonaws.com/staging` because all
latest tags are pushed on master builds
- `build_scenario` now needs to be passed explicitly to `pipeline.py` as
well as `version` (apart from `agent` image)
## Proof of Work
Building all images is passing for staging scenario ->
https://spruce.mongodb.com/version/68c7ce53672666000716401a/tasks?page=0&sorts=STATUS%3AASC%3BBASE_STATUS%3ADESC
Building all images is passing for release scenario (apart from kubectl
which requires tag) ->
https://spruce.mongodb.com/version/68c911ef8d38f100074fa2db/tasks?sorts=STATUS%3AASC%3BBASE_STATUS%3ADESC
Example image stored together with signature ->
https://us-east-1.console.aws.amazon.com/ecr/repositories/private/268558157000/staging/mongodb-kubernetes-init-database?region=us-east-1
## Remaining work
- [ ] Add guide on how to run `development` scenario for building the
images using evergreen and directly `pipeline.py`
- [ ] Fix `dummy` version in the `release_info.json` - this is already
planned in
[here](https://docs.google.com/document/d/1eJ8iKsI0libbpcJakGjxcPfbrTn8lmcZDbQH1UqMR_g/edit?tab=t.p76ry15gwmkk#bookmark=id.egtg1p95d1)
## 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 6538475 commit 749c1a3
File tree
58 files changed
+502
-734
lines changed- docker/mongodb-kubernetes-tests/tests
- clusterwideoperator
- olm
- mongodb-community-operator
- scripts/dev
- test/e2e/setup
- scripts
- dev/contexts
- variables
- evergreen
- deployments/test-app
- templates
- e2e
- operator-sdk
- funcs
- release
- build
- tests
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
58 files changed
+502
-734
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
| 49 | + | |
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
| |||
509 | 510 | | |
510 | 511 | | |
511 | 512 | | |
512 | | - | |
513 | | - | |
514 | 513 | | |
515 | 514 | | |
516 | 515 | | |
517 | 516 | | |
518 | | - | |
| 517 | + | |
519 | 518 | | |
520 | | - | |
| 519 | + | |
521 | 520 | | |
522 | 521 | | |
523 | 522 | | |
524 | 523 | | |
525 | 524 | | |
526 | | - | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
527 | 528 | | |
528 | | - | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
529 | 552 | | |
530 | 553 | | |
531 | 554 | | |
532 | 555 | | |
533 | 556 | | |
534 | 557 | | |
535 | 558 | | |
536 | | - | |
| 559 | + | |
537 | 560 | | |
538 | | - | |
539 | | - | |
| 561 | + | |
540 | 562 | | |
541 | 563 | | |
542 | 564 | | |
543 | 565 | | |
544 | 566 | | |
545 | 567 | | |
546 | 568 | | |
547 | | - | |
548 | | - | |
| 569 | + | |
549 | 570 | | |
550 | 571 | | |
551 | 572 | | |
| |||
846 | 867 | | |
847 | 868 | | |
848 | 869 | | |
849 | | - | |
| 870 | + | |
850 | 871 | | |
851 | 872 | | |
852 | 873 | | |
| |||
856 | 877 | | |
857 | 878 | | |
858 | 879 | | |
859 | | - | |
| 880 | + | |
860 | 881 | | |
861 | 882 | | |
862 | 883 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
| 15 | + | |
17 | 16 | | |
18 | 17 | | |
19 | 18 | | |
| |||
22 | 21 | | |
23 | 22 | | |
24 | 23 | | |
25 | | - | |
| 24 | + | |
26 | 25 | | |
27 | | - | |
| 26 | + | |
28 | 27 | | |
29 | 28 | | |
30 | 29 | | |
| |||
34 | 33 | | |
35 | 34 | | |
36 | 35 | | |
37 | | - | |
| 36 | + | |
38 | 37 | | |
39 | | - | |
| 38 | + | |
40 | 39 | | |
41 | 40 | | |
42 | 41 | | |
| |||
45 | 44 | | |
46 | 45 | | |
47 | 46 | | |
48 | | - | |
| 47 | + | |
49 | 48 | | |
50 | | - | |
| 49 | + | |
51 | 50 | | |
52 | 51 | | |
53 | 52 | | |
| |||
56 | 55 | | |
57 | 56 | | |
58 | 57 | | |
59 | | - | |
| 58 | + | |
60 | 59 | | |
61 | | - | |
| 60 | + | |
62 | 61 | | |
63 | 62 | | |
64 | 63 | | |
| |||
67 | 66 | | |
68 | 67 | | |
69 | 68 | | |
70 | | - | |
| 69 | + | |
71 | 70 | | |
72 | | - | |
| 71 | + | |
73 | 72 | | |
74 | 73 | | |
75 | 74 | | |
| |||
0 commit comments