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 1923A3858D29; Fri, 24 May 2024 23:17:33 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 1923A3858D29 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=klomp.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=klomp.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 1923A3858D29 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=45.83.234.184 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1716592655; cv=none; b=QBvi9PRStH5lYg4Q0UDxTEj9ekBDKYrRTCHtb1QrX5JiMtOwXb69guquBgWowfE7Wx8xA7iDt39FT3zqQG4Tc6yCGjLdq2H/QsB+oSTx//Y7jUjgQyUsvvi+JP8DJR3yHLCvxDLpo7Yh1IdufWmXI+qPkApBk0MPQzwaq36HfgM= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1716592655; c=relaxed/simple; bh=Stc2aE8xFKm2DTBqPnDYHc8rZhPC79aAs/dKFHp7RWE=; h=Date:From:To:Subject:Message-ID:MIME-Version; b=SirP+0MG41SD4NINW8ba1sosw/pspVIQJjJk6RAb/GhnKz7+bDlzV0gH6EuxR3KZKqL8g8gtBFRpNwgmxi3x+oNgkJvxc/1nEE2OI9YuJr47su3z+gBztkf3LGaOcdu2zLYi+bgfMoujCONx7Tkd4iV+bzycpwJg74OPBMgnWFE= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by gnu.wildebeest.org (Postfix, from userid 1000) id 1AF0130003AE; Sat, 25 May 2024 01:17:32 +0200 (CEST) Date: Sat, 25 May 2024 01:17:32 +0200 From: Mark Wielaard To: Joel Brobecker Cc: "Frank Ch. Eigler" , gdb@sourceware.org, buildbot@sourceware.org Subject: Re: value of gdbadmin effort to create gdb daily/weekly source tarballs Message-ID: <20240524231732.GL13045@gnu.wildebeest.org> References: <20240415143428.GA24230@redhat.com> <20240415181447.GX1292@gnu.wildebeest.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="xHFwDpU9dbj6ez1V" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-Status: No, score=-8.8 required=5.0 tests=BAYES_00,GIT_PATCH_0,JMQ_SPF_NEUTRAL,KAM_DMARC_STATUS,SPF_HELO_NONE,SPF_PASS,TXREP 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: --xHFwDpU9dbj6ez1V Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi Joel, On Mon, Apr 15, 2024 at 11:26:21AM -0700, Joel Brobecker wrote: > > Other projects like glibc, valgrind, libabigail, etc. have moved their > > snapshots builds to http://snapshots.sourceware.org/ which creates a > > https? Yes, sorry. http will always redirect to the https site. > > snapshot build and creates documentation from current git. This makes > > sure the release processes/scripts keep working. And it has caught > > release issues early (which often don't occur during a normal > > developer build). Since this is part of the normal > > builder.sourceware.org infrastructure it also provides better > > visibility. > > FWIW, that would definitely work for me. I do not have the time > to work on that, though :-(. I added snapshots for trunk based on the binutils snapshots using src-release.sh. Which is what ss/make-snapshot ultimately calls. The snapshots can be found at: https://snapshots.sourceware.org/gdb/trunk/ It gets regenerated every 15 minutes, if there have been any changes since the last build. The latest can always be found here: https://snapshots.sourceware.org/gdb/trunk/latest/src/ It doesn't generate snapshots for the branches yet. I think we don't really need the diffs. We have to see if we can also do the ari and docs updates on snapshots.sourceware.org. Cheers, Mark --xHFwDpU9dbj6ez1V Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="0001-Add-gdb-snapshots-builder.patch" >From 5520d4377b37890d8866910503ded940b54da054 Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Sat, 25 May 2024 00:35:59 +0200 Subject: [PATCH] Add gdb-snapshots builder --- builder/master.cfg | 47 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/builder/master.cfg b/builder/master.cfg index db82c8b4122f..cbf9e30fd055 100644 --- a/builder/master.cfg +++ b/builder/master.cfg @@ -1038,6 +1038,19 @@ gdb_try_scheduler = schedulers.AnyBranchScheduler( "gdb-try-fedora-ppc64le"]) c['schedulers'].append(gdb_try_scheduler) +gdb_snapshot_scheduler = schedulers.Periodic( + name="gdb-snapshots", + change_filter=util.ChangeFilter(project="binutils-gdb", + branch="master"), + branch="master", + periodicBuildTimer=15*60, # 15 minutes in seconds + onlyIfChanged=True, + fileIsImportant=gdbImportant, + onlyImportant=True, + reason="gdb periodic project master branch snapshot", + builderNames=["gdb-snapshots"]) +c['schedulers'].append(gdb_snapshot_scheduler) + # A scheduler for everything binutils-gdb & gcc without filters binutils_gdb_scheduler = schedulers.SingleBranchScheduler( name="binutils-gdb", @@ -3210,6 +3223,23 @@ def make_gdb_check_step(runtestflags = None): haltOnFailure=False, flunkOnFailure=True) return step +gdb_step_setversion = steps.ShellCommand( + workdir='binutils-gdb', + name="set gdb version", + command='sed -i -e "s/DATE/$(date -u +%Y%m%d)/;s/git/$(git rev-parse --short @)/" gdb/version.in') +gdb_step_src_release = steps.ShellCommand( + workdir='binutils-gdb', + name="src-release", + command="./src-release.sh -g gdb") +gdb_create_output_step = steps.ShellCommand( + workdir='binutils-gdb', + name="create output", + command="mkdir -p /home/builder/shared/output/src &&" + + "mv ./gdb-*tar.gz /home/builder/shared/output/src") +gdb_create_publish_file_step = steps.ShellCommand( + name="create publish file", + command="echo gdb/trunk > /home/builder/shared/publish") + gdb_factory = util.BuildFactory() gdb_factory.addStep(gdb_git_step) gdb_factory.addStep(gdb_rm_step) @@ -3327,6 +3357,13 @@ gdb_factory_sanitize.addSteps(bunsen_logfile_upload_cpio_steps( tagsuffix='/extended-gdbserver')) gdb_factory_sanitize.addStep(gdb_rm_step) +gdb_factory_snapshot = util.BuildFactory() +gdb_factory_snapshot.addStep(gdb_git_step) +gdb_factory_snapshot.addStep(gdb_step_setversion) +gdb_factory_snapshot.addStep(gdb_step_src_release) +gdb_factory_snapshot.addStep(wait_snapshots_output_ready_step) +gdb_factory_snapshot.addStep(gdb_create_output_step) +gdb_factory_snapshot.addStep(gdb_create_publish_file_step) gdb_alma_x86_64_builder = util.BuilderConfig( name="gdb-alma-x86_64", @@ -3534,6 +3571,16 @@ gdb_ubuntu_riscv_builder = util.BuilderConfig( factory=gdb_factory) c['builders'].append(gdb_ubuntu_riscv_builder) +gdb_snapshots_builder = util.BuilderConfig( + name="gdb-snapshots", + collapseRequests=True, + properties={'container-file': + readContainerFile('debian-stable')}, + workernames="snapshots", + tags=["gdb-snapshots"], + factory=gdb_factory_snapshot) +c['builders'].append(gdb_snapshots_builder) + # binutils-gdb build steps, factory and builders # just a native build -- 2.45.1 --xHFwDpU9dbj6ez1V--