def _start_graphing(self, event_source, event): distbuild.crash_point() logging.info('Start constructing build graph') self._artifact_data = distbuild.StringBuffer() self._artifact_error = distbuild.StringBuffer() argv = [ self._morph_instance, 'serialise-artifact', '--quiet', self._request['repo'], self._request['ref'], self._request['morphology'], ] if 'original_ref' in self._request: argv.append(self._request['original_ref']) msg = distbuild.message('exec-request', id=self._idgen.next(), argv=argv, stdin_contents='') self._helper_id = msg['id'] req = distbuild.HelperRequest(msg) self.mainloop.queue_event(distbuild.HelperRouter, req) progress = BuildProgress(self._request['id'], 'Computing build graph') self.mainloop.queue_event(BuildController, progress)
def setUp(self): self.buf = distbuild.StringBuffer() self.first = 'foo' self.second = 'bar' self.all = self.first + self.second self.buf.add(self.first) self.buf.add(self.second)
def setUp(self): self.buf = distbuild.StringBuffer()