Merge lp:~bigkevmcd/offspring/dont-duplicate-automated-builds into lp:offspring
Proposed by
Kevin McDermott
Status: | Work in progress |
---|---|
Proposed branch: | lp:~bigkevmcd/offspring/dont-duplicate-automated-builds |
Merge into: | lp:offspring |
Diff against target: |
59 lines (+26/-4) 2 files modified
lib/offspring/master/tests/test_utils.py (+18/-0) lib/offspring/master/utils.py (+8/-4) |
To merge this branch: | bzr merge lp:~bigkevmcd/offspring/dont-duplicate-automated-builds |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Cody A.W. Somerville | design/architecture | Needs Fixing | |
Review via email: mp+139706@code.launchpad.net |
Description of the change
This is a fix for the nightly builds, that prevents duplicate builds when the project is already in a DailyBuildOrder.
If the project is active, and is a DailyBuildOrder project, then it will not be picked up by the build_active_
To post a comment you must log in.
Unmerged revisions
- 155. By Kevin McDermott
-
Fix for this issue.
- 154. By Kevin McDermott
-
Failing test for this.
The is_active attribute is more or less been re-purposed to be "Build Nightly" per front-end UI (ie. We show projects on main page if active OR project has daily build order PLUS the edit page in front-end has a label 'Build Nightly?').
The nightly build functionality was not intended to be conflated with daily build orders. The original purpose of this feature was to have projects build a second time so that both NA and APAC region employees would have a fresh build to work with at the start of the work day. Projects that did not want the NA build would toggle the is_active flag (this is why we modified the active project listing to also show projects with a DBO).
So yes, I agree there is a problem for sure. However, I feel like this implementation only extends how deep this rabbit hole goes. I would recommend an alternative implementation such as finishing the refactoring of is_active OR getting rid of that attribute all together and using JUST daily build orders. In the very least, IMHO, this patchset needs to address the UX issue.