Skip to content

Release hackbot agents and services by version - #7469

Merged
suhaibmujahid merged 2 commits into
mozilla:masterfrom
suhaibmujahid:hackbot-release-flow
Nov 12, 2026
Merged

suhaibmujahid merged 2 commits into
mozilla:masterfrom
suhaibmujahid:hackbot-release-flow

Conversation

@suhaibmujahid

Copy link
Copy Markdown
Member

Fixes #7468

@suhaibmujahid
suhaibmujahid requested a review from a team as a code owner November 12, 2026 06:45
Copilot AI balanced review requested due to automatic review settings November 12, 2026 06:45

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The stage Sentry deploy environment mismatches runtime events, and the agent pipeline’s one-hour wait can expire while an earlier build is still within its allowed two-hour runtime.

2 open issues
What changed in this PR

Changes Hackbot’s release flow so stage deployments follow package versions rather than routine source changes, while dedicated dev branches support sandbox deployments.

Changes:

  • Adds version-aware release planning, deployment records, and build queuing.
  • Updates agent and service pipelines to target one environment and track versioned Sentry releases.
  • Makes production promotion manually initiated and updates documentation and tests.
File Description
tools/​hackbot-deploy/​tests/​test_manifest.py Tests VERSION file parsing and validation.
tools/​hackbot-deploy/​tests/​test_deploy.py Tests release planning, execution, metadata, and build waiting.
tools/​hackbot-deploy/​README.md Documents version-based releases and promotion workflows.
tools/​hackbot-deploy/​hackbot_deploy/​release.py Adds release planning and batch deployment logic.
tools/​hackbot-deploy/​hackbot_deploy/​manifest.py Reads and validates package versions.
tools/​hackbot-deploy/​hackbot_deploy/​deploy.py Records versions, checks release eligibility, and waits for older builds.
tools/​hackbot-deploy/​hackbot_deploy/​cli.py Exposes release planning, execution, and waiting commands.
services/​hackbot-ui/​cloudbuild.yaml Adds environment-specific UI releases and versioned Sentry tracking.
services/​hackbot-api/​cloudbuild.yaml Adds environment-specific API releases and versioned Sentry tracking.
agents/​cloudbuild.yaml Builds and deploys planned agents to one environment.
.github/​workflows/​hackbot-prod-deploy.yml Removes automatic promotion offers and records production Sentry deploys.

Review effort: Balanced

Comment thread agents/cloudbuild.yaml Resolved
Comment thread services/hackbot-ui/cloudbuild.yaml Resolved
@suhaibmujahid
suhaibmujahid merged commit 753d909 into mozilla:master Nov 12, 2026
12 of 13 checks passed
@suhaibmujahid
suhaibmujahid deleted the hackbot-release-flow branch November 12, 2026 07:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Release Hackbot agents and services by version instead of on every master push

2 participants