Skip to content
By Barak Korren, Wayne Sun, Greg Allen, Hector Martinez Lopez, Ralph Bean
Picture of Barak Korren
Barak Korren
Picture of Wayne Sun
Wayne Sun
Picture of Greg Allen
Greg Allen
Picture of Hector Martinez Lopez
Hector Martinez Lopez
Picture of Ralph Bean
Ralph Bean

Behaviour test drivers ​

Behaviour tests isolate forge-specific code behind drivers so Gherkin scenarios stay portable.

Interfaces ​

InterfacePackageResponsibility
scm.Driverpkg/behaviourtest/drivers/scmIssues, comments, labels (via GetIssue), file commits
ci.Driverpkg/behaviourtest/drivers/ciWorkflow polling, logs, artifact download
install.Driverpkg/behaviourtest/drivers/installUnified surface: repo allocation/deallocation, mint lifecycle, and suite teardown
install.Factorypkg/behaviourtest/drivers/installfunc(install.PoolConfig) (Driver, error): builds the one shared Driver over the pool orgs; PoolConfig carries the pool layout, per-org TokenFor and NewClient, CLI binary, GCP project, and logger
install.LeaseDriverpkg/behaviourtest/drivers/installA Driver that leases (org, repo) slots across the pool orgs: AllocateLease returns an install.RepoLease (org, repo, token, client, mint URL) and DeallocateLease releases it. The shared pool driver's name-only AllocateRepo/DeallocateRepo return an error
install.LeaseVerifierpkg/behaviourtest/drivers/installOptional companion to LeaseDriver: StillOwnsLease(ctx, org, repo) reports whether the repo under a leased slot name is still this lease's. Scenario cleanup calls it before each name-based mutation and skips the mutation when the answer is no or cannot be determined, so a LeaseDriver that does not implement it has all cleanup mutations skipped
install.SuiteBootstrappkg/behaviourtest/drivers/installOptional Driver interface that supplies what the suite runner needs before scenarios start: DefaultConcurrency() (godog workers when GODOG_CONCURRENCY is unset), Describe() (the suite log line), and DefaultOrg(ctx) (an install.OrgAccess with the org, token and client the template World uses until a lease). The runner gets it through install.BootstrapFor(driver) and never reads a pool layout or calls TokenFor itself. A driver without it falls back to Capacity() concurrency and no default org

v1 reference implementations:

  • pkg/behaviourtest/drivers/scm/github/
  • pkg/behaviourtest/drivers/scm/gitlab/
  • pkg/behaviourtest/drivers/ci/githubactions/
  • pkg/behaviourtest/drivers/ci/gitlabci/
  • pkg/behaviourtest/drivers/scm/forgejo/ (minimal stub) and pkg/behaviourtest/drivers/ci/forgejoactions/ (Forgejo Actions); see Forgejo drivers
  • pkg/behaviourtest/drivers/install/repopool_cfmint_previews.go (RepoPoolCFMintPreviews)
  • pkg/behaviourtest/drivers/install/repopool_cfmint_stage.go (RepoPoolCFMintStage)
  • pkg/behaviourtest/drivers/install/repopool_external_mint.go (RepoPoolExternalMint)
  • pkg/behaviourtest/drivers/install/forgejo_dev.go (NewForgejoDev: managed Forgejo stack lifecycle in pkg/behaviourtest/drivers/install/forgejostack/; repository allocation not implemented yet)
  • pkg/behaviourtest/drivers/install/common/setup.go (shared helpers: RunGitHubSetup, ResolveInferenceWIFProvider, InferenceStatusWIFProvider, ProvisionInference)

Runner configuration ​

Set when starting the suite (not in feature files):

BEHAVIOUR_SCM=github              # also: gitlab, forgejo (forgejo-dev only); default forgejo when ENVIRONMENT=forgejo-dev
BEHAVIOUR_CI=githubactions        # also: gitlabci, forgejoactions (forgejo-dev only); default forgejoactions when ENVIRONMENT=forgejo-dev; future: tekton
BEHAVIOUR_INSTALL_MODE=per-repo   # v1 default and only supported value
BEHAVIOUR_CONFIG_PRESET=          # optional local path or HTTPS URL forwarded as github setup --config
PLAYBACK_RUNTIME=                 # unset: normal "dummy" runtime; "dummy-playback": installs with playback tracking hooks (see behaviour-testing.md)
ENVIRONMENT=dev                   # mint/infra target: dev (default), stage, github-emulator, or forgejo-dev

