A Continuous Integration (CI) suite is a set of validation instructions that is associated with your LookML project. A Looker user with the [`manage_ci`](https://docs.cloud.google.com/looker/docs/2612/admin-panel-users-roles.md.txt#manage_ci) permission can configure the following in a CI suite:

- How a CI validation run is triggered ([manually from the Looker IDE](https://docs.cloud.google.com/looker/docs/2612/ci-run-suite.md.txt#manual-run) or [automatically when a pull request is submitted to your repository](https://docs.cloud.google.com/looker/docs/2612/ci-run-suite.md.txt#pr-run)).
- Which CI validators to run.
- Additional options for each validation test. See the documentation pages for each of the validators for details:
  - [SQL Validator](https://docs.cloud.google.com/looker/docs/2612/ci-sql-validator.md.txt)
  - [Assert Validator](https://docs.cloud.google.com/looker/docs/2612/ci-assert-validator.md.txt)
  - [Content Validator](https://docs.cloud.google.com/looker/docs/2612/ci-content-validator.md.txt)
  - [LookML Validator](https://docs.cloud.google.com/looker/docs/2612/ci-lookml-validator.md.txt)

## Before you begin

Before you can create a CI suite, you need the following:

- A Looker instance that meets the [requirements for CI](https://docs.cloud.google.com/looker/docs/2612/continuous-integration.md.txt#requirements) and that is [enabled for CI](https://docs.cloud.google.com/looker/docs/2612/continuous-integration.md.txt#enable-ci).
- A Looker user account with the [`manage_ci`](https://docs.cloud.google.com/looker/docs/2612/admin-panel-users-roles.md.txt#manage_ci) permission (this permission is included in the Admin [permission set](https://docs.cloud.google.com/looker/docs/2612/admin-panel-users-roles.md.txt#permission_sets)).

## Creating a CI suite

You can configure and run the validators on the **Suites** page in the Looker IDE:

![CI suites page](https://docs.cloud.google.com/static/looker/docs/images/ci-suites-page-updated-2506.png)

To create a CI suite, follow these steps:

1. From the [Looker IDE](https://docs.cloud.google.com/looker/docs/2612/looker-ide.md.txt), click the **Continuous Integration** icon from the IDE navigation bar.
2. Click the **Suites** tab to open the **Suites** page.
3. On the **Suites** page, you can create a new suite or edit an existing suite:
   - To create a new suite, click the **Create suite** button.
   - To edit an existing suite, click the **Edit suite** button for the suite.
4. Enter a name for the **Suite name**. If you are editing an existing suite, you can optionally click the pencil icon to edit the suite name.
5. (Optional) Enable the **Trigger on a schedule** toggle if you want to set up automatic validation testing on a recurring schedule. See the [Trigger on a schedule](https://docs.cloud.google.com/looker/docs/2612/ci-create-suite.md.txt#schedule-trigger) section of this page for more information.
6. (Optional) Enable the **Trigger on pull requests from Looker** toggle if you want to set up automatic validation testing whenever a Looker developer submits a pull request to your repository. See the [Trigger on pull requests from Looker](https://docs.cloud.google.com/looker/docs/2612/ci-create-suite.md.txt#pr-trigger) section of this page for more information.

   If you enable pull request triggering for a CI suite, you can optionally use the **Only for target branch** field to specify that pull requests only to specific branches in the repository should trigger a run of the CI suite. See the [Trigger on pull requests from Looker](https://docs.cloud.google.com/looker/docs/2612/ci-create-suite.md.txt#pr-trigger) section of this page for more information.
7. (Optional) Turn on the **Enable email alerts** toggle if you want to receive email alerts based on the status of a CI run. See the [Set up alerting](https://docs.cloud.google.com/looker/docs/2612/ci-create-suite.md.txt#alerting) section of this page for more information.

8. Optionally, enable the validator toggles to turn on a validator and configure its options. See the documentation pages for each of the validators for details:

   - [SQL Validator](https://docs.cloud.google.com/looker/docs/2612/ci-sql-validator.md.txt)
   - [Assert Validator](https://docs.cloud.google.com/looker/docs/2612/ci-assert-validator.md.txt)
   - [Content Validator](https://docs.cloud.google.com/looker/docs/2612/ci-content-validator.md.txt)
   - [LookML Validator](https://docs.cloud.google.com/looker/docs/2612/ci-lookml-validator.md.txt)
9. Save your changes:

   - If you are creating a new suite, click the **Create suite** button.
   - If you are editing an existing suite, click the **Update suite** button.

### Triggers

CI runs can be triggered in several ways:

- Automatically, [on a recurring schedule](https://docs.cloud.google.com/looker/docs/2612/ci-create-suite.md.txt#schedule-trigger).
- Automatically, [when a pull request is submitted](https://docs.cloud.google.com/looker/docs/2612/ci-create-suite.md.txt#pr-trigger) to your LookML project's repository by a Looker developer.
- Manually, [using the **Run suite** button](https://docs.cloud.google.com/looker/docs/2612/ci-run-suite.md.txt#manual-run) on the **Suites** page in the Looker IDE.
- Manually, by [rerunning a previous CI run](https://docs.cloud.google.com/looker/docs/2612/ci-run-suite.md.txt#manual-rerun), from the **Runs** page of the Looker IDE.

#### Trigger on a schedule

You can configure a CI suite to automatically trigger on a schedule by enabling the **Trigger on a schedule** toggle.

When this toggle is enabled, you can select the frequency and specifics for automatically running your CI suite:

- **Monthly**, on a specific day and time
- **Weekly**, on a specific day and time
- **Daily**, at a specific time
- **Hourly** or every 2, 3, 4, 6, 8, or 12 hours, starting and ending at specific times of the day
- **Minutes** every 5, 10, 15, 20, or 30 minutes, starting and ending at specific times of the day
- **Specific months** of the year, on a specific day and time
- **Specific days** of the week at a specific time

#### Trigger on pull requests from Looker

To configure a CI suite for automatic triggering on pull request, enable the **Trigger on pull requests from Looker** toggle. To use pull request triggering, your Git repository must be configured by your Looker admin on the [**Continuous Integration** Admin](https://docs.cloud.google.com/looker/docs/2612/admin-panel-platform-ci.md.txt#github) page of Looker).

> [!TIP]
> **Tip:** Even if you configure the CI suite to run automatically on pull requests, you can still initiate a [manual run](https://docs.cloud.google.com/looker/docs/2612/ci-run-suite.md.txt#manual-run) or [manually rerun a previous run](https://docs.cloud.google.com/looker/docs/2612/ci-run-suite.md.txt#manual-rerun) of the CI suite from the Looker IDE.


If you enable pull request triggers for a CI suite, you can optionally specify that pull requests only to specific branches in the repository should trigger a run of the CI suite. To limit automatic pull request triggers of CI runs to specific branches in your repository, enter a comma-separated list of the branches in the **Only for target branch** field.

For example, if a repository has three branches named `main`, `release_1`, and `dev`, you can enter `main, release_1` in the **Only for target branch** field. This means that CI runs will be triggered when a Looker developer submits a pull request to either the `main` or the `release_1` branch. If a Looker developer submits a pull request to the `dev` branch, this won't trigger an automatic run of the CI suite.

## Set up alerting

To receive email alerts based on the status of your CI runs, you can set up alerting for a CI suite. This lets you monitor Continuous Integration runs without having to consult the **Runs** page in the Looker IDE.

To configure email alerts for a CI suite, follow these steps when [creating or editing a CI suite](https://docs.cloud.google.com/looker/docs/2612/ci-create-suite.md.txt#creating-a-ci-suite):

1. Enable the **Enable email alerts** toggle.
2. In the **Email addresses** field, enter a comma-separated list of the email addresses that should receive the alerts.
3. Use the checkboxes to select the job statuses that should trigger an alert:
   - **Failed**: Triggers an email when a CI run fails validation tests.
   - **Error**: Triggers an email when a CI run encounters a system or configuration error.
   - **Passed**: Triggers an email when a CI run completes successfully.
   - **Cancelled**: Triggers an email when a CI run is cancelled.

## Deleting a suite

To delete a CI suite, perform the following steps:

1. From the [Looker IDE](https://docs.cloud.google.com/looker/docs/2612/looker-ide.md.txt), click the **Continuous Integration** icon from the IDE navigation bar.
2. Click the **Suites** tab to open the **Suites** page.
3. On the **Suites** page, click the **Edit suite** button for the suite.
4. On the suite's page, click the **Delete suite** button.
5. In the confirmation dialog, click the **Delete suite** button.