Test Analytics now automatically detects flaky tests

Flaky tests are automated tests that produce inconsistent or unreliable results, despite being run on the same code and environment. They cause frustration, decrease confidence in testing, and waste time while you investigate whether the failure is due to a genuine bug.

Test Analytics finds your flakes by surfacing when the same test is run multiple times on the same commit SHA with different results. The tests might run multiple times within a single build or across different builds. Either way, they are detected as flaky if they report both passed and failed results.

Results are available in the Test Analytics UI and via a new REST API endpoint.

Learn more about flaky test tracker and its API

image.png

Michelle

Pipeline tags

Pipeline tags make it easier to sort through and filter multiple pipelines. Tag names support both text and emojis. You can now tag your pipelines and use the search bar to find tags.

Screenshot 2023-03-10 at 2.02.17 pm.png

Tags are unique per pipeline, don't contain line breaks and are capped at 64 characters. You can have 5 tags per pipeline.

Tags can also be set through REST and GraphQL APIs.

To set the tags, go to Pipeline Settings > General > Tags

Oz

Usage breakdown: understand your usage by pipeline and test suite

Analyze your usage by pipeline or test suite, with the option to view monthly or daily breakdowns. Delve into previous billing periods, and conveniently export your data for offline analysis.

Learn more about usage breakdown

Screenshot 2023-03-24 at 10.11.01.png

James

Pipelines glossary added to the docs

We've added a glossary to highlight and explain the core concepts of pipelines.

pipelines-glossary.png

See Pipelines glossary to check it out. โœจ

Michael

New docs for using GitHub merge queues

Weโ€™ve added a guide to help you set up merge queues in your pipelines. Merge queues are a feature of GitHub to improve development velocity on busy branches. โœจ

Screenshot of GitHub merge queue docs

See Using GitHub merge queues to learn more. ๐Ÿ“š

Michael

Introducing: Themed Job Logs

Job logs now have the addition of light theme on build summaries โ€“ ensuring those that find lower contrast easy-to-read have an alternative option.

Job log showing both light and dark themes

Unblocking engineers - and your work โ€“ is the core theme of how we think of everything here at Buildkite, including usability. The new light theme was inspired by Ethan Schoonover's Solarized theme. Now, when you open a job log, youโ€™ll see a new โ€œThemeโ€ control โ€“ enabling you to switch between our current dark mode theme and the new light theme. Your preference will be saved for future views, with the option for you to switch views.

"Theme" button at the top of a job for switching job log themes

As always, we'd love your feedback. Drop into our Slack community, or send us an email: hello@buildkite.com ๐Ÿ‘‹

Kalo

Multiple GitHub Enterprise Servers support

Today weโ€™re introducing the ability to configure multiple GitHub Enterprise Servers.

Screenshot 2022-11-09 at 10.42.56 am.png

Some of our bigger teams with different requirements for source control have multiple GitHub Enterprise Server installations. Weโ€™ve only supported one per Buildkite organization โ€” until now. If youโ€™re on a compatible plan, you can now add as many different servers as you like from the repository providers page in your organization settings.

We love feedback! If you use this feature and love it, or it doesnโ€™t quite do what you need, drop into our Slack community, or send us an email: hello@buildkite.com ๐Ÿ‘‹

Samuel

Introducing: The Build Issues Tab

Failed builds now jump straight to a new Issues tab on the build page ๐Ÿ—‚

Build page with Issues tab highlighted showing an error annotation and failed job

Builds with hundreds of jobs can hide what really matters. Instead of scrolling through the noise, Issues shows you only the failed annotations and jobs in a build. This helps you get your code shipping faster. And the rest of your jobs are only a tab click away.

Check out the blog post to learn more about this change.

As always, we'd love your feedback. Drop into our Slack community, or say hi: hello@buildkite.com ๐Ÿ‘‹

Samuel

Build Retention

Update, Sep 2023: We are no longer offering per pipeline build retention. Forย more information on retention per plan, see check out the docs.

Today, we're introducing build retention controls for pipelines so you can automatically remove old builds โฐ๐Ÿงจ

Build retention configuration panel showing options including time period and number of builds to keep

You can now configure pipelines to keep builds for a certain period of time. There's also an option to always keep a minimum number of the latest builds, so you don't lose context on pipelines that don't move quite so fast. These are available today โ€” find any pipeline, then go to Settings, Builds, and look for the Build Retention section.

