Urgent.News

One page, thousands of outlets. See who else covered it.

Editions

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.

How to Stop Your Discord Bot From Sleeping on Render's Free Tier

A step-by-step tutorial to stop a discord bot from sleeping on Render's free tier — the real cause, the fix, and a working code example.

  • Discord bots on Render's free tier may stop functioning due to health checks.
  • Install staypresent library to keep Python applications running.
  • Configure main.py with staypresent.web.json() and set Render start command to python main.py.

"What's the Catch?" — Why StayPresent Is Actually Free

A tool that handles crash recovery, hang detection, and a full status page sounds like it should cost something. Here's why it doesn't, and won't.

  • StayPresent is free to use under MIT License.
  • No infrastructure costs, runs inside user's deployment.
  • Open source, transparent license, no hidden features.

More from Thursday 20 August →