Not yet rehearsed by a second maintainer against testnet. The walkthrough will correct this page.
main that touches the API deploys it. The deploy workflow already stops most bad revisions: it deploys the candidate with no traffic, smoke tests it on its own URL, and only then promotes it, routing back by name if anything fails. How that works, and every outcome of a run, is in RELEASING.md, How a deploy moves traffic. This page is for what the smoke test cannot see: a revision that passed it and still misbehaves.
Blast radius
The API serves mainnet and testnet from one service, so a bad revision affects both networks and every client: the web app, the SDK and integrators. A close in progress is never left half done by a rollback: the API keeps no progress between rounds, and the client resumes from the account’s state on the ledger.Steps
-
Is a deploy run still in progress? Let it finish: it ends following the latest revision, or restored to the one it recorded.
Expected: no run
in_progress. If the last run failed, read its job summary first: it names both revisions and the check that failed, and may already have restored traffic. -
Find the revision serving now and the last good one:
The newest revisions are listed first. Their names carry the commit (
lumenwipe-api-<sha7>-<run id>-<attempt>), so the last good one is the revision before the commit that introduced the problem. A-restorerevision runs the image of the revision it restored. -
Roll back to that revision by name, never “the previous one” by position:
Expected:
Done.and<good revision>at 100 percent. Traffic is now pinned: a configuration change, a kill switch included, does not reach users until traffic follows the latest revision again. If you need a switch while pinned, follow While traffic is pinned. -
Confirm the rollback:
Expected: the commit of
<good revision>, and200. Then repeat what was broken (a testnet close, the failing request) and check it works. -
Fix forward. Revert or fix the change in a pull request. Its deploy promotes a new revision with
--to-latest, which removes the pin. Until it merges, do not merge other API changes: each would deploy and remove the pin too. - If users noticed, post the resolved update from Incident response.
Confirm the fix
After the fix deploys:latestRevision: true at 100 percent, and the fix’s commit.
An upstream smoke result
A run whose summary shows | /health/deep | upstream (rpc_testnet) | promoted its candidate while an RPC provider was down for the revision serving before it too: the candidate’s /health/deep failed only on dependencies that revision also reported down, so the outage was not the candidate’s fault. The run also carries a warning naming them. Nothing needs rolling back, but the smoke test could not prove those dependencies work on the new revision, so check once the provider recovers:
"up" for every entry. If the provider is still down, follow Provider outage. If it recovered and the dependency is still "down" on the new revision, that revision broke it: roll back with the steps above.
Drill
A manual run of the deploy workflow withdrill: fail-smoke forces the smoke test to fail and shows the automatic path end to end: the candidate never takes traffic, and the run ends restored.
status.traffic afterwards shows the latest revision, a -restore one, at 100 percent.