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

Andreas Sommer andreas.sommer87 at googlemail.com
Fri Oct 5 19:11:12 UTC 2018


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
> 
> -- 
> 
> 


More information about the users mailing list