From 8543a745ca6d2bc316c60faa11aefb692be41962 Mon Sep 17 00:00:00 2001 From: EnzinoBB Date: Thu, 19 Nov 2026 00:36:18 +0100 Subject: [PATCH 1/2] ci: the monitor check sends its own User-Agent The monitor answers 403 to urllib's default User-Agent, which failed the snapshot run of 2026-11-18. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/snapshot.yml | 3 ++- ci/snapshot/check_node.py | 4 +++- docs/CHANGES.md | 1 + 3 files changed, 6 insertions(+), 2 deletions(-) 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..fa617aab3 100644 --- a/docs/CHANGES.md +++ b/docs/CHANGES.md @@ -44,6 +44,7 @@ lines under the new release. | PR | Change | |---|---| +| #PRNUM | 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) | From 60c97b8599b6d3f3e3711fde846f5e70a22ab004 Mon Sep 17 00:00:00 2001 From: EnzinoBB Date: Thu, 19 Nov 2026 00:36:28 +0100 Subject: [PATCH 2/2] docs: CHANGES row number for #190 Co-Authored-By: Claude Opus 5.5 --- docs/CHANGES.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/CHANGES.md b/docs/CHANGES.md index fa617aab3..cc214dc2f 100644 --- a/docs/CHANGES.md +++ b/docs/CHANGES.md @@ -44,7 +44,7 @@ lines under the new release. | PR | Change | |---|---| -| #PRNUM | 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 | +| #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) |