[Buildbot-devel] How does isFileImportant work?, was Re: Some Questions

Axel Hecht l10n.moz at googlemail.com
Fri Jun 20 10:10:15 UTC 2008


AFAICT, fileIsImportant is called with two arguments, the scheduler
and the change. I'm not dead-on sure that the scheduler is passed, but
I think so.

so you'd do something like

def importQuickFiles(sched, change):
  for f in change.getFiles():
    if ....:
      return True
  return False


Axel, who hasn't called into fileIsImportant for a while, but once
did. And prefer simple questions, too.


2008/6/20 Dennis Schridde <devurandom at gmx.net>:
> Hi!
>
> As requested by Ben Finney, I split up my questions into seperate emails.
>
> How is buildbot.scheduler.Scheduler(isFileImportant) supposed to work?
>
> I tried the following, but without luck (the build is never triggered):
> def importantQuickFiles(filename):
>     return (filename.endswith(".c") or filename.endswith(".h") or
>         filename.endswith(".cpp") or filename.endswith(".hpp") or
>         filename.endswith(".am") or filename.endswith(".ac"))
> c['schedulers'] = []
> from buildbot import scheduler
> c['schedulers'].append(scheduler.Scheduler(name="quick", branch=None,
>     treeStableTimer=10*60,
>     fileIsImportant=importantQuickFiles,
>     builderNames=['quick_linux', 'quick_mingw32']))
>
> Thanks in advance,
> Dennis
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________
> Buildbot-devel mailing list
> Buildbot-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/buildbot-devel
>
>




More information about the devel mailing list