惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
The GitHub Blog
The GitHub Blog
J
Java Code Geeks
Engineering at Meta
Engineering at Meta
N
Netflix TechBlog - Medium
A
About on SuperTechFans
博客园 - 三生石上(FineUI控件)
罗磊的独立博客
MongoDB | Blog
MongoDB | Blog
B
Blog RSS Feed
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
有赞技术团队
有赞技术团队
T
Tailwind CSS Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
Vercel News
Vercel News
腾讯CDC
博客园 - 聂微东
The Cloudflare Blog
F
Fortinet All Blogs
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
V
Visual Studio Blog
Last Week in AI
Last Week in AI
B
Blog

Datadog | The Monitor blog

Introducing our open source AI-native SAST Instrument and monitor Boomi integration flows with OpenTelemetry and Datadog Not all index scans are equal: How we cut query latency by over 99% Platform engineering metrics: What to measure and what to ignore Integrate Recorded Future threat intelligence with Datadog Cloud SIEM CI/CD security: threat modeling using a MITRE-style threat matrix CI/CD security: How to secure your GitHub ecosystem Ingress NGINX is EOL: A practical guide for migrating to Kubernetes Gateway API Operating agentic AI with Amazon Bedrock AgentCore and Datadog LLM Observability: Lessons from NTT DATA Introducing the Datadog Code Security MCP Capture and analyze custom heatmaps in Session Replay Understand session replays faster with AI summaries and smart chapters Monitor ClickHouse query performance with Datadog Database Monitoring How we designed empathetic alert sounds for on-call engineers Search and act across Datadog to resolve issues faster with Bits Assistant Measure the business impact of every product change with Datadog Experiments Analyzing round trip query latency Configuring JavaScript caches for better performance Introducing Bits AI Dev Agent for Code Security Datadog achieves ISO 42001 certification for responsible AI Monitor Nutanix clusters, hosts, and VMs with Datadog Monitor Juniper Mist in Datadog A new Host Map for modern infrastructure Annotate traces to improve LLM quality with Datadog LLM Observability What’s new in Cloud SIEM: AI-powered investigations, enhanced threat intelligence, and scalable security operations Explore Kubernetes with native OpenTelemetry data Monitor Oracle Fusion Cloud Applications with Datadog Announcing the Datadog Terraform provider v4.0.0 Scaling Kubernetes workloads on custom metrics How to design cloud environments for AI-powered threat analysis
Streamline your CI testing with Datadog Test Impact Analysis
Bowen Chen · 2022-10-19 · via Datadog | The Monitor blog
Bowen Chen

Bowen Chen

Modern continuous integration (CI) practices enable development teams to quickly and efficiently build and deploy application code to a shared codebase. However, deploying new code is typically accompanied by tests, and as the codebase expands, this results in a proportionately larger test suite. When an entire test suite needs to run in order to validate each small code change, testing can feel more like a chore rather than an integral part of the development process, creating a cumbersome feedback cycle for developers.

Datadog Testing Visibility gives you deep insights into each commit and automatically detects flaky tests that are compromising your build. Now, we’re excited to announce Datadog Test Impact Analysis (formerly known as Intelligent Test Runner), a new feature for CI Visibility that helps you accelerate the testing process by identifying and running only the relevant tests for each commit. By enabling Test Impact Analysis for your test services, you can reduce both testing time and resources required, and minimize the risk of broken pipelines caused by irrelevant flaky tests.

In this post we’ll cover how to:

  • Create faster testing feedback cycles with intelligent test selection

  • Visualize resource savings with our out-of-the-box dashboard

Create faster feedback cycles with intelligent test selection

Large codebases typically require a proportionately large test suite, which equates to lengthy testing times for each code change regardless of how big or small the change is. This can create a slow feedback cycle for developers, who spend valuable development time waiting since they usually need to monitor testing until the pipeline is complete.

Datadog Test Impact Analysis automatically selects and runs only the relevant tests needed to validate any given commit, enabling you to reduce the amount of time spent testing while maintaining test coverage. Test Impact Analysis analyzes your test suite to determine the code each test covers, and then cross-references that coverage with the files impacted by a new code change. Datadog uses this information to run a selection of relevant, impacted tests, omitting the ones unaffected by the code change and reducing the overall testing duration.

By simply selecting the test services you’d like to enable Test Impact Analysis for in the CI Test Service Settings, Datadog will apply intelligent test selection to that service’s commits. You can also choose which branches you’d like to exclude from Test Impact Analysis within a test service. Running every test on your default branch is still recommended as a failsafe practice—as a part of this recommendation, your default branch is preset to be excluded from Test Impact Analysis, however, you can still configure it to be included.

Enable Test Impact Analysis for your test services.

Minimize disruptions due to flaky tests

By minimizing the number of tests run per commit, Datadog Test Impact Analysis can help reduce the frequency of flaky tests disrupting your pipelines. Flaky tests are tests that may pass or fail at random given the same commit. This can be particularly frustrating when the test flaking is unrelated to the code change being tested. After enabling Test Impact Analysis for your test services, you can limit each commit to its relevant tests to ensure that flaky tests unrelated to your code change don’t end up arbitrarily breaking your build. By monitoring your commits, Datadog CI Visibility will automatically identify any flaky tests affecting your CI/CD workflow.

Automatically detect flaky tests with Datadog CI Visibility

Get visibility into resource savings and slow tests

Datadog measures your Test Impact Analysis performance against baseline testing times to calculate the time saved from unnecessary testing. This enables developers to more frequently integrate new application code by reducing the time spent testing. Once you enable Test Impact Analysis for your test services, you can begin visualizing these resource savings in our out-of-the-box dashboard. The dashboard breaks down the time saved across your services, repositories, commits, and authors so you can better understand where Test Impact Analysis is the most effective.

Visualize your test savings in the dashboard.

You can also view your time saved with Test Impact Analysis against your testing time within the Tests View page or within a test session’s details.

View the time saved by inspecting any test session with Test Impact Analysis enabled.

Since branches with Test Impact Analysis enabled will only run relevant tests, it can greatly reduce the total number of tests run per commit. By drilling down into a specific commit with Test Impact Analysis enabled, you gain a concentrated view into the tests impacted by your code change, enabling you to more quickly surface a relevant failed or slow test affecting your build.

Drill into slow and flaky tests with Datadog.

Start accelerating your software delivery process today

Using Datadog Test Impact Analysis, you can begin to create faster developer feedback cycles and reduce the risk of your pipelines failing due to unrelated flaking tests. Since Test Impact Analysis is built into Datadog CI Visibility, you can reap its time-saving benefits while monitoring your pipelines and tests from the same platform. This feature is now generally available to all Datadog customers—you can learn more in our documentation. For more information about troubleshooting your pipelines and tests with CI Visibility, check out our blog post.

If you aren’t already a Datadog customer, you can sign for up for free 14-day trial to begin monitoring your application today.