Skip to content

Conformance test#

istemci/uyum_testi.py checks a running coordinator against protocol v1. It needs only the Python standard library and works against coordinators written in any language.

python istemci/uyum_testi.py --url https://coordinator.example.org
python istemci/uyum_testi.py --url http://127.0.0.1:8750 --anahtar SECRET --json
FlagMeaning
--urlCoordinator address (required)
--anahtarShared key, if the coordinator requires X-Anahtar
--isciProbe worker name (default uyum-testi)
--jsonMachine-readable output

Exit code 0 when every required check passes, 1 otherwise.

Dikkat

The test registers a probe worker (via /gorev) and sends deliberately invalid data to /sonuc. Run it against a test instance rather than in the middle of a live training run.

What is checked#

CheckLevelDetail
TLSwarningNon-local http://
/bilgiwarningJSON with protokol: "1"
/durumrequiredtur, toplam_tur, bekleyen_sonuc, isciler, trafik with correct types
/gorevrequiredbekle/bitti or full task + 64-hex agirlik_sha256; 400 without isci (warning)
/verirequired (if the task has veri_sha256)/veri?parca= is served, the body digest equals veri_sha256, valid safetensors
/agirlikrequiredX-Sha256 matches body, integer X-Tur, valid safetensors, same digest as the task
/agirlik dtypewarningnon-F32
/sonucrequiredcorrupt body → 400/422, stale round → 400/409/422, empty body → 400/413/422 (never 200/500)
unknown pathwarning404

Example CI step:

- run: python istemci/uyum_testi.py --url http://127.0.0.1:8750 --json