HomeDevCentral

Extract logic from run-report script into an action module

Description

Extract logic from run-report script into an action module

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"

Reviewers: dereckson

Reviewed By: dereckson

Maniphest Tasks: T2124

Differential Revision: https://devcentral.nasqueron.org/D3677

Details

Provenance
derecksonAuthored on Sun, Sep 14, 16:04
derecksonPushed on Sun, Sep 14, 16:20
Reviewer
dereckson
Differential Revision
D3677: Extract logic from run-report script into an action module
Parents
rRPRT96ffd2ae98fd: Find Zed artwork not in expected locations
Branches
Unknown
Tags
Unknown
References
HEAD -> main
Tasks
T2124: Update reports automatically on Agora