Skip to content

Conversation

@MaciejKaras
Copy link
Collaborator

@MaciejKaras MaciejKaras commented Oct 13, 2025

Summary

This PR configures all image release tasks to first check if image already exists and prevent overriding them.

Proof of Work

skip_if_exists is already configured for version-upgrade-hook and readiness-probe tasks and works. I've also added possibility to add skip_if_exists through pipeline.py args and tested it:

scripts/dev/run_python.sh scripts/release/pipeline.py agent --build-scenario patch --current-agents --skip-if-exists=True
...
Build configuration: ImageBuildConfiguration(scenario=<BuildScenario.PATCH: 'patch'>, version=None, latest_tag=False, olm_tag=False, registries=['268558157000.dkr.ecr.us-east-1.amazonaws.com/dev/mongodb-agent'], dockerfile_path='docker/mongodb-agent/Dockerfile', platforms=['linux/amd64'], sign=False, skip_if_exists=True, parallel=False, parallel_factor=0, all_agents=False, currently_used_agents=True)

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?
@github-actions
Copy link

⚠️ (this preview might not be accurate if the PR is not rebased on current master branch)

MCK 1.5.1 Release Notes

@MaciejKaras MaciejKaras added the skip-changelog Use this label in Pull Request to not require new changelog entry file label Oct 13, 2025
@MaciejKaras MaciejKaras marked this pull request as ready for review October 13, 2025 14:26
@MaciejKaras MaciejKaras requested a review from a team as a code owner October 13, 2025 14:26
@MaciejKaras MaciejKaras changed the title CLOUDP-295785 - ass skip_if_exists flag to all releasable images CLOUDP-295785 - add skip_if_exists flag to all releasable images Oct 13, 2025
@MaciejKaras MaciejKaras requested review from mircea-cosbuc and viveksinghggits and removed request for filipcirtog October 13, 2025 14:26
@MaciejKaras MaciejKaras merged commit cce9dd1 into master Oct 14, 2025
32 of 38 checks passed
@MaciejKaras MaciejKaras deleted the maciejk/ar-skip-if-exists branch October 14, 2025 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-changelog Use this label in Pull Request to not require new changelog entry file

4 participants