Closed Bug 653041 Opened 15 years ago Closed 15 years ago

HgPoller should have a maximum number of changes

Categories

(Release Engineering :: General, defect, P2)

x86_64
Linux
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: catlee, Assigned: catlee)

References

Details

Attachments

(2 files)

In bug 653029, we had around 60k new changes that got pulled in from the refresh of the mozilla-beta repo. It took a long time to process all those changes. 20:38 < dustin|gone> so I think the gitpoller now has a limit at which point it says "and some other changes" and doesn't read them 20:38 < catlee> but yeah, making the poller do that makes sense would be better if HgPoller had an upper bound on how many changes it returns at once. Is the only reason we don't do something like tipsonly for non-try is so that we trigger jobs for individual pushes that happen between polls?
Assignee: nobody → catlee
Priority: -- → P2
This patch makes it so the poller adds at most 100 changes every time it polls. This should be enough for most normal pushes, and protects us against insane pushes of entire repos. It also exposes the repo_branch variable so that the try poller can pay attention to all branches instead of just default.
Attachment #528854 - Flags: review?(rail)
Comment on attachment 528854 [details] [diff] [review] Implement maxChanges Looks good.
Attachment #528854 - Flags: review?(rail) → review+
Same as before, just with enabling tipsonly. Not sure which one we should land yet.
Attachment #529715 - Flags: review?(rail)
Attachment #529715 - Flags: review?(rail) → review+
Attachment #529715 - Flags: checked-in+
Flags: needs-reconfig?
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Flags: needs-reconfig?
Depends on: 770782
Product: mozilla.org → Release Engineering
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: