ci: Respect $HTTP_PROXY for ci_run_n_monitor

We need to explicitly tell AIOHTTP that it's OK to take the HTTP proxy
from the environment.

Signed-off-by: Daniel Stone <daniels@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23341>
This commit is contained in:
Daniel Stone
2023-05-31 18:50:11 +01:00
committed by Marge Bot
parent 200b55496a
commit b3c6cd0886

View File

@@ -52,7 +52,8 @@ class GitlabGQL:
headers = {}
if self.token:
headers["Authorization"] = f"Bearer {self.token}"
self._transport = AIOHTTPTransport(url=self.url, headers=headers)
self._transport = AIOHTTPTransport(
url=self.url, headers=headers, client_session_args = { "trust_env": True })
# Create a GraphQL client using the defined transport
self.client = Client(