The suite in e2e/behaviour/suite_test.go (or an external runner) calls behaviourtest.RunSuite, which selects an install.Factory from ENVIRONMENT (e.g. install.NewRepoPoolCFMintPreviews(pool)) to get the shared install.Driver that leases (org, repo) slots across the pool orgs and owns mint deploy, repo install, and teardown. It does not reserve an org (e2etest.AcquireOrg) or run broad startup cleanup. It runs godog with pkg/behaviourtest/suite.InitScenario, which clones a template *world.World per scenario. When a scenario calls "Given the enrolled test repository", install.LeaseDriver.AllocateLease claims a free slot, creating its repo. A slot whose repo already exists belongs to another holder and is never reset or deleted. The driver then installs fullsend with that org's credential and mint, and the step rebinds the World's org, token, mint URL, and SCM/CI drivers (built from BEHAVIOUR_SCM / BEHAVIOUR_CI via World.OrgDrivers) to the leased org. DeallocateLease deletes the slot repo, if it is still this lease's, and frees the slot in the After hook, after scenario cleanup and debug collection. Driver.Finalize releases outstanding leases with an error and tears down each deployed mint once. See Repo allocation via the shared slot driver. Unsupported BEHAVIOUR_INSTALL_MODE or ENVIRONMENT values fail at suite startup. ENVIRONMENT is dev, stage, github-emulator, or forgejo-dev (empty defaults to dev). github-emulator selects install.NewRepoPoolGitHubEmulator (see Running against a GitHub emulator).

Install driver (unified) ​

The suite uses a single unified install.Driver constructed via install.Factory. The suite selects the factory based on ENVIRONMENT:

EnvironmentFactoryMintOrgInstall mode
dev (default)NewRepoPoolCFMintPreviewsOne public CF Worker preview per mint group leased in the run (four at 12 slots per org)Pool orgs halfsend-01 … halfsend-22Vendored binary
stageNewRepoPoolCFMintStageDurable CF Worker at stage-mint.fullsend.shhalfsend (single unsuffixed org)Non-vendored, --fullsend-ref=main
forgejo-devNewForgejoDevNoneManaged local Forgejo + Runner stack (see Managed forgejo-dev stack)Not implemented

Any other ENVIRONMENT value fails at suite startup; it never falls back to a GitHub factory.

Each factory returns the same shared slot driver (composed.go), which owns the full lifecycle:

  1. Leases (org, test-repo-NN) slots across the pool orgs through the slot allocator (slotpool.go). A claim creates the slot repo, and an existing repo is another holder's and is never touched. The allocator also holds each org's shared e2e-lock and runs the repo-slot GC.
  2. On the first lease in any org of a mint group, deploys the group's mint (RepoPoolCFMintPreviews: public CF Worker preview; RepoPoolCFMintStage: durable Worker with custom domain; RepoPoolExternalMint: pre-configured URL, one group of every org). The orgs of the group share that deployment, its URL and its teardown. On each org's first lease the driver also creates that org's ensurer with the org's installation token and its group's mint URL.
  3. Installs fullsend into each claimed repo (concurrent-safe via singleflight). The ensurer never creates, deletes or resets the slot repo. The allocator's release deletes the repo, checking it is still the lease's, so the next lessee cannot inherit leftover state.
  4. Implements install.LeaseDriver (AllocateLease / DeallocateLease) and install.LeaseVerifier (StillOwnsLease, which scenario cleanup needs to mutate anything) plus Finalize / Capacity. The name-only AllocateRepo / DeallocateRepo return an error.
  5. Implements install.SuiteBootstrap. DefaultOrg returns the first pool org whose token can be minted, skipping unhealthy orgs, and fails the run with a bootstrap report when no org's token can be minted. The credential is cached, so the org's later leases reuse it.

The Factory takes an install.PoolConfig: the pool layout, a per-org token source (e2etest.TokenForOrg in the runners), a client constructor, the CLI binary, the GCP project, and the logger. Driver-specific inputs (PEMs, allowlists, mint URL, optional BEHAVIOUR_CONFIG_PRESET) come from env or are computed per org inside the driver. When BEHAVIOUR_CONFIG_PRESET is set, github setup receives --config <value> and omits --runtime dummy so the preset's runtime: dummy is inherited rather than pinned in the overlay. The suite does not construct or thread pool, ensurer, or mint driver types directly — all internal lifecycle is encapsulated inside the concrete driver returned by the factory. Godog concurrency is controlled independently of slot capacity. For the shared slot driver it defaults to the slots per org (12, the driver's install.SuiteBootstrap.DefaultConcurrency), not driver.Capacity() (every slot of every pool org), and GODOG_CONCURRENCY overrides it (warn, do not fail, if concurrency > Capacity).

