~amolith/fediring#140: 
Ring traversal log?

It would be good to have some kind of record of when the ring was last traversed to check that all members have the links. This might be a log, or just a listing of the last date.

Status
RESOLVED CLOSED
Submitter
Alex Martin
Assigned to
Submitted
5 months ago
Updated
2 months ago
Labels
No labels applied.

~jbauer 5 months ago

Heya,

I'm not entirely sure what you mean. Do you mean that we should have the fediring program parse each page for the prev/next links, and then traverse it and record the last successful traversal time (or just alert if it couldn't traverse it or something) or would it be just recording when anyone last traversed the whole ring?

Thanks, Jake

~amolith 5 months ago

The backend does check each website's HTTP status code prior to performing a redirect, so that action could just be appended to a public-facing log file somewhere if that's what Alexandra means.

Alex Martin 5 months ago · edit

I'm not entirely sure what you mean. Do you mean that we should have the fediring program parse each page for the prev/next links, and then traverse it and record the last successful traversal time (or just alert if it couldn't traverse it or something) or would it be just recording when anyone last traversed the whole ring?

Either would be a good thing to have (and this is not a top priority), but mainly I just think it would be a good idea to have some kind of indicator of whether we know the ring is intact. My original thought was that someone would click through the ring (making sure that the links are actually visible and findable), then update a last-check time (and open tickets for and/or delist any sites without correct links), but that could be a lot of work to do on a regular basis, so automated checking may be better (as long as we assume people aren't going to hide the links).

~amolith 5 months ago

I agree that some kind of automated check would be beneficial. When the ring was smaller, I would just click through everyone by hand; now that it's passed 100 members, that's quite a lot of clicking and poking around for links.

I've been thinking about this for a while and I believe a good solution would be adding this functionality directly to the backend. The server is already a long-running process so doing consistency checks in the background makes sense to me.

I've created a separate ticket for that here:

https://todo.sr.ht/~amolith/public-tracker/11

~jbauer REPORTED CLOSED 2 months ago

I'm going to close this issue because the separate ticket is open and is tracking it.

I don't have control over the backend code, but I did write a small script https://git.sr.ht/~amolith/fediring.net/tree/master/item/check-integrity that just goes through each site on the ring and checks if it has the links. It's not perfect and seems to ping on a few sites that are working right but which aren't working through curl, but it works well enough to narrow down manual checking to only a handful of sites. I used it to repair the ring just a couple days ago.

Register here or Log in to comment, or comment via email.