Urgent.News

What's breaking now, across thousands of outlets.

Tech

The excluded-plugin setting that Playwright ignored — fixing browser-mode updates and false residual warnings

The symptom In browser-mode maintenance (Playwright, no SSH), plugins marked as "excluded from update checks" were still being updated. After the run, a "plugin updates remaining" WARNING email arrived every time. The excluded plugins were intentionally left behind, but the residual check treated them as unfinished updates and fired a warning — a two-part problem: wrong behavior and a misleading…

Playwright's excluded-plugin setting was unintentionally updating ignored plugins during browser-mode maintenance, despite being explicitly marked to avoid updates. This led to a two-part issue: incorrect behavior and misleading residual warnings. On SSH-capable sites, WP-CLI's --skip-plugins flag already handled ignored plugins correctly, but Playwright's browser_update_remaining_plugins() function lacked any filtering.

The problem persisted in both pure browser-mode updates and residual updates after SSH, even for sites with properly configured excluded plugins. To fix this, two changes were implemented: replacing the select-all approach with per-checkbox evaluation and adjusting the residual check to avoid false warnings. The new _ignored_plugin_slugs() function converts site ignored plugins into a set of lowercase stripped strings for easy comparison.

The _plugin_slug_from_checkbox_value() function extracts the plugin slug from a checkbox value, normalizing it to lowercase. These changes ensure only non-excluded plugins trigger residual warnings, eliminating misleading alerts and improving the maintenance process.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Deploying Multiple Python Bots to a Single Railway Container

A tutorial for running two or more python bots on Railway inside one container and one service, with independent crash recovery for each.

  • Deploy multiple Python bots in a single Railway container to save costs.
  • Bots communicate through main.py entry point using StayPresent library.
  • Each bot runs as a separate subprocess with independent crash recovery.

More from Thursday 20 August →