Closed Bug 918632 Opened 12 years ago Closed 11 years ago

Create a task which can verify that pull request status is tested on top of latest tip of $BRANCH

Categories

(Firefox OS Graveyard :: Gaia::GithubBot, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: jhford, Unassigned)

References

Details

We should have a node module to determine whether a revision passed CI tests. We should abstract current CI.
Summary: Node module which knows how to understand test results → Create task which can check the status of a github pull request
Assignee: nobody → jlal
OK so my initial idea worked like this: (steps to verify) 1. get commit status from github 2. verify its passed 3. get latest tip sha 4. get parent sha from travis test run and verify its the same as tip The last part is the problem (4) as far as I can tell this information is not stored anywhere so we cannot determine which "tip" is the right one... I have a less optimal approach which is: 1. verify the pull request is "mergable" (github gives us this for free) 2. get last "updated_at" time on the PR 3. get commit status from github 4. verify its passed 5. verify the commit status was created (and passing) after the last updated_at 6. verify $BRANCH tip commit date is before "updated_at" This approach is much less correct and is hinging on the fact that the "tip" date is correct. That said steps 1-4 give us quite a bit of protection so this might be good enough for a start.
An alternative approach is to post the parent information from our travis jobs but this seems sub-optimal... Ideally our system is a "drop-in" kind of thing and just works out of the box... I will see if there is some way we can store this state in travis.
Assignee: jlal → nobody
Summary: Create task which can check the status of a github pull request → Create a task which can verify that pull request status is tested on top of latest tip of $BRANCH
Depends on: 921324
Mass modify: Since we are going to be using Autolander now, mark old github bot bugs as resolved wontfix.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.