Release journey¶
Use mise run release-journey to find where a release waits between its staging cut,
MR validation and production deployment. The local dashboard reads GitLab and AWS.
It does not change labels, pipelines, deployments or release approvals.
Run¶
Authenticate glab for GitLab.com and the AWS CLI for the production account first.
The default project is evenergi/develop. Both production regions use the same AWS
profile. Collection reads MR label histories since the validation report's epoch and
can take several minutes.
GitLab reads retry the failed request up to three attempts for connection failures, timeouts, rate limits and transient server errors. Completed pages are retained during retries. Progress messages identify the endpoint, page and HTTP status without printing response bodies. Authentication and access errors stop immediately. If GitLab requests a pause longer than 30 seconds or supplies a retry date, the tool stops and asks you to try later. A discovery failure never produces a report from an incomplete MR list.
# Latest product cut by tag creation time.
mise run release-journey
# Inspect a particular cut, including a historical completed journey.
mise run release-journey --tag 2026.45.0.1234abcd
# Select an AWS profile, or collect GitLab evidence only.
mise run release-journey --aws-profile production
mise run release-journey --skip-aws
# Explore synthetic examples or reopen a downloaded snapshot offline.
mise run release-journey --demo
mise run release-journey --input /path/to/release-journey.json
--project selects another GitLab.com project. ECS remains the BetterFleet production
Core service; changing the GitLab project does not change AWS targets.
--no-browser prints the URL; --port selects a local port. Otherwise the tool opens
the browser on an automatically allocated port. Keep the URL's session token private.
The server binds to 127.0.0.1. Stop it with Ctrl+C.
Read the report¶
- Compare the measured stage durations. Unknown durations are missing or overlapping evidence, not zero time. The longest measured interval excludes unknown stages.
- Inspect the common timeline and MR waits. Filter by author or required validation. Pending waits stop at the observation time and have striped bars.
- Open the MR and pipeline links to inspect the source. Expand Evidence and limits for collection errors, overlapping stages and regional-order warnings.
- Download a snapshot to retain the evidence. Reopen it with
--input; run a new collection to refresh it. No automatic polling or permanent local cache is used.
Snapshots contain internal MR titles, authors and label history. Retain them in approved internal storage, not Git. Reopening uses the saved selection and collection time.
Timing model¶
| Milestone | Evidence |
|---|---|
| Release cut | Creation time of the earliest matching tag pipeline, with the tag's commit SHA |
| Required MRs validated | Latest effective validation label addition across all required MRs in the cohort |
| Australia Core ready | First successful matching Core ECS deployment finish in ap-southeast-2 |
| Canada Core ready | First successful matching Core ECS deployment finish in ca-central-1 |
Cut-to-validation time includes staging deployment and waiting for recorded validation. Pipeline status and the first successful finish across retries appear as context only. Manual work can keep a tag pipeline open after staging is ready; its finish is not used as the staging-ready timestamp or included in bottleneck comparisons.
Product tags match YYYY.WW.N.<8-character SHA>. The previous cut is the preceding
dated product tag. Undated historical tags are excluded with a warning; selecting an
undated tag fails rather than substituting a commit date.
New MRs were merged after the previous tag's creation and no later than the selected
tag's creation. Outstanding required MRs merged since 14 May 2026 carry over. Required
means the MR had Rollout::Verify and roll out or Rollout::Learn before rollout at
the cut. This extends the existing CI validation report with completed MRs and event
timing. Like that report, membership uses merge timestamps, not commit ancestry.
GitLab label events reconstruct historical state. A removal invalidates validation; a later addition starts a new effective validation time. A label applied before the cut has zero wait from this cut. A present label without timing evidence is unknown. Unreadable label history keeps the MR visible and conservatively treats its route as required. An empty required cohort has no inferred validation-completion timestamp.
Validation is observed at collection time until both regional milestones are known. Then it is frozen at the later completion. Labels added afterward do not count as pre-production validation. The report warns when required labels were missing at Australia's completion. Label timing measures recorded validation, not testing effort.
The AWS reader uses cluster bf-manage-core in Australia and
ecs-cluster-bf-manage-core in Canada. Both use service ecs-service-bf-manage-core
and container ecs-task-bf-manage-core. It reads deployment history and the target service
revision's container image. The image tag must exactly equal the product Git tag.
Rollbacks, stopped deployments, digest-only images and substring matches do not count.
The reader follows pagination and rejects partial revision responses. It needs
ecs:ListServiceDeployments and ecs:DescribeServiceRevisions access in both regions.
ECS retains 90 days of deployment history. Missing success evidence can mean no promotion, expired history, unavailable access or a different image version. The tool does not infer deployment from task-definition registration or the current running task. Australia and Canada are historical Core proxies; they do not prove every service or intermediate region completed, or that the version remains deployed now. The Australia-to-Canada interval includes any pause between regions. This diagnostic is not a release gate.
Verification¶
The owning checks are tests/release_journey_test.py. They exercise label history,
carryover, interval arithmetic, deployment matching, source failures, local HTTP
access and snapshot reopening. The optional Chromium test also checks filtering,
downloads, narrow-screen layout and missing production evidence.
uv run --with pytest --with playwright --no-project playwright install chromium --only-shell
uv run --with pytest --with playwright --no-project pytest -q tests/release_journey_test.py
uvx --from ruff==0.15.12 ruff check bfd-scripts/scripts/release_journey*.py tests/release_journey_test.py --select E,F,I,C901 --ignore E501
uvx --from ty==0.0.75 ty check bfd-scripts/scripts/release_journey*.py
The root mise run type-check dispatcher selects service repositories and has no
BFDev harness selector; run pinned ty directly for these files.