mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
We can be more certain that the buildbot server is up while running the test than and of our other infrastucture. So change the query to this instead. Hopefully this will lead to less flakyness of this test.
16 lines
690 B
Python
16 lines
690 B
Python
# SPDX-FileCopyrightText: 2023 Blender Authors
|
|
#
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
import requests
|
|
|
|
# Test this specific endpoint because this will check for a connection to the
|
|
# buildbot master. We should be quite sure that this endpoint is up if the
|
|
# builder is running the release check scripts.
|
|
website = "https://builder.blender.org/admin/"
|
|
|
|
r = requests.get(website, verify=True, timeout=30)
|
|
|
|
assert r.status_code == 200, f"{website} returned a status code {r.status_code}, we expected 200"
|
|
assert r.reason == "OK", f"Didn't get 'OK' response from {website}, got {r.reason}"
|
|
assert len(r.content) > 256, "The content we got from the web request is too small to be valid"
|