e2e

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2026 License: Apache-2.0 Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package e2e holds the loop's live tests, behind the live build tag, and the guards every one of their writes goes through: they touch only what the tests create in Orca and only the sandbox repository on GitHub.

Index

Constants

This section is empty.

Variables

View Source
var (
	// Prefix starts the name of every Orca workspace, branch, terminal and
	// pull request title the live tests create.
	Prefix = brand.Name + "-e2e-"
	// Sandbox is the only repository the live tests write to.
	Sandbox = brand.Org + "/" + brand.Name + "-sandbox"
)

Functions

func MustOwn

func MustOwn(name string) error

MustOwn refuses an Orca workspace or branch name the live tests did not make.

func MustOwnBranch

func MustOwnBranch(branch string) error

MustOwnBranch refuses a branch the live tests did not make. Orca may put one segment before the name it was given (`owner/<Prefix>...`).

func MustOwnWorkspace

func MustOwnWorkspace(ws Workspace) error

MustOwnWorkspace accepts a workspace the live tests created, or one the loop created for a sandbox pull request, and refuses every other.

func SandboxOnly

func SandboxOnly(repo string) error

SandboxOnly refuses any repository but the sandbox.

Types

type Workspace

type Workspace struct {
	Name, Repo string
	PR         int
}

Workspace is an Orca workspace as the guard reads it: its name, and the repository and number of the pull request it is linked to (0 for none).

Jump to

Keyboard shortcuts

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