From b3c6cd0886b148594626e3e31de1ef9e0a03cb3f Mon Sep 17 00:00:00 2001 From: Daniel Stone Date: Wed, 31 May 2023 18:50:11 +0100 Subject: [PATCH] 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 Part-of: --- bin/ci/gitlab_gql.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/ci/gitlab_gql.py b/bin/ci/gitlab_gql.py index 39516a49b32..ddc0ef37f3a 100755 --- a/bin/ci/gitlab_gql.py +++ b/bin/ci/gitlab_gql.py @@ -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(