# SUSE OBS builders
# ----------------------------------------------------------------------

# Note: this has currently been replaced by github actions, but is kept
# here for a while (just in case).

obs_container_call = 'docker run --rm --privileged -e PKG_PROJ -v/buildbot/pkg:/host -v$(pwd):/work rsyslog/rsyslog_obs:basic bash -c '
factory_obs_pkg_ci2 = BuildFactory()
factory_obs_pkg_ci2.addStep(
    ShellCommand(command=["bash", "-c", obs_container_call + '"rm -rf *"'],
                 env={'PKG_PROJ': '../../..'},
                 haltOnFailure=True,
                 name="cleanup work directory"))
factory_obs_pkg_ci2.addStep(
    GitHub(repourl=repoGitUrl,
           mode='full',
           retryFetch=True,
           name="git fetch rsyslog/rsyslog_pkg_ubuntu"))
factory_obs_pkg_ci2.addStep(
    ShellCommand(
        command=["bash", "-c", 'docker pull rsyslog/rsyslog_obs:basic'],
        haltOnFailure=True,
        name="pull OBS container"))
#factory_obs_pkg_ci2.addStep(ShellCommand(command=["bash", "-c", "mkdir _OBS; cd _OBS; osc co home:rgerhards/rsyslog "], haltOnFailure=True, maxTime=1200, timeout=1200, name="checkout OBS rsyslog project"))
# We pull from git because SUSE OBS rate-limits frequent requests - not good for CI...
factory_obs_pkg_ci2.addStep(
    ShellCommand(command=[
        "bash", "-c",
        "mkdir _OBS; cd _OBS; git clone https://github.com/rsyslog/pkg_obs-clone.git"
    ],
                 haltOnFailure=True,
                 maxTime=1200,
Beispiel #2
0
                              category="pull",
                              project="rsyslog/rsyslog-pkg-rhel-centos"),
                          builderNames=["rsyslogrpm rpmbuild"]))

lc['schedulers'].append(
    ForceScheduler(name="forceall_rsyslog_real_rsyslogrpm",
                   label="1. Force All-rsyslog-real-rsyslogrpm",
                   builderNames=["rsyslogrpm real rpmbuild"]))

# ----------------------------------------------------------------------
# SUSE OBS builders
# ----------------------------------------------------------------------

factory_obs_pkg_ci = BuildFactory()
factory_obs_pkg_ci.addStep(
    GitHub(repourl=repoGitUrl, mode='full', retryFetch=True))
#factory_obs_pkg_ci.addStep(ShellCommand(command=["bash", "-c", "mkdir _OBS; cd _OBS; osc co home:rgerhards/rsyslog "], haltOnFailure=True, maxTime=1200, timeout=1200, name="checkout OBS rsyslog project"))
# We pull from git because SUSE OBS rate-limits frequent requests - not good for CI...
factory_obs_pkg_ci.addStep(
    ShellCommand(command=[
        "bash", "-c",
        "mkdir _OBS; cd _OBS; git clone https://github.com/rsyslog/pkg_obs-clone.git ; ls ; find ."
    ],
                 haltOnFailure=True,
                 maxTime=1200,
                 timeout=1200,
                 name="checkout OBS rsyslog project"))
