Skip to content

Pipelines

The primary way to create tests with pybuggy is the staged goga pipeline (PybuggyApiAutomate): it automates API-test creation end to end — from topic requirements to committed, accepted tests. When an accepted suite later breaks, the companion PybuggyApiFix pipeline picks it up: it collects the failures, classifies each cause with you, and drives the fixes to a reviewed, passing state. When you want existing tests changed on your own request, the third line, PybuggyApiPatch, carries the change: it collects your intents, analyzes their impact, and drives the change to committed, accepted tests. For browser UI tests, the PybuggyWebAutomate pipeline mirrors the automate flow for the web: it explores the live pages, derives the requirements, and drives the same chain to committed, accepted UI tests. When accepted UI tests later break, the companion PybuggyWebFix picks them up: it collects the failures, walks the failing steps on the live UI, classifies each cause with you, and drives the fixes to a reviewed, passing state. When existing UI tests need a small change on your request, PybuggyWebPatch carries it: it collects the request against the tree and the live UI, applies the change (manifests first, then the tests with their steps regenerated), and accepts the changed and affected tests before committing.

Launch

goga pipeline pybuggy:api.automate   # create the API tests
goga pipeline pybuggy:web.automate   # create the web UI tests
goga pipeline pybuggy:api.fix        # repair the API tests when they break
goga pipeline pybuggy:web.fix        # repair the UI tests when they break
goga pipeline pybuggy:api.patch      # change existing API tests
goga pipeline pybuggy:web.patch      # change existing UI tests

Prerequisites: pybuggy installed (goga install pybuggy) and the environment initialized (goga tool pybuggy init — see Getting Started). Each pipeline works on the current git branch as its topic and drives the chain; every artifact it produces lives in the topic's history directory (.goga/history/<year>/<topic>/), addressed by goga history path -f <artifact>.

In this section

  • The api.automate pipeline — the stage chain, the artifacts it produces, and how the test code gets built.
  • The web.automate pipeline — the browser-UI counterpart: live page exploration via playwright-cli, step-sentence tests through the web fixture, and the LLM step generation that happens on the first (building) test run; supports unattended runs from the testcase review onward.
  • The api.fix pipeline — the repair cycle for failing suites: failure collection, cause classification, the fix plan, and the review verdict.
  • The web.fix pipeline — the repair cycle for failing UI tests: the run environment pinned from web.yml, the failing steps checked on the live page, cause classification with the user, and class-driven fixes to a reviewed state.
  • The api.patch pipeline — the change cycle for existing tests: intent collection, impact analysis, manifest application, and the plan-driven rework of the test code.
  • The web.patch pipeline — the change cycle for existing UI tests: the request correlated with CODEMANIFEST/usages/pages and checked on the live UI when needed, the change applied manifests-first with every changed test run twice, and the changed plus affected tests accepted in strict mode before the commit.
  • Workflows — override or extend the pipeline for your project with a .goga/workflows/pybuggy:<pipeline>.yml file.