Pool orgs must already have the six fullsend-test-* role apps and the production fullsend-ai-e2e app installed, plus per-repo mint enrollment for each numbered repo (one-time GCP admin step on the hosted mint project). The driver does not run fullsend admin install or fullsend mint enroll. See e2e-testing.md.

The two CF mint drivers compute mint groups from the pool layout on every run (planMintGroups in mint_groups.go); there is no hardcoded org-to-mint list. A group's --workflow-host-repos lists its orgs' pool repos plus each slot's mint-probe host <org>/test-repo-NN-mint-host (install.MintProbeHostRepoSuffix). The driver packs orgs in order into the fewest groups whose actual serialized list stays within 5,000 bytes, a margin under Cloudflare's 5 KB per-variable limit. At 12 slots per org a list for six orgs is 4,319 bytes and for seven is 5,039 bytes, so the 22 DEV orgs use four mints. A changed slot or org count regroups automatically. If one org's list alone exceeds the limit, the factory fails and names the org (one org's slots are not split across mints). The GitHub mint scope scenarios create and delete the probe hosts per scenario. Because the lists are deploy flags, a change takes effect on the next suite run's mint deploy, with no GCP enrollment step.

RepoPoolCFMintPreviews deploys its previews with --public (PER_REPO_WIF_REPOS=*) instead of --per-repo-wif-repos, so no caller list has to fit in a Worker variable or be kept enrolled. RepoPoolCFMintStage keeps --per-repo-wif-repos for its durable mint. See Public preview mints for the accepted trade-off.

Both CF mint drivers also deploy with --status-auth oidc,github --status-github-group <org>/mint-status (install.MintStatusTeamSlug), so members of that mint-status team can query the mint's status with a GitHub user token (see Mint status team). The driver picks <org> at random from the pool orgs once per job and uses it for every mint, so it need not be an org the mint serves. The shared driver reports each lease's mint URL, status group and workflow hosts in install.RepoLease (MintURL, MintStatusGroup, MintWorkflowHostRepos), which the lease step stores in the matching World fields. The CLI mint status scenarios lease a slot to get it, and fall back to the optional install.MintURLReporter interface for other drivers.

When the job-scoped trace collector runs, RepoPoolCFMintPreviews starts it once, before any mint deploy, and adds --otlp-traces-endpoint and --otlp-headers-file to every group's deploy, so each preview mint exports its spans to the same collector as the workflows. Leased repos are pointed at the collector with their org's client. RepoPoolCFMintStage does not trace its mint, because its durable mint is shared across runs.

Finalize (RepoPoolCFMintPreviews) abandons every org's preview alias via fullsend mint delete --platform=cloudflare and reclaims any outstanding leases with an error. The RepoPoolCFMintStage driver's teardown is a no-op (the durable Worker persists across runs). The RepoPoolExternalMint driver's teardown is a no-op.

Forgejo drivers ​

ENVIRONMENT=forgejo-dev selects the Forgejo drivers. When BEHAVIOUR_SCM and BEHAVIOUR_CI are unset, they default to forgejo and forgejoactions. The Forgejo drivers only run together and only in forgejo-dev. If you mix them, for example forgejo-dev with BEHAVIOUR_SCM=github, or BEHAVIOUR_SCM=forgejo with ENVIRONMENT=dev, the suite fails at startup with an error that names the conflicting variables. It does not fall back to the GitHub or GitLab drivers.

