zuul-website/www/blog/index.html

558 lines
30 KiB
HTML

<!DOCTYPE HTML>
<!--
Arcana by HTML5 UP
html5up.net | @ajlkn
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
-->
<html>
<head>
<title>Zuul Project Gating Blog</title>
<meta charset="utf-8" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/site.webmanifest">
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#071d49">
<meta name="msapplication-TileColor" content="#00aba9">
<meta name="theme-color" content="#ffffff">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<!--[if lte IE 8]><script src="../assets/js/ie/html5shiv.js"></script><![endif]-->
<link rel="stylesheet" href="../assets/css/main.css" />
<!--[if lte IE 8]><link rel="stylesheet" href="../assets/css/ie8.css" /><![endif]-->
<!--[if lte IE 9]><link rel="stylesheet" href="../assets/css/ie9.css" /><![endif]-->
</head>
<body>
<div id="page-wrapper">
<!-- Header -->
<div id="header">
<!-- Logo -->
<h1>
<a href="/"><img id="logo" src="../images/logo.svg" alt="Zuul"/></a>
</h1>
<!-- Nav -->
<nav id="nav">
<ul>
<li><a href="../index.html">Home</a></li>
<li><a href="../users.html">Users</a></li>
<li class="current"><a href=".">Blog</a></li>
<li>
<a href="../docs/">Documentation</a>
<ul>
<li><a href="../docs/zuul/">Zuul</a></li>
<li><a href="../docs/nodepool">Nodepool</a></li>
<li><a href="../docs/zuul-jobs">Zuul Jobs</a></li>
<li><a href="../docs/zuul-base-jobs">Base Jobs</a></li>
<li><a href="../docs/zuul-sphinx/">Zuul Sphinx</a></li>
<li><a href="../docs/zuul-client/">Zuul Client</a></li>
<li><a href="../docs/zuul-operator/">Zuul Operator</a></li>
<li><a href="../docs/faq.html">Zuul FAQ</a></li>
</ul>
</li>
<li><a href="../community.html">Community</a></li>
<li><a href="../get-started.html">Get Started</a></li>
</ul>
</nav>
</div>
<section class="wrapper style1">
<div class="container">
<div id="content">
<header class="major">
<h2>Zuul Blog</h2>
</header>
<article class="blog">
<h2>
<a id="20220607a">Zuul Celebrates 10th Anniversary</a>
</h2>
<h4>Authored by Clark Boylan, June 7, 2022</h4>
<p>
At the OpenInfra Summit this week, the Zuul community is celebrating
the 10th anniversary of the release of its open source continuous
integration (CI) project gating software designed to help developers
stop merging broken code. Volvo, BMW, and Workday are among the
organizations on hand to showcase the value of Zuul and share their
production use cases.
</p>
<img class="image right" src="../images/zuul-ten.png" alt="10 Years" />
<p>
Zuul, a project supported by the OpenInfra Foundation, uses project
gating to automate continuous integration, delivery and deployment of
interrelated software projects in a secure manner. Built for a world
where development, testing and deployment of applications and their
dependencies are one continuous process, Zuul delivers sophisticated
project gating across the entire enterprise, especially in scenarios
involving multiple repositories with integrated deliverables. Zuul
enables teams to rapidly develop fully tested software in parallel
and benefit from zero-downtime operation. Zuul 6.0 was released in
May.
</p>
<p>
"Having been involved with the project since its very beginning, I am
proud of how far Zuul has come in 10 years," said James Blair, the
original author of Zuul, current maintainer and founder of Acme
Gating. "After 10 years, Zuul continues to lead in the CI and CD
space. Having pioneered project gating, we went on to add
cross-project dependencies, shared CI and CD pipelines, speculative
container builds, and more. Thanks to an involved community of users
and contributors, Zuul is getting better by the day, making a real
difference in the lives of developers and improving the outcomes of
the organizations who are using it."
</p>
<p>
<strong>Volvo Cars Corporation</strong> will take center stage at
OpenInfra Summit this week to celebrate the 10th anniversary of Zuul.
During a Day Two keynote address, Johannes Foufas, senior principal
engineer at Volvo, will describe how Zuul features are used as the
first line of integration for all modules in the core computer of
Volvo automobiles. He'll also share how Volvo has significantly
expanded its use of Zuul over the past year to deliver increased
quality and faster integrations of all application code. He'll be
joined by Blair to talk about how their collaboration has enabled the
operational features they need to be shared upstream. Foufas will
also lead a separate general session to offer more in-depth details.
</p>
<p>
"It's an honor for Volvo Cars Corporation to help celebrate Zuul's
10th Anniversary by sharing our experiences with the OpenInfra
community," said Foufas. "Zuul is the default CI system for the code
in our cars. In our core computer platform at Volvo, we have hundreds
of modules that depend on each other, comprising repositories from
all around our company. With Zuul's built-in dependency management,
we went from a week of integration to 3.5 hours. We have not reached
our final goal, but we have made great progress and look forward to
sharing our experiences and improvements with the global Zuul
community as we progress."
</p>
<p>
BMW and Workday are also sharing their production use cases at the
three-day <a href="https://openinfra.dev/summit/">OpenInfra
Summit</a>:
<ul class="faq">
<li>
<strong>BMW</strong> will describe how Zuul continues to drive
innovation in the automotive industry, sharing why it has chosen
to operate Zuul and contribute to the Zuul community. This
session will include the turning points of BMW's journey in
scaling CI with Zuul, fueled by the development of Zuul v5.
</li>
<li>
<strong>Workday</strong> has built one of the largest
OpenStack-based private clouds in the world, hosting a workload
of over a million physical cores on over 16,000 compute nodes in
5 data centers for over ten years. Workday will share its new
architecture and deployment approach as well as lessons learned,
including how they migrated from Jenkins to
<strong>Zuul</strong>.
</li>
</ul>
</p>
<p>
In addition, Summit attendees have the opportunity to participate in
several hands-on workshops and forums designed to introduce new users
to the project and share best practices. <a href="#20220512a">Explore
Zuul sessions at the OpenInfra Summit</a>.
</p>
<h3>Zuul Users &amp; Contributors</h3>
<p>
Zuul became a pilot project of the OpenStack Foundation (now the
OpenInfra Foundation) in May 2018 and was confirmed as an OpenInfra
Project on April 28, 2019.
</p>
<p>
Zuul boasts a robust contributor base and user community. Current and
previous contributors include Acme Gating, Ampere, the Ansible
community, BMW, Cesnet, Cleura, Cloudbase solutions, FiberHome,
Garmin, GoDaddy, GoodMoney, Inspur, Just Eat, Leboncoin, Nokia,
OpenLab, OpenInfra Foundation, OVHcloud, Red Hat, SUSE, Troila,
Tungsten Fabric, VEXXHOST, Volvo, Wazo Platform and the Wikimedia
Foundation.
</p>
<p>
<a href="../users.html">Numerous case studies</a> have been published
highlighting how organizations like BMW, GoDaddy, Software Factory,
Packet Host, Leboncoin and even the OpenInfra Foundation run Zuul.
The 2021 OpenInfra Foundation User Survey indicated 69% of
respondents are running Zuul in production, 17% are evaluating Zuul
and 14% are considering using Zuul.
</p>
</article>
<article class="blog">
<h2>
<a id="20220512a">Meet the Zuul community in Berlin, June 7-9,
2022</a>
</h2>
<h4>Authored by Sunny Cai, May 12, 2022</h4>
<p>
<a href="https://openinfra.dev/summit/">OpenInfra Summit Berlin</a>
is around the corner, and in less than a month, the Zuul community
will join 30+ open source projects attending the Summit to
collaborate in the open. The community will also share the latest
upstream development, use cases and news in the Zuul project.
</p>
<p>
<a href="https://openinfrasummitberlin.eventbrite.com/?aff=Superuser"
>Register</a> for your Summit tickets before prices increase on May
16 at 11:59 PM PT to save on your ticket purchase.
</p>
<p>
Here we have compiled all the Zuul sessions that you can look forward
to at the Summit.
</p>
<h3>Tuesday, June 7</h3>
<h4><a href="https://openinfra.dev/summit-schedule#title=Volvo%20and%20Zuul%20CI&abstract=zuul&view=calendar">Volvo and Zuul CI</a></h4>
<blockquote><strong>Speaker:</strong>
<ul class="faq"><li>Johannes Foufas, Sr Principal Engineer at Volvo Cars Corporation</li></ul>
Zuul is now the default CI chain at Volvo Cars Corporation, and last
year's expansion has been extensive. Johannes will present last
year's progress with Zuul CI and how Zuul features are used as the
first line of integration for all modules in the core computer.
</blockquote>
<h4><a href="https://openinfra.dev/summit-schedule#title=Getting%20Started%20with%20Zuul&view=calendar">Getting Started with Zuul</a></h4>
<blockquote><strong>Speaker:</strong>
<ul class="faq"><li>James Blair, Founder at Acme Gating</li></ul>
Join James Blair, the original author of Zuul and one of the current
project maintainers for this interactive training session focusing on
getting started with Zuul.
</blockquote>
<h3>Wednesday, June 8</h3>
<h4><a href="https://openinfra.dev/summit-schedule#title=Advanced%20Zuul%20Features%20as%20used%20by%20OpenDev&view=calendar">Advanced Zuul Features as used by OpenDev</a></h4>
<blockquote><strong>Speaker:</strong>
<ul class="faq"><li>Clark Boylan, Infrastructure Engineer at the OpenInfra Foundation</li></ul>
Learn how to employ Zuul for real world production deployment
management.
</blockquote>
<h4><a href="https://openinfra.dev/summit-schedule#title=Project%20Gating%20with%20Zuul&view=calendar">Project Gating with Zuul</a></h4>
<blockquote><strong>Speaker:</strong>
<ul class="faq"><li>James Blair, Founder at Acme Gating</li></ul>
James Blair will share what makes Zuul unique, the latest
improvements in Zuul, and how it can be used in the enterprise to
stop merging broken code.
</blockquote>
<h4><a href="https://openinfra.dev/summit-schedule#title=No%20gain%20without%20pain%20-%20a%20story%20of%20scaling%20CI%20with%20Zuul&view=calendar">No gain without pain - a story of scaling CI with Zuul</a></h4>
<blockquote><strong>Speakers:</strong>
<ul class="faq">
<li>Thomas Zink, PO in CICD DevOps at BMW Group</li>
<li>Simon Westphahl, Software Engineer at BMW Group</li>
</ul>
The speakers will share some turning points of their journey in
scaling CI with Zuul, especially lately with the Zuul V5 development,
and why they chose Zuul and keep contributing to the Zuul development
&amp; community.
</blockquote>
<h4><a href="https://openinfra.dev/summit-schedule#title=Building%20Workday's%20Next%20Generation%20Private%20Cloud%20with%20Zuul&view=calendar">Building Workday's Next Generation Private Cloud with Zuul</a></h4>
<blockquote><strong>Speakers:</strong>
<ul class="faq">
<li>Jan Gutter, Senior Software Development Engineer at Workday</li>
<li>Simon McGuinness, Software Development Engineer at Workday</li>
</ul>
The Workday Private Cloud teams manage more than a million cores. In
late 2020, they started building their next generation software and
they chose Zuul to run the CI for it. They'll take you through the
lessons we learned and pitfalls to avoid in bootstrapping a CI from
scratch.
</blockquote>
<h3>Thursday, June 9</h3>
<h4><a href="https://openinfra.dev/summit-schedule#title=Workday's%20Next%20Generation%20Private%20Cloud&view=calendar">Workday's Next Generation Private Cloud</a></h4>
<blockquote><strong>Speakers:</strong>
<ul class="faq">
<li>Howard Abrams, Senior Cloud Engineer at Workday</li>
<li>Jan Gutter, Senior Software Development Engineer at Workday</li>
</ul>
Workday has built one of the largest OpenStack-based private clouds
in the world, hosting a workload of over a million physical cores on
over 16,000 compute nodes in 5 data centers for over ten years. Hear
how they converted CI/CD in Jenkins to Zuul
</blockquote>
<p>
Also congrats to Volvo Cars Corporation for <a
href="https://superuser.openstack.org/articles/2022-superuser-awards-nominee-volvo/"
>being nominated as one of the candidates</a> for the 2022 Superuser
Award! Volvo Cars corporation uses Zuul as their default CI system
when it comes to the code in the car. Join the OpenInfra Summit
Keynotes on June 8th to find out who wins this year's Superuser
Award!
</p>
<p>
Check out the <a href="https://openinfra.dev/summit-schedule">Summit
schedule</a> for 100+ more sessions that you can attend, and <a
href="https://www.eventbrite.com/e/openinfra-summit-berlin-2022-tickets-211374997307?aff=Superuser"
>register</a> before prices increase on May 16 at 11:59 PM PT to save
on your ticket purchase.
</p>
</article>
<article class="blog">
<h2>
<a id="20200207a">Introducing Zuul for improved CI/CD</a>
</h2>
<h3>
A quick history of how and why Zuul is replacing Jenkins in CI
testing in the OpenStack community.
</h3>
<h4>Authored by Jeremy Stanley, February 7, 2020</h4>
<h5>
(This article originally ran <a
href="https://opensource.com/article/20/2/zuul">on opensource.com</a>
and is reprinted here with permission of the author under the <a
href="http://creativecommons.org/licenses/by-sa/4.0/">Creative
Commons Attribution-Share Alike 4.0 International License</a>.)
</h5>
<p>
<a href="https://jenkins.io/">Jenkins</a> is a marvelous piece of
software. As an execution and automation engine, it's one of the best
you're going to find. Jenkins serves as a key component in countless
continuous integration (CI) systems, and this is a testament to the
value of what its community has built over the years. But that's what
it is&mdash;a component. Jenkins is not a CI system itself; it just
runs things for you. It does that really well and has a variety of
built-ins and a vibrant ecosystem of plugins to help you tell it what
to run, when, and where.
</p>
<p>
CI is, at the most fundamental level, about integrating the work of
multiple software development streams into a coherent whole with as
much frequency and as little friction as possible. Jenkins, on its
own, doesn't know about your source code or how to merge it together,
nor does it know how to give constructive feedback to you and your
colleagues. You can, of course, glue it together with other software
that can perform these activities, and this is how many CI systems
incorporate Jenkins.
</p>
<p>
It's what we did for OpenStack, too, at least at first.
</p>
<h3>If it's not tested, it's broken</h3>
<p>
In 2010, an open source community of projects called <a
href="https://www.openstack.org/">OpenStack</a> was forming. Some of
the developers brought in to assist with the collaboration
infrastructure also worked on a free database project called <a
href="https://en.wikipedia.org/wiki/Drizzle_(database_server)"
>Drizzle</a>, and a key philosophy within that community was the idea
"if it's not tested, it's broken." So OpenStack, on day one, required
all proposed changes of its software to be reviewed and tested for
regressions before they could be approved to merge into the trunk of
any source code repositories. To do this, Hudson (which later forked
to form the Jenkins project) was configured to run tests exercising
every change.
</p>
<p>
A plugin was installed to interface with the <a
href="https://www.gerritcodereview.com/">Gerrit</a> code review
system, automatically triggering jobs when new changes were proposed
and reporting back with review comments indicating whether they
succeeded or failed. This may sound rudimentary by today's standards,
but at the time, it was a revolutionary advancement for an open
source collaboration. No developer on OpenStack was special in the
eyes of CI, and everyone's changes had to pass this growing battery
of tests before they could merge&mdash;a concept the project called
"project gating."
</p>
<p>
There was, however, an emerging flaw with this gating idea: To
guarantee two unrelated changes didn't alter a piece of software in
functionally incompatible ways, they had to be tested one at a time
in sequence before they could merge. OpenStack was complicated to
install and test, even back then, and quickly grew in popularity. The
rising volume of developer contributions coupled with increasing test
coverage meant that, during busy periods, there was simply not enough
time to test every change that passed review. Some longer-running
jobs took nearly an hour to complete, so the upper bound for what
could get through the gate was roughly two dozen changes in a day.
The resulting merge backlog showed a new solution was required.
</p>
<h3>Enter Zuul</h3>
<p>
During an OpenStack CI meeting in May 2012, one of the CI team
members, James Blair, <a
href="http://eavesdrop.openstack.org/irclogs/%23openstack-meeting/%23openstack-meeting.2012-05-22.log.html#t2012-05-22T19:42:27"
>announced</a> that he'd "been working on speculative execution of
Jenkins jobs." <strong>Speculative execution</strong> is an
optimization most commonly found in the pipelines of modern
microprocessors. Much like the analogy with processor hardware, the
theory was that by optimistically predicting positive gating results
for changes recently approved but that had not yet completed their
tests, subsequently approved changes could be tested concurrently and
then conditionally merged as long as their predecessors also passed
tests and merged. James said he had a name for this intelligent
scheduler: <a href="https://zuul-ci.org/">Zuul</a>.
</p>
<p>
Within this time frame, challenges from trying to perform better
revision control for Jenkins' XML job configuration led to the
creation of the human-readable YAML-based <a
href="https://jenkins-job-builder.readthedocs.io/">Jenkins Job
Builder</a> templating engine. Limited success with the JClouds
plugin for Jenkins and cumbersome attempts to use jobs for refreshing
cloud images of single-use Jenkins slaves ended with the creation of
the <a href="https://zuul-ci.org/docs/nodepool/">Nodepool</a>
service. Limited log-storage capabilities resulted in the team adding
separate external solutions for organizing, serving, and indexing job
logs and assuming maintainership of an abandoned secure copy protocol
(SCP) plugin replacing the less-secure FTP option that Jenkins
provided out of the box. The OpenStack infrastructure team was slowly
building a fleet of services and utilities around Jenkins but began
to bump up against a performance limitation.
</p>
<h3>Multiplying Jenkins</h3>
<p>
By mid-2013, Nodepool was constantly recycling as many as 100 virtual
machines registered with Jenkins as slaves, but this was no longer
enough to keep up with the growing workload. Thread contention for
global locks in Jenkins thwarted all attempts to push past this
threshold, no matter how much processor power and memory was thrown
at the master server. The project had offers to donate additional
capacity for Jenkins slaves to help relieve the frequent job backlog,
but this would require an additional Jenkins master. The efficient
division of work between multiple masters needed a new channel of
communication for dispatch and coordination of jobs. Zuul's
maintainers identified the <a href="http://gearman.org/">Gearman</a>
job server protocol as an ideal fit, so they outfitted Zuul with a
new <a
href="https://docs.opendev.org/opendev/gear/#server-example"
>geard</a> service and extended Jenkins with a custom Gearman client
plugin.
</p>
<p>
Now that jobs were spread across a growing assembly of Jenkins
masters, there was no longer any single dashboard with a complete
view of job activity and results. In order to facilitate this new
multi-master world, Zuul grew its own status API and WebUI, as well
as a feature to emit metrics through the <a
href="https://github.com/statsd/statsd">StatsD</a> protocol. Over the
next few years, Zuul steadily subsumed more of the CI features its
users relied on, while Jenkins' place in the system waned
accordingly, and it was becoming a liability. OpenStack made an early
choice to standardize on the Python programming language; this was
reflected in Zuul's development, yet Jenkins and its plugins were
implemented in Java. Zuul's configuration was maintained in the same
YAML serialization format that OpenStack used to template its own
Jenkins jobs, while Jenkins kept everything in baroque XML. These
differences complicated ongoing maintenance and led to an
unnecessarily steep learning curve for new administrators from
related communities that had started trying to run Zuuls.
</p>
<p>
The time was right for another revolution.
</p>
<h3>The rise of Ansible</h3>
<p>
In early 2016, Zuul's maintainers embarked on an ambitious year-long
overhaul of their growing fleet of services with the goal of
eliminating Jenkins from the overall system design. By this time,
Jenkins was serving only as a conduit for running jobs consisting
mostly of shell scripts on slave nodes over SSH, providing real-time
streaming of job output and copying resulting artifacts to
longer-term storage. <a href="https://www.ansible.com/">Ansible</a>
was found to be a great fit for that first need; purpose-built to run
commands remotely over SSH, it was written in Python, just like Zuul,
and also used YAML to define its tasks. It even had built-in modules
for features the team had previously implemented as bespoke Jenkins
plugins. Ansible provided true multi-node support right out of the
box, so the same playbooks could be used for both simulating and
performing complex production deployments. An ever-expanding
ecosystem of third-party modules filled in any gaps, in much the same
way as the Jenkins community's plugins had before.
</p>
<p>
A new Zuul executor service filled the prior role of the Jenkins
master: it acted on pending requests in the scheduler's geard,
dispatched them via Ansible to ephemeral servers managed by Nodepool,
then collected results and artifacts for publication. It also exposed
in-progress build output over the classic <a
href="https://tools.ietf.org/html/rfc742">RFC 742 Name/Finger
protocol</a>, streamed in real time from an extension of Ansible's
command output module. Once it was no longer necessary to limit jobs
to what Jenkins' parser could comprehend, Zuul was free to grow new
features like distributed in-repository job definitions, shareable
between projects with inheritance and secure handling of secrets, as
well as the ability to test-drive proposed changes for the jobs
themselves. Jenkins served its purpose admirably, but at least for
Zuul, its usefulness was finally at an end.
</p>
<h3>Testing the future</h3>
<p>
Zuul's community likes to say that it "tests the future" through its
novel application of speculative execution. Gone are the harrowing
days of wondering whether the improvement you want to make to an
existing job will render it non-functional once it's applied in
production. Overloaded review teams for a massive central job
repository are a thing of the past. Jobs are treated as a part of the
software and shipped right alongside the rest of the source code,
taking advantage of Zuul's other features like cross-repository
dependencies so that your change to part of a job in one project can
be exercised with a proposed job change in another project. It will
even comment on your job changes, highlighting specific lines with
syntax problems as if it were another code reviewer giving you
advice.
</p>
<p>
These were features Zuul only dreamed of before, but which required
freedom from Jenkins so that it could take job parsing into its own
hands. This is the future of CI, and Zuul's users are living it.
</p>
<p>
As of early 2019, the OpenStack Foundation recognized Zuul as an
independent, openly governed project with its own identity and
flourishing community. If you're into open source CI, consider taking
a look. Development on the next evolution of Zuul is always underway,
and you're welcome to help. Find out more on <a
href="https://zuul-ci.org/">Zuul's website</a>.
</p>
</article>
</div>
</div>
</section>
<!-- Footer -->
<div id="footer">
<div class="container">
<div class="row">
<section class="3u 6u(narrower) 12u$(mobilep)">
<h3>Get Zuul</h3>
<ul class="links">
<li><a href="https://opendev.org/zuul/zuul/">Source</a></li>
<li><a href="https://pypi.org/project/zuul/">Install</a></li>
<li><a href="https://zuul-ci.org/docs/">Documentation</a></li>
<li><a href="https://zuul-ci.org/docs/faq.html">FAQ</a></li>
</ul>
</section>
<section class="3u 6u$(narrower) 12u$(mobilep)">
<h3>Get Involved</h3>
<ul class="links">
<li><a href="http://lists.zuul-ci.org/cgi-bin/mailman/listinfo">Mailing lists</a></li>
<li><a href="https://matrix.to/#/#zuul:opendev.org">Matrix Chat</a></li>
<li><a href="https://storyboard.openstack.org/#!/project/679">Bugs</a></li>
<li><a href="https://review.opendev.org/#/q/status:open+project:zuul/zuul">Code Review</a></li>
</ul>
</section>
</div>
</div>
<!-- Copyright -->
<div class="copyright">
<ul class="menu">
<li>&copy; Zuul Contributors. Licensed under Creative Commons Attribution 3.0</li><li>Zuul is collaboratively developed under the Apache 2 license and managed by the Open Infrastructure Foundation.</li><li>Design based on Arcana from: <a href="https://htmlup.net">HTML5 UP</a></li><li><a href="https://opendev.org/zuul/zuul-website/">Browse page source</a></li>
</ul>
</div>
</div>
</div>
<!-- Scripts -->
<script src="../assets/js/jquery.min.js"></script>
<script src="../assets/js/jquery.dropotron.min.js"></script>
<script src="../assets/js/skel.min.js"></script>
<script src="../assets/js/util.js"></script>
<!--[if lte IE 8]><script src="../assets/js/ie/respond.min.js"></script><![endif]-->
<script src="../assets/js/main.js"></script>
</body>
</html>