public inbox for
 help / color / mirror / Atom feed
* GNU Toolchain Infrastructure at sourceware
@ 2022-05-30 22:01 Mark Wielaard
  2022-05-31 16:39 ` Frank Ch. Eigler
  2022-06-22  9:14 ` Roadmap update Mark Wielaard
  0 siblings, 2 replies; 7+ messages in thread
From: Mark Wielaard @ 2022-05-30 22:01 UTC (permalink / raw)
  To: overseers


Here is a quick overview of some of the GNU Toolchain Infrastructure
work around CI/CD and how to integrate that better with the email
based workflow used on sourceware. Nothing that hasn't been discussed
before, but it might be helpful to have it all in one place. And to
see if we are moving in the right direction.

It seems these services are fairly low on resource usage, at least
compared to other web, git, email and bugzilla services. But please
take a look in case there are any concerns about the sustainability or
scalability on the current hosting infrastructure. has been running for a couple of months
now. The buildbot process seems to have a low load on the machine. Low
single digit %CPU. The state database has grown to ~800MB, the
gitpoller-work dir is ~4GB (that is mainly gcc ~2G, libabigail ~750M
and binutils-gdb ~600M, others are < 200M).

We have native/VM workers for ppc64le, s390x, ppc64, i386, arm64 and
armhf for debian, fedora and centos (although not all combinations)
and x86_64 container builders for fedora, debian and opensuse. See for the current sponsors. There are a
couple of other people who have offered runners. So at the moment
there is enough room for expansion of the builders. If we need more,
or more powerful runners, I intend to ask the GCC Compile Farm
maintainers or the OSUOSL.

There are 80 builders on 14 workers, doing ~120 builds a day (more on
week days, less on weekends). With the just added new opensuse
container builders this will likely jump to ~150 a day. There are a
couple of full testsuite builders (for gcc and binutils-gdb), but most
builders are "quick" CI builders, which will sent email whenever a
regression is detected. It seems to catch and report a couple of
issues a week across all projects. There have been various flaky tests
but those seem to all have been disabled now.

Various builders upload their test results to the bunsendb so they can
be analysed. I am slightly worried about the long time these uploads
take. For example the upload of results from the elfutils builders
takes a significant amount of time (almost half) of the build (4 to 5
out of 10 to 12 minutes). Especially on the slower workers this can
cause them to get behind on the build queue. The bunsendb.git is
currently ~400MB and contains ~2000 results. It seems it compresses
fairly well and could maybe use a periodic repacking (making a local
clone reduces the size to ~260MB).

There is still a small TODO list for the buildbot:;a=blob;f=TODO
But maintenance is now minimal with the builders just running without
needing supervision. Discussions have moved to the mailinglist.

It is now up to the projects to provide testsuite (subsets, possibly
split by arch) that are stable and act when the buildbot reports a
regression. The bunsendb should be able to help with selecting
non-flaky tests.

One of the workers runs on sourceware itself. It is currently used to
reconfig the buildbot itself (meta!). But projects can also use it to
run tasks on specific commits or periodically. Tasks which are now
often done by a cron job or git hook. For example to update
documentation, websites, generate release tars or update bugzilla. The
advantage over cron jobs is that it can be done more immediately
and/or only when really needed based on specific commit files. The
advantage over git hooks is that they run in the builder context, not
in the context of the specific user that pushed a commit.

The current builder CI checks what has been committed on the main
branch of the projects. This makes sure that what is checked out is in
a good state and any pushed regressions are found early and often. Now
that most of these builders are green we can start watching user/try
branches. So when a user pushes to their try branch the same builder
CI checks are ran, so a project developer knows their proposed
patch(es) won't break the build or introduce regressions.

The above only helps developers that have commit access on sourceware,
but not others who sent in patches. For that we have plus the CICD trybot that DJ wrote To make this work better
and connect it to the buildbot we need to upgrade to the latest
patchwork (and update django).

The current trybot doesn't do authentication, this might not be OK for
all builders. So we want to either require checking for known GPG keys
on the patch emails or let a trusted developer set a flag in
patchwork. Once we have public-inbox setup we could also use b4 for DKIM
attestation for known/trusted hackers.

Some projects have already experimented with public-inbox. But we
don't have an instance running on sourceware itself yet. This would
resolve complaints of not very usable mailman archives.

And for people wanting a more forge like experience we are already
running a mirror of sourceware projects at sourcehut This allows a user on sourcehut to fork any
project, prepare their patches and submit a merge request through
email (without having to locally setup git send-email or smtp - the
patch emails are generated server side).

The sourcehut mirror is currently read-only. Sourcehut is designed
around email based workflows, fully Free Software, doesn't use
javascript and is much faster and resource constrained compared to
(proprietary) alternatives. The sourcehut beta will have groups
support. We can test a self-hosted instance then. The various
components are very modular so we can only use those parts we need.



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-07-22 16:48 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-30 22:01 GNU Toolchain Infrastructure at sourceware Mark Wielaard
2022-05-31 16:39 ` Frank Ch. Eigler
2022-05-31 21:50   ` Mark Wielaard
2022-05-31 22:12     ` Joseph Myers
2022-06-01 10:09       ` Mark Wielaard
2022-07-22 16:48   ` Mark Wielaard
2022-06-22  9:14 ` Roadmap update Mark Wielaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).