This change is currently optional, but we'll be announcing a broader rollout for build retention soon.

We'd love to hear from you if you find these controls useful, or if they don't quite fit your needs first. Drop into our Slack community, or send us an email: hello@buildkite.com ๐Ÿ‘‹

Samuel

New GraphQL API schema browser

We've released a new schema browser for our GraphQL API ๐ŸŽ‰

Screenshot of the schema browser showing the Agent object pm.png

You can now easily browse the entire structure of the API right there in the docs, without needing to log in first

Sam

Default timeouts for command steps

You can now specify default timeouts for command steps โฐ๐Ÿ’ฅ

Timeouts configuration pane showing default and maximum timeout fields

Timeouts can be specified on command steps already, but it's a pain to have to do it every time, and easy to forget. Setting default timeouts means you won't have command steps slip through the cracks and accidentally run forever, or consume too many job minutes.

Default and maximum timeouts can be specified at an organization and pipeline level. Defaults apply in order of specificity โ€”ย the step's timeout will be used if supplied, otherwise it defaults to the pipeline's default if supplied, or finally to the organization. Maximums are always enforced, when supplied โ€” the smallest value will be used.

These timeouts can be configured from your organization's Pipeline Settings page, or on a pipeline's Builds settings page.

We'd love to hear from you if you find these timeouts useful, or if they don't quite fit your needs first. Drop into our Slack community, or send us an email: hello@buildkite.com ๐Ÿ‘‹

Samuel

Beta: Failing builds fast

Today we're introducing a new "failing" build state for faster feedback ๐Ÿƒโ€โ™‚๏ธ๐Ÿ’จ

A build with a job which fails early and makes the build appear to be failing while the rest of the jobs runs

We know it's frustrating when your build fails. But when it does, you want that information as soon as possible so you can get it green.

Now, as soon as a single job fails, the build can be marked as "failing". You'll see a GitHub Commit Status, or a Slack notification โ€”ย whatever your team uses โ€”ย as soon as we know your build is going to fail. And on the dashboard your build will show as failing. If you're using annotations or Test Analytics then your build can also tell you what to do to fix the problem while it's still finishing.

But fast feedback is only half of the equation. There's nothing worse than a build which takes forever just to tell you it's broken. If you're in a big team running lots of builds, running the rest of a failing build might be a waste of time. So we're also introducing "cancel on build failing."

1
2
3
4
steps:
  - command: bundle && bin/rails spec
    parallelism: 100
    cancel_on_build_failing: true

Adding the cancel_on_build_failing: true attribute to your command steps will cause those jobs to be canceled as soon as a build becomes failing. That way your agents can move on to the next piece of work. But we'll still send failing notifications before cancelation is complete.

We realise that some folks might need to update API clients or adjust pipeline and workflows, so this new feature is being introduced as opt-in for a smooth migration path. But you can turn on failing builds right now by going to your pipeline on the Buildkite dashboard, then going to the Settings page, Builds, and enabling Fail Fast:

Fail Fast configuration panel with "Enable Fail Fast" button

You can also turn this on for your whole organization on your org's Pipeline Settings page.

The buttons will go away and the feature will be enabled for everybody on Monday, 5th September, 2022.

If this does exactly what you need, or you have a suggestion, we'd love to hear from you in our community Slack channel, or drop us an email to support@buildkite.com.

Samuel

New environment variable: Pull request draft

For customers triggering builds via GitHub, we've added a new environment variable to track the draft status of a pull request:

1
BUILDKITE_PULL_REQUEST_DRAFT="true"

If a pull request triggers a build while in a draft state, this variable will be present in all the build's command jobs. The variable will be absent otherwise.

This variable allows customizing your uploaded pipelines or running jobs at the agent level based on a pull request's draft status. For example, you might run a faster subset of your tests while a pull request is still in a draft state.

Check out our docs on environment variables for more information.

If you have any feedback, we'd love to hear from you in our community Slack channel, or drop us an email to support@buildkite.com.

Samuel

Buildkite Test Analytics: Identify, track, and fix problematic tests

We know how frustrating finding and fixing flaky tests can be. And how costly your test suite performance degradations can become over time. Weโ€™ve been working to solve these problems for good, with our newest product โ€” Buildkite Test Analytics.

