The buildd-manager should use non-blocking I/O when getting files from the slave
Bug #662631 reported by
Julian Edwards
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
Medium
|
Julian Edwards |
Bug Description
The slave has a getFile method that uses urllib, we can change this to use Twisted's getPage which is asynchronous. That means many other places in the code will need to be updated to cope with this. See the XXXes in the code referring to this bug.
Related branches
lp://qastaging/~julian-edwards/launchpad/async-file-uploads-bug-662631
- Graham Binns (community): Approve (code)
- Jonathan Lange (community): Abstain
-
Diff: 1093 lines (+412/-233)16 files modifiedlib/lp/buildmaster/interfaces/builder.py (+1/-1)
lib/lp/buildmaster/interfaces/buildfarmjobbehavior.py (+3/-0)
lib/lp/buildmaster/interfaces/packagebuild.py (+6/-1)
lib/lp/buildmaster/model/builder.py (+63/-37)
lib/lp/buildmaster/model/buildfarmjobbehavior.py (+2/-3)
lib/lp/buildmaster/model/packagebuild.py (+107/-84)
lib/lp/buildmaster/tests/mock_slaves.py (+20/-11)
lib/lp/buildmaster/tests/test_builder.py (+45/-1)
lib/lp/buildmaster/tests/test_packagebuild.py (+35/-28)
lib/lp/code/model/sourcepackagerecipebuild.py (+6/-4)
lib/lp/code/model/tests/test_sourcepackagerecipebuild.py (+3/-1)
lib/lp/soyuz/tests/test_binarypackagebuild.py (+3/-1)
lib/lp/soyuz/tests/test_binarypackagebuildbehavior.py (+40/-31)
lib/lp/translations/model/translationtemplatesbuildbehavior.py (+47/-19)
lib/lp/translations/tests/test_translationtemplatesbuildbehavior.py (+26/-10)
lib/lp_sitecustomize.py (+5/-1)
Changed in soyuz: | |
status: | New → Triaged |
importance: | Undecided → Medium |
tags: | added: buildd-manager |
Changed in soyuz: | |
assignee: | nobody → Julian Edwards (julian-edwards) |
Changed in soyuz: | |
status: | Triaged → In Progress |
tags: | added: buildd-scalability |
tags: |
added: qa-ok removed: qa-needstesting |
tags: |
added: qa-ok removed: qa-untestable |
Changed in soyuz: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Fixed in db-stable r10021 <http:// bazaar. launchpad. net/~launchpad- pqm/launchpad/ db-stable/ revision/ 10021>.