Skip to content
This repository has been archived by the owner on Jan 20, 2022. It is now read-only.

All clobbers endpoints #32

Merged
5 commits merged into from Feb 22, 2015
Merged

All clobbers endpoints #32

5 commits merged into from Feb 22, 2015

Conversation

ghost
Copy link

@ghost ghost commented Feb 12, 2015

Two new endpoints, which allow one to get an overall view of what has been recently clobbered. Using these endpoints in tandem, you could build a manifest (with all) then update it periodically (using greater-than) to achieve branch agnostic bulk clobbers.

/clobberer/lastclobber/all
/clobberer/lastclobber/greater-than/

@ghost
Copy link
Author

ghost commented Feb 12, 2015

@catlee

return session.query(ClobberTime).order_by(ClobberTime.lastclobber)


@bp.route('/lastclobber/greater-than/<int:mintime>', methods=['GET'])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This might be better as /lastclobber/since/<int:mintime> or even /lastclobber/all?since=<int:mintime>.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@djmitche oooh, yes, I like that idea. Thanks!

This discussions with developers revealed that this information was un-necesarry.
@coveralls
Copy link

Coverage Status

Coverage increased (+0.08%) to 97.28% when pulling 81e8244 on mrrrgn:all-clobbers-endpoints into 730d9b1 on mozilla:master.

The complex query turns out to be necessary, because we still support clobbering individual slaves.
i.e. we can have the same builddir with multiple clobbertimes, so the "max n per group" must be calculated.
@coveralls
Copy link

Coverage Status

Coverage increased (+0.08%) to 97.28% when pulling fbefca2 on mrrrgn:all-clobbers-endpoints into 730d9b1 on mozilla:master.

@Callek
Copy link
Contributor

Callek commented Feb 17, 2015

👍

@ghost
Copy link
Author

ghost commented Feb 22, 2015

/me makes it so

ghost pushed a commit that referenced this pull request Feb 22, 2015
@ghost ghost merged commit 598d7ce into mozilla:master Feb 22, 2015
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
4 participants