GoogleCloudPlatform / testgrid

Apache License 2.0
193 stars 68 forks source link

TestGrid

Welcome to TestGrid, a highly-configurable, interactive dashboard for viewing your test results in a grid!

Check out Kubernetes' instance at https://testgrid.k8s.io.

We're in the middle of open-sourcing TestGrid! You can check this repo or this issue for more updates as we continue.

We have a short video from the TestGrid session at the 2018 Kubernetes contributor summit.

The video demos power features of TestGrid, including:

Please have a look!

Contributing

If you want to modify TestGrid beyond adding new tests or dashboards, see Contributing and Updating Testgrid.

Configuration

If you need to add a new test that you want TestGrid to display, or otherwise change what is shown on https://testgrid.k8s.io, see Testgrid Configuration.

Updates to the config are automatically tested and pushed to production.

Using the client

Here are some quick tips and clarifications for using the TestGrid site!

Tab Statuses

TestGrid assigns dashboard tabs a status based on recent test runs.

Summary Widget

You can get a small widget showing the status of your dashboard tab, based on the tab statuses above! For example:

sig-testing-misc#ci-bazel: sig-testing-misc/ci-bazel

Inline it with:

<!-- Inline with a link to your tab -->
[![<dashboard_name>/<tab_name>](https://testgrid.k8s.io/q/summary/<dashboard_name>/<tab_name>/tests_status?style=svg)](https://testgrid.k8s.io/<dashboard_name>#<tab_name>)

Customizing Test Result Sizes

Change the size of the test result rectangles.

The three sizes are Standard, Compact, and Super Compact. You can also specify width=X in the URL (X > 3) to customize the width. For small widths, this may mean the date and/or changelist, or other custom headers, are no longer visible.

Filtering Tests

You can repeatedly add filters to include/exclude test rows. Under Options:

Grouping Tests

Grouped tests are summarized in a single row that is collapsible/expandable by clicking on the test name (shown as a triangle on the left). Under Options:

Sorting Tests

Under Options

Clustered Failures

You can display identified clustered failures in your test results grid in a dashboard tab. Select the Display Clustered Failures List toggle button to render a list/table of identified failure clusters at the bottom of the browser.

Clusters can be grouped by:

The clustered failures table shows the test status, error message (if grouped by error message), and area of the clusters. The clusters are sorted by area in descending order.

Selecting a row highlights the cells belonging to that cluster. Multiple row selection (with multiple cluster highlighting) is supported. To de-select a row, click on the selected row again.

Creating a TestGrid Instance

Information on setting up your own TestGrid instance can be found here.

If you're looking to add your configuration to an existing instance (such as testgrid.k8s.io), see config.md instead.