Merge lp://staging/~wgrant/launchpad/bug-549907-stop-using-slave-build-id into lp://staging/launchpad
Status: | Merged |
---|---|
Approved by: | Michael Nelson |
Approved revision: | no longer in the source branch. |
Merged at revision: | not available |
Proposed branch: | lp://staging/~wgrant/launchpad/bug-549907-stop-using-slave-build-id |
Merge into: | lp://staging/launchpad |
Prerequisite: | lp://staging/~wgrant/launchpad/refactor-slavestatus |
Diff against target: |
179 lines (+21/-22) 5 files modified
lib/lp/buildmaster/model/buildbase.py (+5/-4) lib/lp/buildmaster/model/builder.py (+3/-3) lib/lp/soyuz/doc/buildd-slavescanner.txt (+1/-7) lib/lp/translations/model/translationtemplatesbuildbehavior.py (+11/-7) lib/lp/translations/tests/test_translationtemplatesbuildbehavior.py (+1/-1) |
To merge this branch: | bzr merge lp://staging/~wgrant/launchpad/bug-549907-stop-using-slave-build-id |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Michael Nelson (community) | code | Approve | |
Jelmer Vernooij (community) | code* | Approve | |
Review via email: mp+22585@code.staging.launchpad.net |
Commit message
Restrict the master's use of slave build IDs to rescueBuilderIf
Description of the change
The build farm slave build ID (returned in the slave status string) can be falsified by the easily hijacked slaves. It should therefore not be used for anything besides its primary purpose -- rescueIfLost.
However, it's currently used in a few log messages and a directory name. This branch fixes them to use something else, and removes the slave build ID from the slave status dict, making it rather difficult for new code to start using it without trying REALLY hard.
The upload directory change is not significant, since it simply generates the same correct ID itself, rather than trusting the one from the slave.
Thanks. Other than reducing the amount of bookkeeping in various places, I think the build title is also generally a more useful string.
I see you removed the references to success / successful in lib/lp/ translations/ model/translati ontemplatesbuil dbehavior. py; it seems useful to mention this, though perhaps it's sufficient that the previous log line would also mention the fact that the status of the build was ok.