The SCM driver is still a minimal stub, and the install driver only manages the Forgejo stack. Forgejo scenarios therefore cannot run end to end yet, so no scenario is tagged @forgejo for the CI driver alone:

  • scm/forgejo implements scm.Driver. Every method returns an error.
  • ci/forgejoactions implements ci.Driver and the optional ci.RunLister, ci.EmptyMatrixWaiter, and ci.AgentArtifactDownloader extensions. Every API call goes through the Forgejo adapter's read-only Actions operations in internal/forge/forgejo (run list and get, jobs, per-run artifacts, artifact download, and job logs), which take the base URL with any path prefix. The driver only observes runs; it never dispatches, cancels, or reruns one. See Forgejo Actions CI driver.
  • install.NewForgejoDev starts the managed forgejo-dev stack and returns an install.Driver whose Finalize tears it down and whose AgentSourceEnv (install.AgentSourceEnvReporter) points fullsend at the stack's agent-definition fixture. AllocateRepo and DeallocateRepo return an error, and Capacity is install.ForgejoDevCapacity (2, the runner's capacity). It is not an install.LeaseDriver.
  • In forgejo-dev, the runner's PoolConfig has no layout, TokenFor or NewClient. The driver does not implement install.SuiteBootstrap, so the runner's concurrency defaults to Capacity and the template World has no default org. The run never enumerates the GitHub pool, mints GitHub tokens or builds GitHub clients.
  • The GitHub token check lives in the install drivers that need GitHub access (NewRepoPoolCFMintPreviews, NewRepoPoolCFMintStage, NewRepoPoolExternalMint), not in the runner's general env loading (e2etest.LoadEnvConfig). They fail with e2etest.ErrNoLocalGitHubToken when a local run has no token, and the suite runner skips the run on that error. NewForgejoDev does not need a GitHub token.

Each stub error is a *drivers.NotImplementedError (package pkg/behaviourtest/drivers) that names the driver and the operation, for example forgejo SCM driver: CreateIssue: not implemented. It satisfies errors.Is(err, drivers.ErrNotImplemented). Use the same sentinel for any other driver operation that is not supported yet.

Forgejo Actions CI driver ​

ci/forgejoactions keeps the ci.Driver contract of the GitHub Actions driver, with these Forgejo specifics:

  • Run matching: a run matches by workflow file name, event, and creation time, truncated to whole seconds. Forgejo identifies a workflow by its file name only, so the directory of the workflow path does not matter. The event is the run's trigger_event (the workflow's on key, for example pull_request_target) when Forgejo reports it, and the webhook event otherwise. When no matching run appears, WaitForWorkflow returns a *ci.NotDispatchedError, so steps retry once with the clock-skew buffer and the failure diagnostics list the repository's runs. ListRecentRuns sets forge.WorkflowRun.Path to the workflow file name.
  • Status: Forgejo's success, failure, cancelled, and skipped become a completed run with that conclusion, running becomes in_progress, waiting becomes queued, and blocked becomes waiting.
  • Artifacts: every artifact comes from the run that uploaded it, by the existing names (fullsend-<agent>, optionally with .matrix-<n>). The ...After downloads scan the runs created since the trigger, newest first, and download from the newest run whose own listing has a match. Agent downloads only use completed runs. The driver never uses a repository-wide artifact listing. An instance that serves artifacts directly from object storage answers the download with a redirect, which the adapter refuses like every redirect of an authenticated request.
  • Agent jobs: harness agents are recognised by the GitHub Actions job names (Harness run (<agent>), or the stage name such as Triage for a built-in stage), matched by suffix, or by the agent's artifact in a completed run.
  • Empty matrix: a harness run settles as an empty matrix when it completed, its Harness dispatch job succeeded, and no Harness run (<agent>) job was scheduled. The unexpanded matrix job may be skipped or absent: Forgejo replaces a matrix job with its expanded jobs once the matrix is known.

Managed forgejo-dev stack ​

