Closed Bug 1726764 Opened 5 years ago Closed 5 years ago

relpro shouldn't assume that no partial updates implies nightly

Categories

(Release Engineering :: Release Automation, enhancement)

enhancement

Tracking

(firefox95 fixed)

RESOLVED FIXED
Tracking Status
firefox95 --- fixed

People

(Reporter: jcristau, Assigned: jcristau)

Details

Attachments

(2 external files)

taskgraph.util.partials.populate_release_history (https://searchfox.org/mozilla-central/rev/12770bd668c0a6bdaa8eb96ad9507c6febe8d23d/taskcluster/taskgraph/util/partials.py#188) assumes that if no partials are explicitly requested we're building nightly. However it is also called when that may not be the case, in particular when dealing with staging releases (because finding appropriate partials to use for a staging release can be more trouble than it's worth). Since _populate_nightly_history and _populate_release_history return objects of different shapes this causes downstream errors e.g. in beetmover tasks.

"This is nightly so we don't know what partials we need" is not the same
as "we're making a release and we know we don't want partials". In one
case (when called from get_decision_parameters) partial_updates is None,
in the other (called from release_promotion_action) it's an empty dict.
The latter case still enforces non-empty partial_updates for production,
but for staging it's not really necessary and falling back to nightly
behaviour in populate_release_history is just wrong.

Pushed by jcristau@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/2c49181e6b6f let release promotion work without partials for staging releases. r=releng-reviewers,jmaher,bhearsum
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Attachment #9244216 - Attachment description: Bug 1726764 - add a test for taskgraph.util.partials.populate_release_history. r?#releng → Bug 1726764 - add a test for gecko_taskgraph.util.partials.populate_release_history. r?#releng
Pushed by jcristau@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/2549d0379107 add a test for gecko_taskgraph.util.partials.populate_release_history. r=releng-reviewers,jmaher
Component: Release Automation: Updates → Release Automation
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: