Giter Club home page Giter Club logo

testgrid's Introduction

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:

  • Sorting
  • Filtering
  • Graphing
  • Grouping
  • Dashboard groups
  • Summaries
  • Clustered Failures

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.

  • PASSING: No failures found in recent (num_columns_recent) test runs.
  • FAILING: One or more consistent failures in recent test runs.
  • FLAKY: The tab is neither PASSING nor FAILING. There is at least one recent failed result that is not a consistent failure.

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:

  • Include/Exclude Filter by RegEx: Specify a regular expression that matches test names for rows you'd like to include/exclude.
  • Exclude non-failed Tests: Omit rows with no failing results.

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:

  • Group by RegEx Mask: Specify a regular expression to mask a portion of the test name. Any test names that match after applying this mask will be grouped together.

  • Group by Target: Any tests that contain the same target will be grouped together.

  • Group by Hierarchy Pattern: Specify a regular expression that matches one or more parts of the tests' names and the tests will be grouped hierarchically. For example, if you have these tests in your dashboard:

    /test/dir1/target1
    /test/dir1/target2
    /test/dir2/target3
    

    By specifying regular expression "\w+", the tests will be organized into:

    ▼test
      ▼dir1
        target1
      ▼dir2
        target2
        target3
    

Sorting Tests

Under Options

  • Sort by Failures: Tests with more recent failures will appear before other tests.
  • Sort by Flakiness: Tests with a higher flakiness score will appear before tests with a lower flakiness score. The flakiness score, which is not reported, is based on the number of transitions from passing to failing (and vice versa) with more weight given to more recent transitions.
  • Sort by Name: Sort alphabetically.

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:

  • test status
  • test status and error message

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.

testgrid's People

Contributors

google-oss-robot avatar fejta avatar k8s-ci-robot avatar google-oss-prow[bot] avatar krzyzacy avatar chases2 avatar michelle192837 avatar bentheelder avatar spiffxp avatar katharine avatar yguo0905 avatar random-liu avatar ixdy avatar rohitagarwal003 avatar yujuhong avatar mushuee avatar shyamjvs avatar justinsb avatar neolit123 avatar cjwagner avatar jlewi avatar wojtek-t avatar spxtr avatar mtaufen avatar yairnee avatar dims avatar rramkumar1 avatar sultan-duisenbay avatar zmerlynn avatar itsazhuhere avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.