From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gnu.wildebeest.org (gnu.wildebeest.org [45.83.234.184]) by sourceware.org (Postfix) with ESMTPS id C46303858D1E for ; Tue, 18 Apr 2023 23:49:30 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C46303858D1E Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=klomp.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=klomp.org Received: from csb.redhat.com (deer0x03.wildebeest.org [172.31.17.133]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gnu.wildebeest.org (Postfix) with ESMTPSA id 46CB7302BB02; Wed, 19 Apr 2023 01:49:29 +0200 (CEST) Received: by csb.redhat.com (Postfix, from userid 10916) id 28154D0C44; Wed, 19 Apr 2023 01:49:29 +0200 (CEST) From: Mark Wielaard To: buildbot@sourceware.org Cc: Mark Wielaard Subject: [PATCH 1/2] Add gnupoke snapshot scheduler, factory and builder Date: Wed, 19 Apr 2023 01:49:26 +0200 Message-Id: <20230418234927.448194-1-mark@klomp.org> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3036.6 required=5.0 tests=BAYES_00,GIT_PATCH_0,JMQ_SPF_NEUTRAL,KAM_DMARC_STATUS,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Add texlive requirements to fedora-latest --- .../containers/Containerfile-fedora-latest | 5 ++ builder/master.cfg | 65 ++++++++++++++++++- 2 files changed, 68 insertions(+), 2 deletions(-) diff --git a/builder/containers/Containerfile-fedora-latest b/builder/containers/Containerfile-fedora-latest index 4fa217b..b87b111 100644 --- a/builder/containers/Containerfile-fedora-latest +++ b/builder/containers/Containerfile-fedora-latest @@ -18,6 +18,11 @@ RUN dnf upgrade -y && \ libxml2-devel dos2unix dpkg koji python3-devel python3-koji python3-mock \ python3-rpm python3-pyxdg mailcap openmpi-devel gdb help2man wget xxhash-devel \ black \ + texlive texlive-latex texlive-mdwtools texlive-ellipsis texlive-lineno \ + texlive-changebar texlive-palatino texlive-hyperref texlive-xcolor \ + texlive-changepage texlive-needspace texlive-geometry texlive-lineno \ + texlive-epstopdf texlive-amsmath texlive-float texlive-url \ + texlive-listings texlive-makeindex texlive-dvips ghostscript \ buildbot-worker && \ dnf clean all diff --git a/builder/master.cfg b/builder/master.cfg index b50b506..59869ea 100644 --- a/builder/master.cfg +++ b/builder/master.cfg @@ -479,6 +479,14 @@ annobin_gitpoller = changes.GitPoller(repourl=annobin_repourl, project='annobin') c['change_source'].append(annobin_gitpoller) +dwarfspec_repourl='https://git.dwarfstd.org/dwarf-spec/' +dwarfspec_gitpoller = changes.GitPoller(repourl=dwarfspec_repourl, + branches=['master'], + pollInterval=3*60, + pollRandomDelayMax=2*60, + project='dwarfspec') +c['change_source'].append(dwarfspec_gitpoller) + ####### SCHEDULERS @@ -1017,6 +1025,17 @@ annobin_scheduler = schedulers.SingleBranchScheduler( "annobin-fedora-s390x"]) c['schedulers'].append(annobin_scheduler) +dwarfspec_snapshot_scheduler = schedulers.Periodic( + name="dwarfspec-snapshots", + change_filter=util.ChangeFilter(project="dwarfspec", + branch="master"), + branch="master", + periodicBuildTimer=15*60, # 15 minutes in seconds + onlyIfChanged=True, + reason="dwarfspec periodic project master branch snapshot", + builderNames=["dwarfspec-snapshots-trunk"]) +c['schedulers'].append(dwarfspec_snapshot_scheduler) + ####### BUILDERS # The 'builders' list defines the Builders, which tell Buildbot how to perform a build: @@ -4453,6 +4472,41 @@ annobin_fedora_s390x_builder = util.BuilderConfig( factory=annobin_factory) c['builders'].append(annobin_fedora_s390x_builder) +dwarfspec_git_step = steps.Git( + repourl=dwarfspec_repourl, + mode='full', method='fresh', + name="git checkout", + getDescription={'tags':True, 'always':True}, + haltOnFailure=True) + +dwarfspec_make_step = steps.Compile( + command=['make', '-C', 'latexdoc'], + name='make latexdoc', + haltOnFailure=True) + +dwarfspec_create_output_step = steps.ShellCommand( + name="create output", + command="mkdir /home/builder/shared/output && mv dwarf6.pdf home/builder/shared/output/dwarf6-$(date -u +%Y%m%d-%H%M).pdf") +dwarfspec_create_publish_file_step = steps.ShellCommand( + name="create publish file", + command="echo dwarfstd/dwarf-spec > /home/builder/shared/publish") +dwarfspec_snapshots_trunk_factory = util.BuildFactory() +dwarfspec_snapshots_trunk_factory.addStep(dwarfspec_git_step) +dwarfspec_snapshots_trunk_factory.addStep(dwarfspec_make_step) +dwarfspec_snapshots_trunk_factory.addStep(wait_snapshots_output_ready_step) +dwarfspec_snapshots_trunk_factory.addStep(dwarfspec_create_output_step) +dwarfspec_snapshots_trunk_factory.addStep(dwarfspec_create_publish_file_step) + +dwarfspec_snapshots_trunk_builder = util.BuilderConfig( + name="dwarfspec-snapshots-trunk", + collapseRequests=True, + properties={'container-file': + readContainerFile('fedora-latest')}, + workernames="snapshots", + tags=["dwarfspec-snapshots", "trunk"], + factory=dwarfspec_snapshots_trunk_factory) +c['builders'].append(dwarfspec_snapshots_trunk_builder) + ####### BUILDBOT SERVICES # 'services' is a list of BuildbotService items like reporter targets. The @@ -4847,8 +4901,15 @@ wildebeestRevLink = util.RevlinkMatch( savannahRevLink = util.RevlinkMatch( repo_urls=[r'https://git.savannah.gnu.org/git/(.*).git'], revlink=r'https://git.savannah.gnu.org/cgit/\1.git/commit/?id=%s') - -reflinks = [sourcewareRevLink, gccRevLink, wildebeestRevLink, savannahRevLink] +dwarfstdRevLink = util.RevlinkMatch( + repo_urls=[r'https://git.dwarfstd.org/(.*)'], + revlink=r'https://git.dwarfstd.org/\1/commit/?id=%s') + +reflinks = [sourcewareRevLink, + gccRevLink, + wildebeestRevLink, + savannahRevLink, + dwarfstdRevLink] def revlinkmultiplexer(rev,repo): for revlink in reflinks: -- 2.31.1