-
Notifications
You must be signed in to change notification settings - Fork 9
Add documentation for pipeline.py #130
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
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
# Pipeline | ||
|
||
## Environment Variables (env vars) | ||
|
||
This listing contains all environment variables used in `pipeline.py`. | ||
Default evergreen-ci expansions can be looked up [here](https://docs.devprod.prod.corp.mongodb.com/evergreen/Project-Configuration/Project-Configuration-Files#expansions). | ||
|
||
| Environment Variable | Usage / Description | | ||
|-------------------------------|------------------------------------------------------------------------------------| | ||
| `otel_trace_id` | OpenTelemetry tracing: trace ID. Default evergreen-ci expansion. | | ||
| `otel_parent_id` | OpenTelemetry tracing: parent span ID. Default evergreen-ci expansion. | | ||
| `otel_collector_endpoint` | OpenTelemetry tracing: collector endpoint. Default evergreen-ci expansion. | | ||
| `distro` | Image type (defaults to `ubi`) | | ||
| `BASE_REPO_URL` | Base repository URL for images | | ||
| `namespace` | Kubernetes namespace (defaults to `default`) | | ||
| `skip_tags` | Tags to skip during build | | ||
| `include_tags` | Tags to include during build | | ||
| `all_agents` | Whether to build all agent images | | ||
| `RUNNING_IN_EVG` | Whether running in Evergreen pipeline | | ||
| `is_patch` | Whether running as a patch build. Default evergreen-ci expansion. | | ||
| `pin_tag_at` | Time to pin image tag (format: `HH:MM`) | | ||
| `created_at` | Build creation time (format: `%y_%m_%d_%H_%M_%S`). Default evergreen-ci expansion. | | ||
| `triggered_by_git_tag` | Git tag that triggered the build. Default evergreen-ci expansion. Default evergreen-ci expansion. | | ||
| `version_id` | Patch ID or version for non-release builds. Default evergreen-ci expansion. | | ||
| `test_suffix` | Suffix for test images | | ||
| `LOG_AUTOMATION_CONFIG_DIFF` | Whether to log automation config diff | | ||
| `PYTHON_VERSION` | Python version for test images | | ||
| `GOLANG_VERSION` | Go version for community images and tests | | ||
| `QUAY_REGISTRY` | Quay registry URL (defaults to `quay.io/mongodb`) | | ||
| `REGISTRY` | ECR registry URL (defaults to `268558157000.dkr.ecr.us-east-1.amazonaws.com/dev`) | | ||
| `om_version` | Ops Manager version for OM image builds | | ||
| `om_download_url` | Download URL for Ops Manager (optional, can be auto-detected) | | ||
|
||
## Context Image Build Process | ||
|
||
``` | ||
┌─────────────────────────────┐ | ||
│ Release Pipeline │ | ||
└────────────┬────────────────┘ | ||
│ | ||
▼ | ||
┌─────────────────────────────────┐ | ||
│ Build context image │ | ||
│ Tag: opsmanager-context:1.33.0 │ | ||
└────────────┬────────────────────┘ | ||
│ | ||
▼ | ||
┌───────────────────────────────┐ | ||
│ Daily Build │ | ||
│ Base: opsmanager-context │ | ||
│ Input tag: 1.33.0 │ | ||
└────────────┬──────────────────┘ | ||
│ | ||
▼ | ||
┌────────────────────────────────────┐ | ||
│ Push Two Image Tags │ | ||
└────────────┬───────────────┬───────┘ | ||
▼ ▼ | ||
┌────────────────────────┐ ┌──────────────────────────────┐ | ||
│ Rolling Tag (latest) │ │ Immutable Tag (daily stamp) │ | ||
│ opsmanager:1.33.0 │ │ opsmanager:1.33.0-2025-01-01 │ | ||
└────────────────────────┘ └──────────────────────────────┘ | ||
|
||
▼ (next day build) | ||
┌────────────────────────┐ ┌──────────────────────────────┐ | ||
│ opsmanager:1.33.0 │ │ opsmanager:1.33.0-2025-01-02 │ | ||
└────────────────────────┘ └──────────────────────────────┘ | ||
↑ now updated to point ↑ new image pushed | ||
to the 2025-01-02 build | ||
``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Credits to @nammn for this overview!