Merge lp://qastaging/~ursinha/ubuntu-ci-services-itself/ppa-assigner-checking-date-made-pending into lp://qastaging/ubuntu-ci-services-itself

Proposed by Ursula Junque
Status: Merged
Approved by: Evan
Approved revision: 291
Merged at revision: 297
Proposed branch: lp://qastaging/~ursinha/ubuntu-ci-services-itself/ppa-assigner-checking-date-made-pending
Merge into: lp://qastaging/ubuntu-ci-services-itself
Diff against target: 94 lines (+29/-9)
4 files modified
ppa-assigner/ppa_assigner/launchpad.py (+21/-1)
ppa-assigner/ppa_assigner/management/commands/clean_ppas.py (+1/-1)
ppa-assigner/ppa_assigner/ppa_sync.py (+1/-1)
ppa-assigner/ppa_assigner/tests.py (+6/-6)
To merge this branch: bzr merge lp://qastaging/~ursinha/ubuntu-ci-services-itself/ppa-assigner-checking-date-made-pending
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Approve
Evan (community) Approve
Review via email: mp+208728@code.qastaging.launchpad.net

Commit message

Changing ppa_assigner to check for date_made_pending instead of date_removed

Description of the change

This branch changes ppa_assigner to check for date_made_pending instead of date_removed on a package publishing record. This should save us time while waiting for the PPA to be freed to use again.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

PASSED: Continuous integration, rev:289
http://s-jenkins.ubuntu-ci:8080/job/uci-engine-ci/260/
Executed test runs:

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/uci-engine-ci/260/rebuild

review: Approve (continuous-integration)
Revision history for this message
Evan (ev) wrote :

Could you provide a comment in the code on what effect checking date_made_pending has? Perhaps even just your commit message:

spph/bpph.date_removed is set by process-death-row, that runs every 6 hours; scheduled_deletion_time is set when the publisher removes the entry from the indices, so the package don't exist anymore from this point on. Checking if this is set should be enough to ensure the package is 'gone'

review: Needs Fixing
Revision history for this message
Evan (ev) wrote :

+1 otherwise.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

PASSED: Continuous integration, rev:290
http://s-jenkins.ubuntu-ci:8080/job/uci-engine-ci/262/
Executed test runs:

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/uci-engine-ci/262/rebuild

review: Approve (continuous-integration)
291. By Ursula Junque

Adding comment to launchpad.py explaining why the change to date_made_pending

Revision history for this message
Ursula Junque (ursinha) wrote :

> Could you provide a comment in the code on what effect checking
> date_made_pending has? Perhaps even just your commit message:
>
> spph/bpph.date_removed is set by process-death-row, that runs every 6 hours;
> scheduled_deletion_time is set when the publisher removes the entry from the
> indices, so the package don't exist anymore from this point on. Checking if
> this is set should be enough to ensure the package is 'gone'

r291. Let me know if that's good enough.

Revision history for this message
Evan (ev) wrote :

+1

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

PASSED: Continuous integration, rev:291
http://s-jenkins.ubuntu-ci:8080/job/uci-engine-ci/264/
Executed test runs:

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/uci-engine-ci/264/rebuild

review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches