andk / pause

Perl authors upload server
http://pause.perl.org/
150 stars 57 forks source link

indexing context: make it easier to log and report on indexing status #405

Open rjbs opened 1 year ago

rjbs commented 1 year ago

This branch provides a common interface (the context object) for collecting and reporting on errors or warnings found during indexing. It also replaces the "set skip or return early" logic with an exception system, to allow deep-down checks to declare that a bit of indexing can't succeed.

I have compared the messages generated by test runs, and believe that while there are some changes, they are either neutral or improvements.

Here's more detail:

wolfsage commented 1 year ago

A bunch of code can also be removed if you wish like things referencing INDEX_WARNINGS and has_index_warnings... etc

rjbs commented 1 year ago

I reworded the awkward commit. I also removed INDEX_WARNING stuff, which led me to find that the prelude-to-warnings text was not being included.

rjbs commented 4 months ago

@wolfsage As discussed today, I think this is reviewable.

rjbs commented 2 months ago

I've added commits from PAUSE::Indexer::Errors: fix keys from $old to PAUSE::dist: do not include private errors in report which I think address the last(???) outstanding thing. I'm going to look into coverage a bit more.

rjbs commented 2 months ago

I added code to let me get an mbox of all mail sent during testing, which I then inspected in my MUA. Looks pretty good.

rjbs commented 2 months ago

I added just a bit more test coverage for a notable but never-called-during-tests method.