Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix timed schedulers #1325

Merged
merged 30 commits into from Nov 5, 2014
Merged

Fix timed schedulers #1325

merged 30 commits into from Nov 5, 2014

Conversation

delanne
Copy link
Contributor

@delanne delanne commented Nov 5, 2014

this PR continues the work of the PR #1192.

Eg: it implements dustin's comment: #1192 (comment)

jpommerening and others added 30 commits November 5, 2014 13:05
Also, sourcestamp['codebase'] is a string, not a dict.
Remove the firstBuildDuration parameter, it's not used anywhere.
Make use of the faked addBuildsetForSourceStampWithDefaults method,
so that the tests may use that instead of the hand-rolled events list.
Also, refactor some tests.
Also sched.activate() might become async. Adjust tests accordingly.
Also, remove 3 tests from test_schedulers_basic. The desired
functionality is implemented and tested in the mixin.
This can be used by the startBuild implementations. If the scheduler
has collected and classified any changes, it will use
`addBuildsetForChanges` and flush the change classifications. If there
are no changes it will use `addBuildsetForSourceStampsWithDefaults`.
If `onlyIfChanged` was given and there are no important changes, the
method will return without triggering any builds. Collected changes
won't be flushed from the database.
The method is called addBuildsetForSourceStamps (plural) not
addBuildsetForSourceStamp.
 - don't filter on codebase as dustin suggested
 - add a parameter change_filter
@djmitche djmitche mentioned this pull request Nov 5, 2014
@jpommerening
Copy link
Contributor

👍 Thanks & sorry I can't find the time :/

@djmitche
Copy link
Member

djmitche commented Nov 5, 2014

@jpommerening no worries - that's what OSS is for :)

@djmitche djmitche merged commit ccb7cfd into buildbot:master Nov 5, 2014
@delanne delanne deleted the fix-timed-schedulers branch October 20, 2015 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants