Skip to content

51928: Provides telemetry for plugin/theme update failures - #850

Open
hellofromtonya wants to merge 31 commits into
WordPress:masterfrom
hellofromtonya:add/51928-update-failure-telemetry
Open

51928: Provides telemetry for plugin/theme update failures#850
hellofromtonya wants to merge 31 commits into
WordPress:masterfrom
hellofromtonya:add/51928-update-failure-telemetry

Conversation

@hellofromtonya

@hellofromtonyahellofromtonya commented Jan 3, 2021

Copy link
Copy Markdown
Contributor

Trac ticket: https://core.trac.wordpress.org/ticket/51928

  • Applies telemetry patch => props @afragen
  • Changes time() to microtime( true )
  • Adds unit tests for sending (or not sending) error report

Notes:

  • Adds local zip files for theme and plugin for an old and new version
  • Does not make a remote call to w.org to help speed up tests
  • Encapsulates redundant code in a shared testcase
  • Adds a data provider class to reuse test data and reduce redundant code

This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.

@hellofromtonya
hellofromtonyaforce-pushed the add/51928-update-failure-telemetry branch from d0cff26 to 7a23a89CompareJanuary 3, 2021 18:57
@hellofromtonya
hellofromtonyaforce-pushed the add/51928-update-failure-telemetry branch from 546cc80 to ce8d1d6CompareJanuary 5, 2021 18:47
@hellofromtonya
hellofromtonya marked this pull request as ready for review January 5, 2021 20:30
hellofromtonyaand others added 10 commits January 5, 2021 15:10
…), ::upgrade(), and ::bulk_upgrade() methods only.
Parent Theme installs gets special treatment, as it's a nested theme installer.
The context (slug, version of package) is passed either directly, or by collecting it from the upgrader skin via the `api` property.
Some newer code required adding some extra contextual arguements to the upgrader skin in order for ^ to work.
By removing most of the calls from WP_Upgrader, it reduces the number of failure pings to once per process, rather than 2-3 as previously.
dd32and others added 3 commits January 22, 2021 18:10
Update 51928 update failure telemetry with simplified error handling
@afragen

Copy link
Copy Markdown
Member

Merge conflicts should be fixed in hellofromtonya#4

Sign up for freeto 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.

4 participants

@hellofromtonya@afragen@dd32@audrasjb