Release Pipelines: Azure DevOps + GitHub

A synthetic Azure DevOps organisation and GitHub repository that a Zammo SaaS release runs against, sharing one state. Runs move on a real clock and stop at exclusive locks, approvals and manual validations until someone acts, through the API or the release page, and push service-hook events to subscribers as they go.

Addresses and credentials

Azure DevOpshttp://localhost:8136, organisation Zammo, project Zammo Web (Zammo%20Web), project id 5d1c7a3e-2b8f-4e6a-9c0d-71a2b3c4d5e6
ADO authPAT ado-lab-pat: Authorization: Basic base64(":ado-lab-pat") (any user name) or Authorization: Bearer ado-lab-pat. Anything else is 401.
GitHubhttp://localhost:8137 (also under /api/v3), repository zammo-ai/Zammo
GitHub authAuthorization: Bearer github-lab-token or token github-lab-token. Anything else is 401 Bad credentials.

Azure DevOps

Paths are under /Zammo/Zammo%20Web/ (the project id works too) unless shown. api-version is ignored.

Every event is POSTed as JSON with the subscription's headers: {subscriptionId, notificationId, id, eventType, publisherId, message, detailedMessage, resource, resourceVersion, resourceContainers, createdDate}. Every resource has run {id, name, state, result, pipeline}, pipeline {id, name} and runId; stage events add stage {name, displayName, state: running|waiting|completed, result}; approval-pending adds approval {id, status}, stage and resource {type: environment, name}. Run events are sent when a run starts and completes; stage events when a stage starts, completes, and starts waiting because it has to: a lock another run holds, a pending approval or a manual validation. A lock nobody holds is taken on the spot, and the stage goes straight to running with no waiting event.

GitHub

Lists take per_page (up to 100) and page, with a Link header naming the next page.

The seeded release

Run ids move up by 10 on every reset, because Azure DevOps never reuses one: the first seed is 900000, 900001 and 900002, the next 900010, 900011 and 900012, and so on; GET /_lab/state and the build list say which are current. Below, the ids are the first seed's. Production (definition 143) run 900000 is parked on the manual validation “👍 Confirm Delete Detached Resources” in stage 3, so it holds the InternalStaging exclusive lock. Run 900001 builds HEAD of master (pull requests 9001, 9005, 9002 and 9003 merged since tag 2.121.0) and waits on that lock. Cancel 900000 and 900001 takes it, then waits on the detached-resources validation in stage 3, an approval on zammo-production before stage 13 (ProductionInstaller) and the validation “📦 Create Marketplace Application” in stage 13. When it completes, zammo-saas-prod (definition 214) run 900002 is queued with triggerInfo pointing at it; it waits on an approval on zammo-saas-prod before stage 2, its own detached-resources validation in stage 3 and an approval before stage 4 (UpdateApplication). Milestones: rNext, 2026 (open, 9001–9004), today's (closed). Stages that are not waiting take 20 seconds each by default.

Lab controls (no credentials)