API referenceConsole
ci cd
Polylane watches failure rates and durations of your GitHub Actions jobs on Depot runners, searches their logs and build steps, and finds why a job broke.

Connect

Connect Depot from the terminal. Pass --help for the flags Depot accepts.

Terminal
polylane integration connect --type depot

How it works

Projects in the context graph

Polylane syncs your Depot projects every hour, and a first time shortly after connect. Each project becomes a depot.project node. Polylane links a repository to the Depot project that it builds on. The evidence comes from the files of the repository, because Depot does not name a repository on a project. Examples are depot.json, DEPOT_PROJECT_ID, the --project flag of a depot command, the project input of the Depot GitHub actions, and images in registry.depot.dev.

What Polylane monitors

Polylane monitors the GitHub Actions jobs of the organization on Depot runners: the job failure rate, the number of failed jobs, and the average duration. The checks use hourly buckets over one day. An hour with fewer than five jobs has no failure rate.

Polylane also monitors the container builds of each Depot project: builds by status, the failure rate, the average and p95 duration, and the layer cache hit rate. Polylane does not monitor Depot CI runs. A sustained change opens an issue.

Failed builds on GitHub

Depot sends no events to Polylane. When GitHub is connected, a failed GitHub Actions run on the default branch reaches Polylane as a GitHub event and becomes an alert. A failed Depot CI check suite on the default branch or its merge queue also becomes an alert. Polylane triages the alert like any other alert, and a new failure starts an investigation.

Agent tools and changes

Read Depot data and request API changes through Polylane. During an investigation, agents use the tools under Depot APIs. Through depotApi, a Get, List, Search or Count method is a read. Every other method changes state, so it needs a reason, safety review and approval before it runs. The token has no scopes, so this review is what limits changes in Depot.

Polylane checks the token every six hours.

Depot APIs

Depot organization tokens have no scopes. Polylane uses these Depot APIs:

ToolDepot APIWhat it unlocks
depotGithubActionsJobsGithubActionsService jobsFinds failed, slow, and running GitHub Actions jobs on Depot runners.
depotGithubActionsLogsGithubActionsService logsSearches job log lines and reads the lines around a match.
depotGithubActionsAnalyticsGithubActionsService analyticsReads failure rates, durations, and runner size recommendations.
depotCiRunsCIServiceFollows Depot CI runs, their jobs, and their logs.
depotBuildsProjectService, BuildServiceReads container builds, their steps, and step logs.
depotApiAny Depot APICalls the Depot API. Calls that change state need safety review and approval. Depot CI secrets and variables are not available, for reads or for changes.

Disconnecting

When you disconnect, Polylane leaves the organization API token in Depot. Remove it under Organization Settings → API Tokens in Depot.

Disconnect

Disconnecting stops every sync and check and deletes the credentials Polylane held. Polylane removes what Depot's API lets it remove. The following stays until you remove it yourself:

  • Depot organization API token
Terminal
polylane integration disconnect <id>

Tools

6

Operations agents can perform in threads.

Builds
List Depot container build projects and builds, and read build steps and step logs
Github Actions Jobs
List or get GitHub Actions jobs that run on Depot runners
Github Actions Analytics
Read Depot GitHub Actions analytics: failure rates, durations, runner utilization and sizing recommendations
Github Actions Logs
Search the logs of GitHub Actions jobs on Depot runners and read the lines around a match
Ci Runs
List Depot CI runs, read a run's jobs and logs, and get Depot's failure diagnosis
Api
Call any Depot API method with the connected organization token