diff --git a/.github/workflows/snapshot.yml b/.github/workflows/snapshot.yml index d85f13baf..1449a07d3 100644 --- a/.github/workflows/snapshot.yml +++ b/.github/workflows/snapshot.yml @@ -84,7 +84,8 @@ jobs: python3 ci/snapshot/check_node.py wait-head --api 127.0.0.1:9090 --timeout-min 90 # the monitor is a third party: when it does not answer (exit 3) the snapshot is published - # without this check, and the release notes say so; a mismatch fails + # without this check, and the release notes say so; a mismatch fails. check_node.py names its + # client in the User-Agent: the monitor refuses urllib's default one - name: Check against the monitor id: monitor if: env.SKIP != '1' diff --git a/ci/snapshot/check_node.py b/ci/snapshot/check_node.py index aa1e9f0a4..2fb00cfd5 100755 --- a/ci/snapshot/check_node.py +++ b/ci/snapshot/check_node.py @@ -55,7 +55,9 @@ def amount(a): def monitor(path): - req = urllib.request.Request(f"{MONITOR}/{path}", headers={"Accept": "application/json"}) + # the monitor answers 403 to urllib's default User-Agent (since 2026-11-18): name the client + req = urllib.request.Request(f"{MONITOR}/{path}", + headers={"Accept": "application/json", "User-Agent": "credits-community-ci/1.0"}) return json.load(urllib.request.urlopen(req, timeout=60)) diff --git a/docs/CHANGES.md b/docs/CHANGES.md index fba892eac..cc214dc2f 100644 --- a/docs/CHANGES.md +++ b/docs/CHANGES.md @@ -44,6 +44,7 @@ lines under the new release. | PR | Change | |---|---| +| #190 | ci: the snapshot workflow's monitor check sends its own User-Agent; the monitor answers 403 to urllib's default one, which failed the snapshot runs | | #187 | docs: `AGENTS.md` and `CLAUDE.md` for coding agents: build, tests, CI, conventions and the mainnet constraints (documentation only) | | #186 | ci: the comments of `ci/testnet/contracts.py` say why contract-to-contract calls fail: executor 1518 fails every `invokeExternalContract`; the node does not refuse `@UsingContract` methods (comments only) |