Page MenuHomePhabricator

Schedule and operate a regular run of the pre-generation script
Closed, ResolvedPublic

Description

Once the script exists (T422621), it needs to run on a timer against a specific input set, on a specific host, under a specific operator, with a specific failure-notification path. This task is purely the operational wrap-around — no new code in the script itself — but it is where the storage layer goes from "a thing a developer can populate by hand" to "a thing a reader can depend on". The scheduled run drives the script's explicit-list input form (T422622) rather than any of the optional inputs, so that the scheduled set is reproducible and auditable.

Acceptance criteria:

  • A scheduling vehicle has been selected with Release Engineering / SRE and is running the pre-generation script on the agreed cadence (weekly by default, or whatever SRE ultimately settles on).
  • The scheduled run drives the script's explicit-list input form, and the list in use is stored under version control or another reproducible-and-auditable store.
  • A reactive per-entry regeneration path exists, gated on the new wikilambda-abstract-purge right, triggerable from both abstract.wikipedia.org and client wikis, and routed through the fan-out plumbing selected in the purge/invalidation stakeholder bullet.
  • The wikilambda-abstract-purge right is granted to the stewards and global sysops global groups via WMF mediawiki-config, in addition to the local sysop default, so that cross-wiki responders can purge stored entries during an incident without waiting for a local sysop.
  • Non-zero exit codes, per-entry error counts, and wall-clock runtime are surfaced to the standard WMF alerting stack; two consecutive failed scheduled runs page the agreed on-call rota.
  • A runbook documenting the manual out-of-band override path (for post-fragment-fix refreshes and similar) is published alongside the scheduler configuration.

Event Timeline

Change #1302213 had a related patch set uploaded (by Jforrester; author: Jforrester):

[operations/puppet@production] [WIP] Periodic jobs: Add abstractwiki_update_generated_articles

https://gerrit.wikimedia.org/r/1302213

Change #1302213 merged by RLazarus:

[operations/puppet@production] Periodic jobs: Add abstractwiki_update_generated_articles

https://gerrit.wikimedia.org/r/1302213

Confirmed ran successfully this morning.