Search and Manage CI Tests and Pipelines
The Tests page is useful for developers who want to keep an eye on their test results.
You can access low-level and immediate insights:
- See what tests are failing and why.
- See your last commit’s test results.
- View the wall time of your tests in your feature branch and compare it to the default branch, to identify if you’re about to introduce a performance regression.
- Find out if your commit introduces a new flaky test that wasn’t flaky before, indicating that your code change is what’s making it flaky. This gives you the opportunity to fix the problem before proceeding rather than contributing to the number of flaky tests in your CI.
You can also access high-level accumulation and trends:
- See the effects that changed code, added tests, and increased complexity have on your test suite performance over time.
- See which tests have become slower over time and identify the commit that introduced the regression.
- Take advantage of Datadog’s automatic test flakiness detection and tracking, which shows you which tests are becoming more or less unreliable over time.
The Pipelines page is useful for developers who want to keep an eye on the build pipeline for their service.
This page answers the following questions:
- Is the pipeline for your service succeeding, especially on the default branch?
- If not, what’s the root cause?
You can access high-level accumulation and trends, including:
- An overview of the health of the whole build system, with aggregated stats for pipeline runs and branches.
- A window to quickly spotting and fixing immediate, urgent issues like broken pipelines to production.
- How each pipeline has run, over time, and with what results and trends.
- The breakdown of where time is spent in each build stage, over time, so you can focus your improvement efforts where it makes the biggest difference.
Search for tests
To see your tests, navigate to CI > Tests and select between the Branches or Default Branches view.
The Branches view of the Tests page lists all branches from all test services that have reported test results. This tab is useful for individual developers to quickly see the status of tests that run on their code branches and troubleshoot test failures.
In this page, you can filter the list by name, test service, or commit SHA, or to show only your branches (branches that contain at least one commit authored by you), enable the My branches toggle and add the email addresses you use in your Git configuration.
For each branch, you can see the test service, the number of failed, passed, and skipped tests, test regressions, wall time, the percentage of change compared to the default branch, when the commit was last updated, and the avatar of the author of the commit.
Click on a branch to explore the test details page, which includes information about the branch’s latest commits, flaky tests, test performance, common error types, and all test runs.
Test suite performance
There is also information about the wall time of the most recent test suite run, and a comparison to the average wall time of the default branch. The comparison of your branch’s wall time to the default branch’s wall time can help you determine if your commit is introducing performance regressions to your test suite.
Hovering over the commit author avatar shows detailed information about the latest commit.
Test regressions are evaluated per commit in an effort to tie performance regressions to specific code changes.
Investigate for more details
Click on the row to see test suite run details such as test results for the last commit on this branch (or you can switch branches), failing tests and the most common errors, slow tests, flaky tests, and a complete list of test runs over the time frame selected. You can filter this list of test runs by facet to get to the information you want to see most.
Click into one of the test runs to see the test trace as a flame graph or a span list. The Runs (n) list on the left lets you quickly access traces for each retry of the test for the same commit.
Explore connections to services, resources, logs, and network events
Click the CI provider link to examine the Resource, Service, or Analytics page for the test. You can also find complete tags information and links to related log events and network monitoring events.
Default Branches view
The Default Branches view of the Tests page shows aggregated health metrics for the default branch of each test service. This view is useful for teams to understand the overall health of the service over time.
The Default Branches view shows similar information to the Branches view, but applied to the default branch. It compares the current wall time with the average default branch wall time to give you an indication of how your test suite performance is trending over time.
Search for pipelines
To see your pipelines, navigate to CI > Pipelines.
The Pipelines page shows aggregate stats for the default branch of each pipeline over the selected time frame, as well as the status of the latest pipeline execution. Use this page to see all your pipelines and get a quick view of their health. The Pipelines page shows metrics for the default branch, usually named something like
Metrics shown include build frequency, failure rate, average duration, and 95th percentile duration. This information reveals which pipelines are high-usage and potentially high resource consumers. The last build result, duration, and last runtime show you the effect of the last commit.
You can filter the page by pipeline name to see the pipelines you’re most concerned with. Click on a pipeline that is slow or failing to dig into details that show what commit might have introduced the performance regression or build error.
Pipeline details and executions
Click into a specific pipeline to see the Pipeline Details page which provides views of the data for the pipeline you selected over a specified time frame.
Get insights on the selected pipeline such as total and failed executions over time, build duration percentiles, error rates, and total time spent breakdown by stage. There are also summary tables for stages and jobs so you can quickly sort them in terms of duration, percentage of overall execution time, or failure rate.
The pipeline execution list shows all the times that pipeline (or its stages or jobs) ran during the selected time frame, for the selected branch. Use the facets on the left side to filter the list to exactly the pipelines, stages, or jobs you want to see.
Explore connections to services, resources, and network events
Click one of the executions to open the pipeline execution view and see the flame graph or span list for the pipeline and its stages. The Executions (n) list on the left side gives you quick access to the data for each retry of the pipeline for the same commit.
Click the CI provider link (
gitlab-ci gitlab.pipeline > documentation in the following image) to investigate the Resource, Service, or Analytics page for the pipeline, stage, or job specifically. You can also find complete tags information and links to network monitoring events.
Explore connections to logs
If job log collection is supported and enabled for the CI provider, related log events can be found in the Logs tab of the pipeline execution view.
Job log collection is supported for the following providers:
Additional helpful documentation, links, and articles: