argus-alm 0.15.6__py3-none-any.whl → 0.15.7__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
argus/_version.py CHANGED
@@ -28,7 +28,7 @@ version_tuple: VERSION_TUPLE
28
28
  commit_id: COMMIT_ID
29
29
  __commit_id__: COMMIT_ID
30
30
 
31
- __version__ = version = '0.15.6'
32
- __version_tuple__ = version_tuple = (0, 15, 6)
31
+ __version__ = version = '0.15.7'
32
+ __version_tuple__ = version_tuple = (0, 15, 7)
33
33
 
34
34
  __commit_id__ = commit_id = None
argus/client/base.py CHANGED
@@ -37,16 +37,14 @@ class ArgusClient:
37
37
  self._auth_token = auth_token
38
38
  self._base_url = base_url
39
39
  self._api_ver = api_version
40
- self._extra_headers = extra_headers or {}
40
+ self.session = requests.Session()
41
+ if extra_headers:
42
+ self.session.headers.update(extra_headers)
41
43
 
42
44
  @property
43
45
  def auth_token(self) -> str:
44
46
  return self._auth_token
45
47
 
46
- @property
47
- def extra_headers(self) -> dict:
48
- return self._extra_headers
49
-
50
48
  def verify_location_params(self, endpoint: str, location_params: dict[str, str]) -> bool:
51
49
  required_params: list[str] = re.findall(r"\$[\w_]+", endpoint)
52
50
  for param in required_params:
@@ -92,7 +90,6 @@ class ArgusClient:
92
90
  "Authorization": f"token {self.auth_token}",
93
91
  "Accept": "application/json",
94
92
  "Content-Type": "application/json",
95
- **self.extra_headers,
96
93
  }
97
94
 
98
95
  def get(self, endpoint: str, location_params: dict[str, str] = None, params: dict = None) -> requests.Response:
@@ -101,7 +98,7 @@ class ArgusClient:
101
98
  location_params=location_params
102
99
  )
103
100
  LOGGER.debug("GET Request: %s, params: %s", url, params)