make behaviour-test with ENVIRONMENT=forgejo-dev owns the stack's whole lifecycle; CI runs no separate provisioning step. Package pkg/behaviourtest/drivers/install/forgejostack implements it:

  • Pinned versions: Forgejo 17.0.1 (rootless server image) and Forgejo Runner 13.2.1. forgejostack/versions.go is the only place that names them. Bump them there, together, along with the job image that the runner labels docker and ubuntu-latest map to.
  • Engine: the stack runs on the host's Docker or Podman engine. It talks to the engine through its Unix socket using the Docker Engine API, which Podman also serves. DOCKER_HOST, then CONTAINER_HOST, select the socket and must be unix:// URLs. With neither set, the first existing default is used: /var/run/docker.sock, then $XDG_RUNTIME_DIR/podman/podman.sock, then /run/podman/podman.sock. The socket is mounted into the runner, which starts job containers on the same engine. It is not mounted into the job containers.
  • Canonical URL: http://127.0.0.1:<port>/, on a free loopback port picked per run. Forgejo, the runner, and every job container share the host network namespace, and Forgejo listens on loopback only. The one URL therefore reaches the same server from the behaviour-test process, the runner, and job containers. This holds under rootful Docker and under Podman, rootful or rootless, and Forgejo is not exposed beyond the host. Rootless Docker is not supported: its host network is the daemon's own namespace, not the test process's, so startup detects it and fails fast with an infrastructure error. The trade-off is that job containers share the host's network namespace. That is acceptable for a disposable test stack running Fullsend's own workflows, but this profile needs a Linux host engine.
  • Startup and readiness: the factory pulls the images and starts Forgejo with SQLite, Actions enabled, and registration and SSH disabled. It waits for api/healthz at the canonical URL, then creates a local-only admin user, seeds the agent-definition fixture (see below) and registers a runner with capacity 2. Finally it pushes a readiness workflow whose job runs in a job container and fetches the canonical URL. The factory returns only after that run succeeds. A successful run shows that the runner picks up jobs at the canonical URL and that job containers can reach it. It then logs the Forgejo and Runner versions. Startup is bounded at 20 minutes, the health check at 3, and the readiness job at 10.
  • Agent-definition fixture: the stack creates a public fullsend-ai/agents repository and commits a minimal fixture to it in one commit: a triage harness and the agent prompt and policy it references (forgejostack.AgentFixtureFiles). Stack.AgentsRef is that commit. The driver implements the optional install.AgentSourceEnvReporter interface: AgentSourceEnv returns FULLSEND_FORGEJO_URL, FULLSEND_FORGEJO_AGENTS_REPO and FULLSEND_FORGEJO_AGENTS_REF for the stack. With them set, fullsend resolves built-in agents from the stack at that commit and never from GitHub (see Agent definitions from a Forgejo instance). Repository configs must also allow <canonical URL>fullsend-ai/agents/raw/ in allowed_remote_resources.
  • Teardown: Finalize (registered as test cleanup, so it runs at the end of the CI job) stops the runner. It then removes every container labelled ai.fullsend.behaviour.forgejo-stack=<stack name>: leftover job containers, the runner, and Forgejo, with their anonymous volumes. The stack keeps no other engine resources.
  • Diagnostics: startup, readiness, and teardown failures are infrastructure-classified (behaviourfail.Mark). A factory failure fails the run at bootstrap through the normal completion report, so it is eligible for the one infrastructure retry. The error names the failed phase and includes the last 50 log lines of each started container. A failed startup removes what it started. A teardown error is logged as driver finalize: … like other drivers' teardown errors.

TestStack_Integration in forgejostack runs the real stack when FULLSEND_FORGEJO_STACK_TEST=1. It checks the canonical URL from the test process and from the runner container (startup already checked it from a job container), that the agent-definition fixture is served at its pinned commit, and that teardown leaves no stack container behind. Run it once per engine by pointing DOCKER_HOST or CONTAINER_HOST at each engine's socket.

Adding an SCM driver ​

  1. Implement scm.Driver in pkg/behaviourtest/drivers/scm/<vendor>/. Also implement the optional scm.PullRequestHeadSHAReader interface (GetPullRequestHeadSHA). Dummy-agent fixtures that use the <pr_head_sha> placeholder need it.
  2. Register the driver in behaviourtest.RunSuite when BEHAVIOUR_SCM=<vendor>.
  3. Document the env var value here.
  4. Add @skip:<vendor> tags on scenarios that cannot run until the driver is complete.

Use forge.Client for operations it already exposes; add REST helpers inside the driver package only when necessary (e.g. GetIssue with labels).

