Page MenuHomeDevCentral

Update reports automatically on Agora
ClosedPublic

Authored by dereckson on Mon, Sep 15, 01:12.
Tags
None
Referenced Files
F11775931: D3678.id9558.diff
Sun, Sep 21, 10:10
Unknown Object (File)
Sat, Sep 20, 04:24
Unknown Object (File)
Sat, Sep 20, 00:13
Unknown Object (File)
Fri, Sep 19, 17:04
Unknown Object (File)
Thu, Sep 18, 06:46
Unknown Object (File)
Wed, Sep 17, 10:07
Unknown Object (File)
Wed, Sep 17, 09:48
Unknown Object (File)
Tue, Sep 16, 12:11
Subscribers
None
Tokens
"Y So Serious" token, awarded by dereckson.

Details

Summary

Rhyne-Wyse is a bot based on pywikibot to update pages on the wiki
for automated reports.

It can use the code from nasqueron-reports tool, the same run-report uses,
to generate a report for ressources reachable from a standard server.

For resources less easily accessible, it can also fetch a report
already generated by run-report on a remote URL, as implemented
in D3674 for AI content from DevCentral databases.

It's not intended to run as a daemon like an IRC bot, but to be run
at regular intervals, for example daily.

Ref T2124

Test Plan

Diff Detail

Repository
rRPRT Nasqueron internal reports
Lint
Lint Passed
Unit
No Test Coverage
Branch
pywikibot
Build Status
Buildable 5919
Build 6201: arc lint + arc unit

Event Timeline

dereckson created this revision.

AI use

  • Initial code from ChatGPT, but at the end, all the code excepted for hashes is rewritten by hand
    • Notably, marker search from GPT model was using regexp, but we belong to the sect "use regexp where it makes sense, not everywhere"
  • JetBrains PyCharm autocomplete feature worked like a charm in the README, to help to structure the list of options or the table. Less for the description part, mostly human-written.

Vault authentication

With this change, it works when run with a default Vault configuration, for example VAULT_TOKEN defined in environment. So humans can run it, but it's not yet service-ready.

I wrote this evening a new library called secretsmith, a wrapper on the top of hvac, to configure Vault as we want from a configuration file.
This library is generic enough we can publish it on PyPI.

This revision is now accepted and ready to land.Sat, Sep 20, 00:30
This revision was automatically updated to reflect the committed changes.