104
- response = requests.get(
101
+ response = self.session.get(
105
102
  url=url,
106
103
  params=params,
107
104
  headers=self.request_headers
@@ -122,7 +119,7 @@ class ArgusClient:
122
119
  location_params=location_params
123
120
  )
124
121
  LOGGER.debug("POST Request: %s, params: %s, body: %s", url, params, body)
125
- response = requests.post(
122
+ response = self.session.post(
126
123
  url=url,
127
124
  params=params,
128
125
  json=body,
argus/common/enums.py CHANGED
@@ -39,6 +39,7 @@ class PytestStatus(str, Enum):
39
39
 
40
40
 
41
41
  class TestInvestigationStatus(str, Enum):
42
+ __test__ = False # prevent pytest from collecting this Enum as a test class
42
43
  NOT_INVESTIGATED = "not_investigated"
43
44
  IN_PROGRESS = "in_progress"
44
45
  INVESTIGATED = "investigated"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: argus-alm
3
- Version: 0.15.6
3
+ Version: 0.15.7
4
4
  Summary: Argus
5
5
  Author-email: Alexey Kartashov <alexey.kartashov@scylladb.com>, Łukasz Sójka <lukasz.sojka@scylladb.com>
6
6
  License-Expression: Apache-2.0
@@ -24,6 +24,7 @@ Requires-Dist: python-jenkins>=1.7.0; extra == "web-backend"
24
24
  Requires-Dist: python-slugify~=6.1.1; extra == "web-backend"
25
25
  Requires-Dist: pygithub>=2.6.1; extra == "web-backend"
26
26
  Requires-Dist: boto3~=1.38.9; extra == "web-backend"
27
+ Requires-Dist: prometheus-flask-exporter>=0.23.2; extra == "web-backend"
27
28
  Provides-Extra: docker-image
28
29
  Requires-Dist: supervisor~=4.2.4; extra == "docker-image"
29
30
  Provides-Extra: dev
@@ -50,6 +51,10 @@ Dynamic: license-file
50
51
 
51
52
  Argus is a test tracking system intended to provide observability into automated test pipelines which use long-running resources. It allows observation of a test status, its events and its allocated resources. It also allows easy comparison between particular runs of a specific test.
52
53
 
54
+ ## Contributing
55
+
56
+ Review the [Repository Guidelines](AGENTS.md) for project structure, tooling expectations, and pull request practices before submitting changes.
57
+
53
58
  ## Installation notes
54
59
 
55
60
  ### Development
@@ -1,7 +1,7 @@
1
1
  argus/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- argus/_version.py,sha256=qcnrtWShhkWqmd45V8inc2JAvXS6NkAKo5vOn5LwP3M,706
2
+ argus/_version.py,sha256=1O-7DXv_QP9x_lKXMnZu-0Tvd9ZtVB4QqmLlRj7ZHIk,706
3
3
  argus/client/__init__.py,sha256=bO9_j5_jK5kvTHR46KEZ0Y-p0li7CBW8QSd-K5Ez4vA,42
4
- argus/client/base.py,sha256=XwqshXFkb6h_QJH3wlFmWjSYV3p66y7B2lufShSkWAs,8463
4
+ argus/client/base.py,sha256=FZ9-quDXwViWbz892XnuZlWJiAmzpnTgvkRXV9i8HlE,8423
5
5
  argus/client/generic_result.py,sha256=9D0zrpfEDiIL7PjL12TZnqk5Mi_1T1UvesF5wWeMfz0,6264
6
6
  argus/client/driver_matrix_tests/cli.py,sha256=JpI0v1hzRQr9KkrxO7D4hEbkzumexFFC_iRM8558zHU,8375
7
7
  argus/client/driver_matrix_tests/client.py,sha256=fFucqwog6WnDnje1xB-4ERfwHXblXP4upmtt9RtOkls,2806
@@ -11,12 +11,12 @@ argus/client/sct/client.py,sha256=rlsuy6I3zZYKUUjJ07PaBlIfCyCpXB2l4eZoJ4waE-g,11
11
11
  argus/client/sct/types.py,sha256=VLgVe7qPmJtCLqtPnuX8N8kMKZq-iY3SKz68nvU6nJ4,371
12
12
  argus/client/sirenada/client.py,sha256=lzhmBFAUnvPSAJfCjeQ0L5nbp50Q0YLHwIondO9rvt4,6321
13
13
  argus/common/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
14
- argus/common/enums.py,sha256=2ASF_NMUU_inJCHnrjkvZ1jXWL2zAWzVgmtjCUwSUjA,1206
14
+ argus/common/enums.py,sha256=FM308aseXxsaeOqoiyM-NIDWKHpbceLysd-sLDh7TkI,1287
15
15
  argus/common/sct_types.py,sha256=GX0S1_eH3eBOO17WqBVtsDKzz86vgL2VUM7gi9Cjrmc,1649
16
16
  argus/common/sirenada_types.py,sha256=CZH2JXA1KYUj29eXYe8rIAAWdN1XPqOsDPAXvM25bVQ,698
17
- argus_alm-0.15.6.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
18
- argus_alm-0.15.6.dist-info/METADATA,sha256=jkkC_qxHOtsMDOX0OtuE9L84V8ve9f6rmqYpI3NdWrA,4862
19
- argus_alm-0.15.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
20
- argus_alm-0.15.6.dist-info/entry_points.txt,sha256=5mSBLLPndhFHKY5M9SCF8WhDBAArrj-S2IL-uoiaJiE,140
21
- argus_alm-0.15.6.dist-info/top_level.txt,sha256=Pea173vTU-Et8xmNCctS34REW4cH0Xmjyiztu0HuM0c,6
22
- argus_alm-0.15.6.dist-info/RECORD,,
17
+ argus_alm-0.15.7.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
18
+ argus_alm-0.15.7.dist-info/METADATA,sha256=k8ORcUno_hpWYcGefrNk1uHrkAKAuMuetlDswrBnVCY,5098
19
+ argus_alm-0.15.7.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
20
+ argus_alm-0.15.7.dist-info/entry_points.txt,sha256=5mSBLLPndhFHKY5M9SCF8WhDBAArrj-S2IL-uoiaJiE,140
21
+ argus_alm-0.15.7.dist-info/top_level.txt,sha256=Pea173vTU-Et8xmNCctS34REW4cH0Xmjyiztu0HuM0c,6
22
+ argus_alm-0.15.7.dist-info/RECORD,,