-
Notifications
You must be signed in to change notification settings - Fork 32
CLOUDP-305848 & CLOUDP-338152 - release on master merges axuillary images #626
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
+431
−432
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
87efb02
release on master merges axuillary images
nammn c1f962c
summary at the end
nammn 472d3c8
remove publishing
nammn 803e10e
remove publishing
nammn 5442979
remove publishing
nammn 1a48d70
linter
nammn 569c6e3
remove duplicate
nammn 3bf351d
remove not used code
nammn 6de3ddd
remove not used code
nammn fe2246e
remove all release agent logic
nammn e716192
Merge branch 'master' into agent-release-on-master-merge
nammn 1a24d0d
remove all release agent logic
nammn 73e4943
Merge branch 'agent-release-on-master-merge' of github.com:mongodb/mo…
nammn 855593f
remove all release agent logic
nammn e55021e
linter
nammn 017b91b
address feedback
nammn 6ab7714
consistent raising errors
nammn a062e12
consistent raising errors
nammn 0b6d0e5
address feedback
nammn bff15bf
constants
nammn 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
Some comments aren't visible on the classic Files Changed page.
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
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
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
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 |
|---|---|---|
|
|
@@ -15,8 +15,7 @@ | |
| from opentelemetry import trace | ||
|
|
||
| from lib.base_logger import logger | ||
| from scripts.release.agent.detect_ops_manager_changes import ( | ||
| detect_ops_manager_changes, | ||
| from scripts.release.agent.agents_to_rebuild import ( | ||
| get_all_agents_for_rebuild, | ||
| get_currently_used_agents, | ||
| ) | ||
|
|
@@ -330,22 +329,23 @@ def build_upgrade_hook_image(build_configuration: ImageBuildConfiguration): | |
|
|
||
|
|
||
| def build_agent(build_configuration: ImageBuildConfiguration): | ||
| """ | ||
| Build the agent only for the latest operator for patches and operator releases. | ||
| """Build the agent image(s). Validation happens in pipeline.py.""" | ||
| version = build_configuration.version | ||
|
|
||
| """ | ||
| if build_configuration.all_agents: | ||
| if version == "all": | ||
| agent_versions_to_build = get_all_agents_for_rebuild() | ||
| logger.info("building all agents") | ||
| elif build_configuration.currently_used_agents: | ||
| elif version == "current": | ||
| agent_versions_to_build = get_currently_used_agents() | ||
| logger.info("building current used agents") | ||
| logger.info("building currently used agents") | ||
| elif version and build_configuration.agent_tools_version: | ||
| agent_versions_to_build = [(version, build_configuration.agent_tools_version)] | ||
| logger.info(f"building agent {version} with tools {build_configuration.agent_tools_version}") | ||
| else: | ||
| agent_versions_to_build = detect_ops_manager_changes() | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. no need to detect for changes, since we release every commit now |
||
| logger.info("building agents for changed OM versions") | ||
| raise ValueError("No agent selection provided - this should be caught by pipeline.py validation") | ||
|
|
||
| if not agent_versions_to_build: | ||
| logger.info("No changes detected, skipping agent build") | ||
| logger.warning("No agent versions found to build") | ||
| return | ||
|
|
||
| logger.info(f"Building Agent versions: {agent_versions_to_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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.