From 4eeed18eb6f100f04e8bbae6c0a0daf79cda8f30 Mon Sep 17 00:00:00 2001 From: warner Date: Mon, 13 Aug 2007 03:15:19 +0100 Subject: [PATCH] BuildSlave: keep track of lastMessageReceived for each slave --- ChangeLog | 17 +++++++++++++++++ buildbot/buildslave.py | 7 +++++++ buildbot/process/base.py | 1 + buildbot/process/buildstep.py | 6 ++++++ buildbot/test/runutils.py | 2 ++ buildbot/test/test_steps.py | 2 ++ 6 files changed, 35 insertions(+) diff --git a/ChangeLog b/ChangeLog index 2e383fd..f456996 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,22 @@ 2007-08-12 Brian Warner + * buildbot/buildslave.py (BuildSlave.messageReceivedFromSlave): + use the BuildSlave to keep track of the last time we've heard from + the buildslave. This is updated upon receipt of any message from + any SlaveBuilder (which generally means when RemoteCommands are + giving us status updates, as BuildSteps run). In the future this + will include slave pings too. + * buildbot/process/base.py + (Build.setupBuild): give each BuildStep a reference to the BuildSlave + * buildbot/process/buildstep.py: + (BuildStep.setBuildSlave): accept that reference + (BuildStep.runCommand): pass the reference on to the RemoteCommand + (RemoteCommand.remote_update): update the timestamp + (RemoteCommand.remote_complete): same + * buildbot/test/runutils.py (StepTester.makeStep): match the change + * buildbot/test/test_steps.py (BuildStep.testShellCommand1): same + + * buildbot/status/web/baseweb.py (OneLineMixin.make_line): tighten up the format a bit (OneLinePerBuild.body): use a