[users at bb.net] Re-add v0.8's setProgress feature? (was: Parse log output and display computed information)

Pierre Tardy tardyp at gmail.com
Sat Oct 6 06:40:48 UTC 2018


Hi Andreas,
There is no plan AFAIK of such re-implementation. Patches are welcome as
usual.
I think this is a nice feature.
This would require a model change in the database and in the data/message
model, so that the progress is available live in the UI.
As a first step, this could however abuse the state_string in order to
store setProgress values

Pierre


On Fri, Oct 5, 2018 at 9:11 PM Andreas Sommer <
andreas.sommer87 at googlemail.com> wrote:

> Is there a plan to re-add the progress feature, though? That is, allow
> build steps to report a progress text which the www component would
> display. That would be quite helpful especially if progress can be set from
> a log observer. For instance, one could parse progress of CMake projects
> (Make: `[ 53%]`, Ninja: `[13/60]`) or other builds that report such
> information. If there is some interest, would you be interested in a pull
> request for this feature?
>
> P.S. re original topic: I've opened a pull request to add an "addURL from
> log observer" example to the documentation (
> https://github.com/buildbot/buildbot/pull/4349). It was already mentioned
> there (not sure since when).
>
> Best,
>  Andreas
>
> On 2018-06-24 17:05, Pierre Tardy wrote:
> > Hi,
> > Indeed, setProgress is a relique of an eight API, and is not implemented
> in 1.0. any help is apreciated to fix the tutorial you did find (not sure
> which one it is)
> > What you need is step.addURL, which does what you describe in the UI.
> >
> > http://docs.buildbot.net/latest/manual/customization.html#buildstep-urls
> >
> > Regards,
> > Pierre
> >
> > On Sun, Jun 24, 2018 at 11:10 AM Andreas Sommer <
> andreas.sommer87 at googlemail.com <mailto:andreas.sommer87 at googlemail.com>>
> wrote:
> >
> >     Hi all,
> >
> >     I've read the "Adding LogObservers" tutorial[0] which leverages
> `self.step.setProgress` to store information parsed from the log.
> >
> >     However this function isn't even implemented:
> >     > master/buildbot/process/buildstep.py:
> >     >    def setProgress(self, metric, value):
> >     >        # this function temporarily does nothing
> >     >        pass
> >
> >     Any plans to get this finished? If it were implemented, could it be
> used to display something in the web interface. My use case: find the line
> `[02:22:49] Logs:
> /pdr/data/logs/bulk/103amd64-2018Q2-bulk-master/2018-06-24_01h12m11s` and
> construct+display a clickable web link to the detailed build log (which are
> created in separate files on disk).
> >
> >     Cheers,
> >      Andreas
> >
> >     [0]
> http://docs.buildbot.net/latest/manual/customization.html#adding-logobservers
> >     _______________________________________________
> >     users mailing list
> >     users at buildbot.net <mailto:users at buildbot.net>
> >     https://lists.buildbot.net/mailman/listinfo/users
> >
> > --
> >
> >
>
--
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.buildbot.net/pipermail/users/attachments/20181006/9aef22f8/attachment.html>


More information about the users mailing list