Page MenuHomeDevCentral

Extract logic from run-report script into an action module
ClosedPublic

Authored by dereckson on Sep 14 2025, 16:09.
Tags
None
Referenced Files
F22789105: D3677.id.diff
Sat, Jan 31, 14:49
Unknown Object (File)
Fri, Jan 30, 06:41
Unknown Object (File)
Tue, Jan 27, 21:04
Unknown Object (File)
Mon, Jan 26, 14:12
Unknown Object (File)
Sat, Jan 24, 13:31
Unknown Object (File)
Sat, Jan 24, 02:23
Unknown Object (File)
Fri, Jan 23, 07:42
Unknown Object (File)
Thu, Jan 22, 04:51
Subscribers
None

Details

Summary

To allow the MediaWiki client call the same logic than the run-report
script, we need three things for generate_report:

  1. to be in a specific module callable from Python code
  2. to move error handling from the generate code to the caller
  3. to output both the result of connector and format callbacks

The Report and RawReport classes will allow the bot to perform analysis
on the report content to know if it's worthwhile or not to update the page.

Ref T2124

Test Plan

Refactored with real-time control of report output:
gwatch "bin/run-report agora-operations-grimoire-older-pages"

Diff Detail

Repository
rRPRT Nasqueron internal reports
Lint
Lint Not Applicable
Unit
Tests Not Applicable