Repository navigation
fix(site-action): Pin cloned group to the site's bench versions (#7891) - #7968
Open
PrathmmeshJagdale wants to merge 2 commits into
Open
PrathmmeshJagdale wants to merge 2 commits into
PrathmmeshJagdale wants to merge 2 commits into
Conversation
PrathmmeshJagdale
requested review from
balamurali27 and
tanmoysrt
as code owners
November 3, 2026 14:57
Codecov Report❌ Patch coverage is
❌ Your patch status has failed because the patch coverage (70.58%) is below the target coverage (75.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## develop #7968 +/- ##
===========================================
+ Coverage 65.42% 66.96% +1.53%
===========================================
Files 1127 1178 +51
Lines 111195 118587 +7392
Branches 2125 2383 +258
===========================================
+ Hits 72749 79406 +6657
- Misses 38389 39114 +725
- Partials 57 67 +10
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
PrathmmeshJagdale
force-pushed
the
fix/7891-pin-cloned-bench-versions
branch
2 times, most recently
from
November 4, 2026 15:38
f32a1d5 to
89f9a67
Compare
PrathmmeshJagdale
force-pushed
the
fix/7891-pin-cloned-bench-versions
branch
from
November 4, 2026 16:32
89f9a67 to
c637cb1
Compare
This branch has not been deployed
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Fixes #7891.
Problem
Moving a site to a new (cloned) bench group builds the latest release of every app instead of the releases running on the site's current bench.
Cause
A cloned release group has no bench yet, so
get_app_updatesfinds nocurrent_hashand marks every app asupdate_available.get_apps_to_updatethen picksnext_releasefor all of them.Fix
In the clone branch of
site_action.py, the new deploy candidate is pinned to the apps ofsite.bench(source, release and hash, withpullable_*cleared) and saved before the build is created. A destination release group chosen by the user is not changed.Test
test_cloned_group_keeps_site_bench_releasescreates a newer release for every app on the bench, moves the site to a cloned group, and checks that the new deploy candidate keeps the releases of the site's bench.I don't have a local bench, so the tests have not been run locally. Lint, format and mypy pass via pre-commit.