The crawler scenario brings mastodon.test's visit forward; the backlog after a full sweep
The crawler visits one server a minute, every one PrivaPub knows, and as the pasture grew mastodon.test's turn came after the scenario stopped waiting; the scenario now makes it due at once. The backlog is regenerated after a sweep of every peer: 2581 checks pass, none fails. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LsXgEaXee4GCU1hwYgPJXw
This commit is contained in:
1 parent
bebb4d6370
commit
10ff4b3d2a
2 files changed
+4
-1
No files matched your search
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Generated by `tools/pasture/town.sh backlog --write` from `village-20261006-090128` on 2026-10-06. Do not edit by hand: fix the cause, or record a known gap in `tools/pasture/town/gaps.json`, and generate it again.
|
Generated by `tools/pasture/town.sh backlog --write` from `village-20261006-090128` on 2026-10-06. Do not edit by hand: fix the cause, or record a known gap in `tools/pasture/town/gaps.json`, and generate it again.
|
||||||
|
|
||||||
Checks: 2577 pass, 0 fail, 1 known gaps, 0 known gaps now passing.
|
Checks: 2581 pass, 0 fail, 1 known gaps, 0 known gaps now passing.
|
||||||
|
|
||||||
## New failures
|
## New failures
|
||||||
|
|
||||||
|
|||||||
@@ -13,6 +13,9 @@ if [ "$(crawler | j "print(any(r['robotsDisallowed'] for r in d['recent']))")" =
|
|||||||
until_true 60 'curl -fs -o /dev/null $P/build.json'
|
until_true 60 'curl -fs -o /dev/null $P/build.json'
|
||||||
fi
|
fi
|
||||||
[ "$(crawler | j "print(d['enabled'])")" = "True" ] && ok "the crawler is on" || { ko "the crawler is off: start PrivaPub with PRIVAPUB_ENV=Statistics__Crawler__Enabled=true"; return 0; }
|
[ "$(crawler | j "print(d['enabled'])")" = "True" ] && ok "the crawler is on" || { ko "the crawler is off: start PrivaPub with PRIVAPUB_ENV=Statistics__Crawler__Enabled=true"; return 0; }
|
||||||
|
# (it visits one server a minute, every one PrivaPub knows: as the pasture grew, mastodon.test's turn came later than the
|
||||||
|
# wait below, so its visit is brought forward)
|
||||||
|
podman exec pasture-mongo mongosh --quiet PrivaPub --eval 'db.Job.updateMany({Kind: 9, State: 0, Host: "mastodon.test"}, {$set: {RunAt: new Date()}})' >/dev/null
|
||||||
until_true 60 '[ "$(crawler | j "print(any(r[\"host\"]==\"mastodon.test\" and r[\"lastCrawledAt\"] for r in d[\"recent\"]))")" = "True" ]' \
|
until_true 60 '[ "$(crawler | j "print(any(r[\"host\"]==\"mastodon.test\" and r[\"lastCrawledAt\"] for r in d[\"recent\"]))")" = "True" ]' \
|
||||||
&& ok "the crawler visited mastodon.test" || ko "the crawler never visited mastodon.test"
|
&& ok "the crawler visited mastodon.test" || ko "the crawler never visited mastodon.test"
|
||||||
[ "$(crawler | j "print(next(r['peersCount'] is not None for r in d['recent'] if r['host']=='mastodon.test'))")" = "True" ] \
|
[ "$(crawler | j "print(next(r['peersCount'] is not None for r in d['recent'] if r['host']=='mastodon.test'))")" = "True" ] \
|
||||||
|
|||||||
Reference in new issue
Block a user