As of today, Test Analytics is out of beta and available to everyone ๐ŸŽ‰

  • Automatically identify flaky tests, see what is causing the most disruption for your team, and get a head-start on fixing them for good.
  • Get deep visibility and tracing for your test suite, integrated with your programming language and test framework.
  • Set targets and identify problems as soon as they occur with configurable speed and reliability monitors.

Test Analytics is included in all Buildkite plans and is free to get started. You can even use it with any CI system, including GitHub Actions, CircleCI, and Jenkins โšก๏ธ

Read more on the website, in our documentation โ€” and if you're super excited, retweet!

Michelle

Build Matrix for Multi-step Pipelines

We've added Build Matrix so you can create multiple jobs from a single, multi-variant step definition. ๐Ÿงฎ

Build Matrices can also include multiple dimensions, different combinations with the adjustments key, and matrix jobs can be grouped together to clean up build pages. โšก๏ธ

Read more about it in the blog, documentation, or on Twitter.

Libby

Group steps with the `group` config option

We've added a new group pipeline step type so you can group steps together, set dependencies between them, reduce YAML repetition, and clean up your build pages ๐Ÿ—โœจ

You can read more about it in the blog post, documentation, or on Twitter.

Libby

Datadog CI Visibility Integration

For teams using Datadog, we've recently made it easier to send information about your Buildkite pipelines to Datadogโ€™s Continuous Integration Visibility. This is a simple integration that any organization using both Datadog and Buildkite can enable to get insights into their pipelineโ€™s performance over time. ๐Ÿ“ˆ

For more details on the integration check out the documentation ๐Ÿ“š

Libby

Elastic CI Stack for EC2 Mac

For teams that run Buildkite Pipelines and build Xcode based software projects for macOS, iOS, iPadOS, tvOS, and watchOS apps, you can now run your Buildkite Builds on AWS EC2 Mac instances using a CloudFormation template. ๐ŸŽ‰

This experimental template creates an Auto Scaling group, launch template, and host resource group to launch a pool of EC2 Mac instances that run the Buildkite Agent.

๐Ÿ“ฃ Big shoutout to Buildkite customer Oliver Koo for his early input into this feature ๐Ÿ™

๐Ÿ“š For details on how to prepare and deploy this template to your AWS Account, checkout the Auto Scaling EC2 Mac documentation, or jump straight into Elastic CI Stack for EC2 Mac.

Libby

Test Analytics private beta

Identify, track, and fix problematic tests with โœจTest Analyticsโœจ, now in private beta.

test-analytics_cover.png

๐Ÿ” Identify flaky tests: See which tests are most disruptive with automatic flaky test identification and analysis over time.

๐Ÿ‘€ Monitor speed & reliability: Get alerts when slow tests are introduced.

๐Ÿ“ˆ Deeply analyze performance: First-class framework integrations provide in-depth performance analysis, helping you find external dependency bottlenecks and more.

๐ŸŽ View real-time results: Watch your test suite run in real-time and get immediate performance insights.

Learn more and join our waitlist at https://buildkite.com/test-analytics.

Michelle

Job Priority Attribute for Pipeline Steps

For teams running a lot of jobs who want more control over what order their jobs run in, we've introduced the Job Priority attribute to specify its priority within its queue. ๐Ÿ™‹๐Ÿปโ€โ™€๏ธ

It's a new attribute defined on a step in the pipeline configuration that changes how the dispatcher assigns work to agents. The higher the value you set for priority, the sooner a job will be prioritised. ๐Ÿ”

Our recently released Eager Concurrency feature can also be used in conjunction with Job Priority.

Libby

Start turning complexity into an advantage

Create an account to get started with a 30-day free trial. No credit card required.

Buildkite Pipelines

Platform

  1. Pipelines
  2. Pipeline templates
  3. Public pipelines
  4. Test Engine
  5. Package Registries
  6. Mobile Delivery Cloud
  7. Pricing

Hosting options

  1. Self-hosted agents
  2. Mac hosted agents
  3. Linux hosted agents

Resources

  1. Docs
  2. Blog
  3. Changelog
  4. Webinars
  5. Plugins
  6. Case studies
  7. Events

Company

  1. About
  2. Careers
  3. Press
  4. Brand assets
  5. Contact

Solutions

  1. Replace Jenkins
  2. Workflows for AI/ML

Support

  1. System status
  2. Forum