checks

package
v0.0.0-...-71fd8da Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 20, 2024 License: BSD-3-Clause Imports: 20 Imported by: 0

README

wpt.fyi GitHub Checks integration

This directory implements the wpt.fyi (and staging.wpt.fyi) integration with the GitHub Checks API for commits made to WPT. The goal of this integration is to provide summary data (reporting regressions, etc) for test-suite runs performed by our CI systems (Azure Pipelines and Taskcluster).

The wpt.fyi GitHub Checks code owns only computing the summary data and pushing it to GitHub, not ingesting the results from the CI systems. For those, see the /api/azure and /api/taskcluster directories.

Documentation

Index

Constants

View Source
const CheckProcessingQueue = "check-processing"

CheckProcessingQueue is the name of the TaskQueue that handles processing and interpretation of TestRun results, in order to update the GitHub checks.

Variables

This section is empty.

Functions

func RegisterRoutes

func RegisterRoutes()

RegisterRoutes adds route handlers for webhooks.

Types

type API

type API interface {
	shared.AppEngineAPI

	ScheduleResultsProcessing(sha string, browser shared.ProductSpec) error
	GetSuitesForSHA(sha string) ([]shared.CheckSuite, error)
	IgnoreFailure(sender, owner, repo string, run *github.CheckRun, installation *github.Installation) error
	CancelRun(sender, owner, repo string, run *github.CheckRun, installation *github.Installation) error
	CreateWPTCheckSuite(appID, installationID int64, sha string, prNumbers ...int) (bool, error)
	GetWPTRepoAppInstallationIDs() (appID, installationID int64)
}

API abstracts all the API calls used externally.

func NewAPI

func NewAPI(ctx context.Context) API

NewAPI returns a real implementation of the API. nolint:ireturn // TODO: Fix ireturn lint error

Directories

Path Synopsis
Package mock_checks is a generated GoMock package.
Package mock_checks is a generated GoMock package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL