Skip to content

Track on-demand Jetpack backup requests through abilities - #55524

Draft
jom wants to merge 3 commits into
trunkfrom
codex/mcp-1524-backup-status
Draft

jom wants to merge 3 commits into
trunkfrom
codex/mcp-1524-backup-status

Conversation

@jom

@jom jom commented Nov 27, 2026 •

Copy link
Copy Markdown
Member

Related to MCP-1524

Proposed changes

  • Return a durable request ID and initial queued status from jetpack-backup/request-backup, while retaining its existing message field.
  • Add a read-only jetpack-backup/get-backup-request-status ability. Completed results include the backup and rewind identifiers.
  • Reject malformed handles before polling. If an older backend accepts a backup without a valid handle, return a do-not-retry error. Treat only an explicit unknown-request response as terminal; a missing status route remains retryable.

Related product discussion/links

  • Deploy gate: 265174-ghe-Automattic/wpcom must deploy before this Jetpack change.

Does this pull request change what data or activity we track or use?

The ability returns the site's backup request status and resulting restore point to authorized callers. It adds no analytics tracking.

Testing instructions

  • Local Backup package PHPUnit passed: 540 tests, 1,434 assertions. PHP syntax, repository Code Sniffer, and diff whitespace checks passed. The wpcom PR's CI is green.
  • The existing enqueue test now checks the UUID handle, queued state, and request time. A new test rejects malformed handles without an HTTP fixture. New tests that fake backend HTTP responses and fake VaultPress transition tests were omitted at the requester's direction. This leaves the terminal versus retryable 404 split and backend status transitions without unit coverage.
  • Independent Claude review passed the final combined diff with no blocking findings. Remaining review risks are backup-attempt correlation and concurrent cleanup of the request index.
  • After wpcom deploys, use an authorized Atomic staging site to call request-backup, retain request_id, and poll get-backup-request-status until it reports completed with backup_id and rewind_id, or failed with a reason. An unknown valid UUID should return not found; a status route that has not deployed should remain retryable. Do not repeat a request that returned a tracking-unavailable error.

@github-actions

github-actions Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Are you an Automattician? Please test your changes on all WordPress.com environments to help mitigate accidental explosions.

  • To test on WoA, go to the Plugins menu on a WoA dev site. Click on the "Upload" button and follow the upgrade flow to be able to upload, install, and activate the Jetpack Beta plugin. Once the plugin is active, go to Jetpack > Jetpack Beta, select your plugin (Jetpack), and enable the codex/mcp-1524-backup-status branch.
  • To test on Simple, run the following command on your sandbox:
bin/jetpack-downloader test jetpack codex/mcp-1524-backup-status

Interested in more tips and information?

  • In your local development environment, use the jetpack rsync command to sync your changes to a WoA dev blog.
  • Read more about our development workflow here: PCYsg-eg0-p2
  • Figure out when your changes will be shipped to customers here: PCYsg-eg5-p2

@github-actions github-actions Bot added [Package] Backup [Plugin] Backup A plugin that allows users to save every change and get back online quickly with one-click restores. [Plugin] Jetpack Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/ [Status] In Progress [Tests] Includes Tests labels Nov 27, 2026
@github-actions

github-actions Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Thank you for your PR!

When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:

  • ✅ Include a description of your PR changes.
  • ✅ Add a "[Status]" label (In Progress, Needs Review, ...).
  • ✅ Add testing instructions.
  • ✅ Specify whether this PR includes any changes to data or privacy.
  • ✅ Add changelog entries to affected projects

This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖


Follow this PR Review Process:

  1. Ensure all required checks appearing at the bottom of this PR are passing.
  2. Make sure to test your changes on all platforms that it applies to. You're responsible for the quality of the code you ship.
  3. You can use GitHub's Reviewers functionality to request a review.
  4. When it's reviewed and merged, you will be pinged in Slack to deploy the changes to WordPress.com simple once the build is done.

If you have questions about anything, reach out in #jetpack-developers for guidance!


Jetpack plugin:

The Jetpack plugin has different release cadences depending on the platform:

  • WordPress.com Simple releases happen as soon as you deploy your changes after merging this PR (PCYsg-Jjm-p2).
  • WoA releases happen weekly.
  • Releases to self-hosted sites happen monthly:
    • Scheduled release: December 8, 2026
    • Code freeze: December 7, 2026

If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack.


Backup plugin:

No scheduled milestone found for this plugin.

If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack.

@github-actions github-actions Bot added the [Status] Needs Author Reply We need more details from you. This label will be auto-added until the PR meets all requirements. label Nov 27, 2026
@jp-launch-control

jp-launch-control Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Code Coverage Summary

Coverage changed in 2 files.

File Coverage Δ% Δ Uncovered
projects/packages/backup/src/abilities/class-backup-abilities.php 509/567 (89.77%) -3.33% 25 💔
projects/packages/backup/src/class-jetpack-backup.php 479/584 (82.02%) -1.57% 11 💔

Full summary · PHP report · JS report

Coverage check overridden by Coverage tests to be added later Use to ignore the Code coverage requirement check when tests will be added in a follow-up PR .

@jom jom added the Coverage tests to be added later Use to ignore the Code coverage requirement check when tests will be added in a follow-up PR label Nov 27, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Coverage tests to be added later Use to ignore the Code coverage requirement check when tests will be added in a follow-up PR [Package] Backup [Plugin] Backup A plugin that allows users to save every change and get back online quickly with one-click restores. [Plugin] Jetpack Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/ [Status] In Progress [Status] Needs Author Reply We need more details from you. This label will be auto-added until the PR meets all requirements. [Tests] Includes Tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant