Skip to content

Complete the production deployment workflow - #6480

Open
fatadel wants to merge 3 commits into
firefox-devtools:mainfrom
fatadel:issue-6435
Open

fatadel wants to merge 3 commits into
firefox-devtools:mainfrom
fatadel:issue-6435

Conversation

@fatadel

@fatadel fatadel commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Main | Deploy preview

Completes the remaining deployment steps from #6435 in the interactive yarn deploy-prod workflow.

  • Opens a prefilled Bugzilla form, updates the Firefox toolchain to the production merge commit in the FIREFOX_REPO_PATH checkout, and submits the revision through moz-phab. If this step fails, the script reports the error and continues with the remaining release steps.
  • Bumps the CLI version, publishes the CLI and pushes its tag from temporary clones, so the maintainer's Profiler branch and working tree stay unchanged.
  • Opens a prefilled Discourse announcement for review and publication, then creates the GitHub release from edited notes that link to the announcement.

Declining a prompt after the production merge skips only that step. --resume continues the steps after the latest production merge, for example after a skipped step or a failure.

Deployment notes credit pull request authors instead of Git authors, which can be the maintainer who merged. The new steps support --dry-run and ask for confirmation before each commit and remote change.

The deployment guide documents the two new manual steps and no longer describes the script step by step.

Closes #6435

@codecov

codecov Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.22%. Comparing base (bd4d572) to head (46b9f0c).
⚠️ Report is 116 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6480      +/-   ##
==========================================
+ Coverage   85.13%   85.22%   +0.09%     
==========================================
  Files         365      372       +7     
  Lines       39944    40786     +842     
  Branches    11398    11581     +183     
==========================================
+ Hits        34006    34760     +754     
- Misses       5498     5586      +88     
  Partials      440      440              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@fatadel fatadel changed the title Automate the remaining deployment steps Complete the production deployment workflow Nov 24, 2026
@fatadel
fatadel force-pushed the issue-6435 branch 7 times, most recently from 86ce14c to c90e875 Compare November 24, 2026 18:52
@fatadel
fatadel marked this pull request as ready for review November 25, 2026 13:18
@fatadel
fatadel requested review from canova and mstange November 25, 2026 13:19
@fatadel

fatadel commented Nov 25, 2026

Copy link
Copy Markdown
Contributor Author

The changes represent 3 atomic PRs which should make reviewing easier. But, if necessary, I can split this even further into separate PRs.

@canova canova left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The changes represent 3 atomic PRs which should make reviewing easier. But, if necessary, I can split this even further into separate PRs.

I'm happy accepting them either way.

I see that the windows CI tests are failing. Could you take a look?

@fatadel

fatadel commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

The changes represent 3 atomic PRs which should make reviewing easier. But, if necessary, I can split this even further into separate PRs.

I'm happy accepting them either way.

I see that the windows CI tests are failing. Could you take a look?

Oh yeah, somehow I missed that. Fixed now!

@fatadel

fatadel commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

I cleaned up the tests now too.

@fatadel
fatadel requested a review from canova November 26, 2026 15:09

@canova canova left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks, this is a good improvement to the deployment script!

My main concern is what happens after the production merge. Most of the new steps run after that point, and right now any failure or declined prompt there ends the run with no way to resume. I added some comments below too.

Comment thread bin/deploy-prod.mts Resolved
Comment thread bin/deploy-prod.mts Resolved
Comment thread bin/deploy-prod.mts Resolved
Comment thread bin/deploy-prod.mts Resolved
Comment thread bin/deploy-prod.mts Resolved
Comment thread bin/deploy-prod.mts Resolved
Comment thread bin/deploy-prod.mts Resolved
Carry production deployments through CLI tagging, Discourse
announcements, and GitHub releases. Use temporary clones for version
bumps and publication so deployment preserves the developer's current
branch and working copy and publishes the intended revision.

Declining a prompt after the production merge skips only that step,
and --resume continues from the latest production merge, because the
merge cannot be repeated.
Keep Firefox's Profiler fetch pinned to the production merge by filing
the update bug and submitting its revision during deployment. Report
toolchain failures without stopping the remaining release steps.
Resolve each deployed commit's introducing pull request so merge queues
and maintainer merges credit the contributor instead of the merger.
@fatadel

fatadel commented Dec 3, 2026

Copy link
Copy Markdown
Contributor Author

Thanks for the review, @canova! I think I've now addressed all the issues.

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.

Automate the remaining deployment steps

2 participants