Exemplo n.º 1
0
    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)
Exemplo n.º 2
0
 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)
Exemplo n.º 3
0
 def setUp(self):
     self.buf = distbuild.StringBuffer()