factory_obs_pkg_ci.addStep(
    ShellCommand(command=[
        "bash", "-c",
        'cd _OBS/pkg_obs-clone/rsyslog ; osc repairwc . ; #rm *xz *dsc'
#	* This file is part of RSyslog
#	* 
#	* rsyslog factory settings
#	*

from buildbot.process.factory import BuildFactory
from buildbot.steps.source.github import GitHub
from buildbot.steps.shell import ShellCommand
from buildbot.steps.shell import Configure 

from master_includes import appendSchedulers
from master_includes import appendBuilders

# --- liblognorm factory settings
factoryLibLogNorm = BuildFactory()
factoryLibLogNorm.addStep(GitHub(repourl=repoGitUrl, mode='full', retryFetch=True))
#factoryLibLogNorm.addStep(GitHub(repourl='git://github.com/rsyslog/liblognorm.git', mode='full'))
factoryLibLogNorm.addStep(ShellCommand(command=["autoreconf", "--force", "--verbose", "--install"]))
factoryLibLogNorm.addStep(ShellCommand(command=["./configure", "--prefix=/usr", "--enable-regexp", "--enable-valgrind"], logfiles={"config.log": "config.log"}))
factoryLibLogNorm.addStep(ShellCommand(command=["make", "-j"]))
factoryLibLogNorm.addStep(ShellCommand(command=["make", "check", "V=0"], logfiles={"test-suite.log": "tests/test-suite.log"}, lazylogfiles=True))
factoryLibLogNorm.addStep(ShellCommand(command=["make", "distcheck", "V=0"], logfiles={"test-suite.log": "tests/test-suite.log"}, lazylogfiles=True, maxTime=3600))

factoryLibLogNormSolaris = BuildFactory()
factoryLibLogNormSolaris.addStep(GitHub(repourl=repoGitUrl, mode='full', retryFetch=True))
#factoryLibLogNormSolaris.addStep(GitHub(repourl='git://github.com/rsyslog/liblognorm.git', mode='full'))
factoryLibLogNormSolaris.addStep(ShellCommand(command=["autoreconf", "--force", "--verbose", "--install"], env=solarisenv_gcc))
factoryLibLogNormSolaris.addStep(ShellCommand(command=["./configure", "--enable-regexp", "--enable-compile-warnings=no", 'CC=/opt/solarisstudio12.4/bin/cc'], env=solarisenv_gcc, logfiles={"config.log": "config.log"}))
factoryLibLogNormSolaris.addStep(ShellCommand(command=["gmake", "V=0"], env=solarisenv_gcc))
# DOES CURRENTLY NOT WORK! factoryLibLogNormSolaris.addStep(ShellCommand(command=["gmake", "check", "V=1"], env=solarisenv_gcc, logfiles={"test-suite.log": "tests/test-suite.log"}, lazylogfiles=True, maxTime=3600))
#currently does not work due to env var factoryLibLogNormSolaris.addStep(ShellCommand(command=["gmake", "distcheck", "V=1"]))
Beispiel #4
0
#	* This file is part of RSyslog
#	*
#	* rsyslog factory settings
#	*

from buildbot.process.factory import BuildFactory
from buildbot.steps.source.github import GitHub
from buildbot.steps.shell import ShellCommand
from buildbot.steps.shell import Configure

from master_includes import appendSchedulers
from master_includes import appendBuilders

# --- libestr factory settings
factoryLibestr = BuildFactory()
factoryLibestr.addStep(GitHub(repourl=repoGitUrl, mode='full',
                              retryFetch=True))
factoryLibestr.addStep(
    ShellCommand(command=["autoreconf", "--force", "--verbose", "--install"]))
factoryLibestr.addStep(
    ShellCommand(command=["./configure", "--prefix=/usr"],
                 logfiles={"config.log": "config.log"}))
factoryLibestr.addStep(ShellCommand(command=["make"]))
factoryLibestr.addStep(
    ShellCommand(command=["make", "check", "V=0"],
                 logfiles={"test-suite.log": "tests/test-suite.log"},
                 lazylogfiles=True,
                 maxTime=3600))
# ---

# --- libestr factory settings
factoryLibestrSolaris = BuildFactory()
Beispiel #5
0
from buildbot.plugins import schedulers, util
from buildbot.config import BuilderConfig
from buildbot.schedulers.basic import SingleBranchScheduler
from buildbot.schedulers.forcesched import ForceScheduler
from buildbot.changes import filter

from master_includes import appendSchedulers
from master_includes import appendBuilders

# standard build steps
librelp_make_check=ShellCommand(command=["make", "-j4", "check", "VERBOSE=1"], env={'UNDER_CI':'YES'}, logfiles={"test-suite.log": "tests/test-suite.log"}, lazylogfiles=True, maxTime=3600, timeout=300, name="distcheck (gtls only)")
librelp_gather_check_logs=ShellCommand(command=["bash", "-c", "ls -l tests; find . -name '*.log'; cat $(find $(find . -name tests) -name \"*.log\" ! -name \"librelp*\"); exit 0"], haltOnFailure=False, name="gather individual test logs")

# --- librelp default factory settings
factoryLibrelp= BuildFactory()
factoryLibrelp.addStep(GitHub(repourl=repoGitUrl, mode='full', retryFetch=True))
factoryLibrelp.addStep(ShellCommand(command=["bash", "-c", "ps aux|grep receive; killall lt-receive; ps aux|grep receive; exit 0"], name="process cleanup"))
factoryLibrelp.addStep(ShellCommand(command=["autoreconf", "--force", "--verbose", "--install"], name="autoreconf", description="autoreconf running", descriptionDone="autoreconf done"))
# NO tls
factoryLibrelp.addStep(ShellCommand(command=["./configure", "--disable-tls", "--disable-tls-openssl"], name="configure (no tls)", logfiles={"config.log": "config.log"}))
factoryLibrelp.addStep(ShellCommand(command=["make"], name="make"))
factoryLibrelp.addStep(librelp_make_check)
factoryLibrelp.addStep(librelp_gather_check_logs)
# gtls
factoryLibrelp.addStep(ShellCommand(command=["make", "clean"], name="cleanup for next test"))
factoryLibrelp.addStep(ShellCommand(command=["./configure", "--enable-tls", "--disable-tls-openssl"], name="configure (gtls only)", logfiles={"config.log": "config.log"}))
factoryLibrelp.addStep(ShellCommand(command=["make"], name="make"))
factoryLibrelp.addStep(librelp_make_check)
factoryLibrelp.addStep(librelp_gather_check_logs)
# openssl
factoryLibrelp.addStep(ShellCommand(command=["make", "clean"], name="cleanup for next test"))