Coder Social home page Coder Social logo

selected-tests's Introduction

Selected Tests

The Selected Tests service is used to predict which tests need to run based on code changes.

It depends on and requires a running evergreen instance.

Introduction

This document briefly introduces the Selected Tests API. For more detailed information, refer to the Further Reading section at the end of this document.

Selected Tests API

The selected-tests API is hosted internally at MongoDB. For this reason we restrict access to engineers who are authenticated through CorpSecure (MongoDB's Single Sign On solution for internal apps).

Accessing Selected Test API

Assuming that you have followed these instructions and a web serice is running on https://localhost:8080, then the easiest mechanism to access the API is to use project swagger page,

This page lists all the endpoints, at the moment the most interesting for an end user are:

Navigate to either of the 2 links listed above and click the Try It Out button on the right hand side of the panel.

For example, the GET project task-mappings command panel looks like:

get projects task mappings panel

Next enter the following details:

  • mongodb-mongo-master for the mandatory project field.
  • src/mongo/db/index_builds_coordinator.cpp for the mandatory changed_files field.

The threshold field is optional so leave it empty.

Now the GET project task-mappings command panel should look like:

get projects task mappings execute panel

Click the blue Execute button below the parameters panel.

The response body field on the panel will display the test or task mappings discovered for the project and files entered (you can see some of the results at the bottom of the previous image).

This would be the equivalent of changing only the src/mongo/db/index_builds_coordinator.cpp file in a mongo branch and issuing the evergreen patch command(above).

You can also view the mappings from the command line. See Curl Mappings for more details.

If any new endpoints are added to the service or if the service is updated in such a way that any of the existing endpoints' contracts change, the swagger documentation must be updated to reflect the new state of the service before that change can be merged to master.

Documentation for how the swagger documentation is done can be found here.

Further Reading

More detailed about the Selected Test service is contained in the following:

  • Manual Commands: information for an engineer who wants to run their own selected-tests service.
  • Database Schema: db schema introduction and overview for an engineer who wants to understand the selected-tests service.
  • Contributing: information for an engineer who wants to contribute to selected-tests service development.

selected-tests's People

Contributors

dbradf avatar evrg-bot-webhook avatar jimoleary avatar lydiastepanek avatar zamj avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.