Adding a CI driver ​

  1. Implement ci.Driver — WaitForWorkflow, FindCompletedWorkflowRun, AssertNoWorkflow, GetRunLogs, DownloadArtifacts, DownloadNamedArtifactFromRun, DownloadNamedArtifactAfter, WaitForHarnessAgent, WaitForHarnessAgentRound, WaitForFailedHarnessAgent, AssertNoHarnessAgentArtifact, CountHarnessDispatches. A WaitForWorkflow timeout with no matching run must wrap ci.ErrWorkflowNotDispatched (for example with %w), so steps retry it once with the clock-skew buffer. Only a *ci.NotDispatchedError enables the dispatch diagnostics. It is GitHub-specific: its message reads workflow <file> ... was not dispatched. A driver for another forge wraps the sentinel with its own wording, as GitLab CI does with pipeline (<event>) %w. The diagnostics also need ci.RunLister (step 2).
  2. Also implement the optional ci.RunLister interface (ListRecentRuns). A failed scenario's After hook uses it to save the logs of runs that no step resolved before the leased repository is deleted. Without it, only the run a step resolved has its logs collected.
  3. Also implement the optional ci.EmptyMatrixWaiter interface (WaitForHarnessEmptyMatrix). The the harness dispatch completes with an empty matrix step needs it to assert that a harness run succeeded without dispatching any agent.
  4. Also implement the optional ci.AgentArtifactDownloader interface (DownloadAgentArtifactsFromRun, DownloadAgentArtifactsAfter). It selects artifacts by logical agent and downloads every artifact a repeated agent uploads (for example one per matrix entry). Without it, steps fall back to DownloadNamedArtifactFromRun and DownloadNamedArtifactAfter with the exact name fullsend-<agent>, so a repeated agent's additional artifacts are not collected.
  5. Map forge WorkflowRun types to portable polling logic; reuse patterns from the GitHub Actions driver in pkg/behaviourtest/drivers/ci/githubactions/.
  6. Register in behaviourtest.RunSuite for the matching BEHAVIOUR_CI value.

Adding an install driver ​

  1. Discover existing env vars. Read .github/workflows/e2e.yml for secrets and env vars already wired into the BT job (search for env: blocks in the behaviour test step). Use existing vars — e.g., TEST_*_PEM for role PEMs, TEST_CLOUDFLARE_* for CF credentials — rather than inventing new ones. Cross-reference e2e-testing.md for the full secrets inventory and app-to-PEM mapping.
  2. Discover CLI flag surface. Read the CLI source for the commands your driver will invoke (e.g., internal/cli/mint.go for mint deploy, internal/cli/mint_delete.go for mint delete). Check the full flag surface — especially optional flags like --worker-name, --workflow-host-repos, --per-repo-wif-repos, --app-set, and --pem-dir. Ensure deploy and teardown commands receive symmetric identifying flags (e.g., both mint deploy and mint delete need --worker-name if the Worker name is non-default).
  3. Handle app set. Test PEMs belong to the fullsend-test app set, not the default fullsend-ai. Pass --app-set fullsend-test explicitly when deploying with test PEMs. Omitting this causes the CLI to validate PEMs against the wrong GitHub Apps.
  4. Implement install.Driver in a new file under pkg/behaviourtest/drivers/install/. Each driver variant lives in the same package (e.g., repopool_cfmint_previews.go, repopool_external_mint.go) behind the shared install.Driver interface. Place common helpers shared across drivers in install/common/ (e.g., RunGitHubSetup, ResolveInferenceWIFProvider).
  5. Register the driver in behaviourtest.RunSuite (installFactoryFor in pkg/behaviourtest/select.go). Install driver selection is keyed by ENVIRONMENT, not BEHAVIOUR_INSTALL_MODE.
  6. Use repopool_external_mint.go (~71 lines) as the minimal reference implementation. For a more complex example showing CLI arg construction, preview alias generation, and teardown semantics, see repopool_cfmint_previews.go.
  7. Export CLI arg builders. Export functions like DeployArgs and TeardownArgs so unit tests can verify arg construction without shelling out to the real CLI.
  8. Document the new driver here — add the env var value and any new secrets or configuration required.

Step definitions ​

Steps must not import forge-specific packages (internal/forge/github, internal/forge/gitlab) directly — only drivers. This keeps scenarios vendor-agnostic.

Steps use w.Org and w.RepoName (the allocated repo name) plus per-repo constants from the install package (PerRepoTriageWorkflow, PerRepoAgentWorkflow, PerRepoAgentArtifact) for workflow and artifact paths.

Testing drivers ​

Prefer unit tests with httptest for REST helpers. Optional smoke scenarios against live backends use the behaviour suite's credentials (GITHUB_TOKEN, halfsend org pool).

Future backends checklist ​

  • [x] GitLab SCM driver (implemented; @skip:gitlab tag removal pending)
  • [x] GitLab CI driver (implemented; suite wiring currently uses a GitHub-backed forge.Client — not yet live-testable against real GitLab backends)
  • [ ] Forgejo SCM, Forgejo Actions CI, and forgejo-dev install drivers (selection, not-implemented SCM/CI stubs, and the managed stack lifecycle; see Forgejo drivers)
  • [ ] Tekton CI driver
  • [ ] Non-GitHub install backends