redis-benchmarks-specification 0.1.313__py3-none-any.whl → 0.1.315__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.

Potentially problematic release.


This version of redis-benchmarks-specification might be problematic. Click here for more details.

@@ -73,6 +73,18 @@ def main():
73
73
  parser.add_argument(
74
74
  "--arch", type=str, default="amd64", help="arch to build artifacts"
75
75
  )
76
+ parser.add_argument(
77
+ "--builder-group",
78
+ type=str,
79
+ default=STREAM_GH_EVENTS_COMMIT_BUILDERS_CG,
80
+ help="Consumer group name to read from the stream",
81
+ )
82
+ parser.add_argument(
83
+ "--builder-id",
84
+ type=str,
85
+ default="1",
86
+ help="Consumer id to read from the stream",
87
+ )
76
88
  parser.add_argument(
77
89
  "--setups-folder",
78
90
  type=str,
@@ -149,7 +161,14 @@ def main():
149
161
 
150
162
  build_spec_image_prefetch(builders_folder, different_build_specs)
151
163
 
152
- builder_consumer_group_create(conn)
164
+ builder_group = args.builder_group
165
+ builder_id = args.builder_id
166
+ if builder_group is None:
167
+ builder_group = STREAM_GH_EVENTS_COMMIT_BUILDERS_CG
168
+ if builder_id is None:
169
+ builder_id = "1"
170
+
171
+ builder_consumer_group_create(conn, builder_group)
153
172
  if args.github_token is not None:
154
173
  logging.info("detected a github token. will update as much as possible!!! =)")
155
174
  previous_id = args.consumer_start_id
@@ -162,28 +181,26 @@ def main():
162
181
  args.docker_air_gap,
163
182
  arch,
164
183
  args.github_token,
184
+ builder_group,
185
+ builder_id,
165
186
  )
166
187
 
167
188
 
168
- def builder_consumer_group_create(conn, id="$"):
189
+ def builder_consumer_group_create(
190
+ conn, builder_group=STREAM_GH_EVENTS_COMMIT_BUILDERS_CG, id="$"
191
+ ):
169
192
  try:
170
193
  conn.xgroup_create(
171
194
  STREAM_KEYNAME_GH_EVENTS_COMMIT,
172
- STREAM_GH_EVENTS_COMMIT_BUILDERS_CG,
195
+ builder_group,
173
196
  mkstream=True,
174
197
  id=id,
175
198
  )
176
199
  logging.info(
177
- "Created consumer group named {} to distribute work.".format(
178
- STREAM_GH_EVENTS_COMMIT_BUILDERS_CG
179
- )
200
+ "Created consumer group named {} to distribute work.".format(builder_group)
180
201
  )
181
202
  except redis.exceptions.ResponseError:
182
- logging.info(
183
- "Consumer group named {} already existed.".format(
184
- STREAM_GH_EVENTS_COMMIT_BUILDERS_CG
185
- )
186
- )
203
+ logging.info("Consumer group named {} already existed.".format(builder_group))
187
204
 
188
205
 
189
206
  def check_benchmark_build_comment(comments):
@@ -205,14 +222,22 @@ def builder_process_stream(
205
222
  docker_air_gap=False,
206
223
  arch="amd64",
207
224
  github_token=None,
225
+ builder_group=None,
226
+ builder_id=None,
208
227
  ):
209
228
  new_builds_count = 0
210
229
  auto_approve_github_comments = True
211
230
  build_stream_fields_arr = []
212
- logging.info("Entering blocking read waiting for work.")
213
- consumer_name = "{}-proc#{}".format(STREAM_GH_EVENTS_COMMIT_BUILDERS_CG, "1")
231
+ if builder_group is None:
232
+ builder_group = STREAM_GH_EVENTS_COMMIT_BUILDERS_CG
233
+ if builder_id is None:
234
+ builder_id = "1"
235
+ consumer_name = "{}-proc#{}".format(builder_group, builder_id)
236
+ logging.info(
237
+ f"Entering blocking read waiting for work. building for arch: {arch}. Using consumer id {consumer_name}"
238
+ )
214
239
  newTestInfo = conn.xreadgroup(
215
- STREAM_GH_EVENTS_COMMIT_BUILDERS_CG,
240
+ builder_group,
216
241
  consumer_name,
217
242
  {STREAM_KEYNAME_GH_EVENTS_COMMIT: previous_id},
218
243
  count=1,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: redis-benchmarks-specification
3
- Version: 0.1.313
3
+ Version: 0.1.315
4
4
  Summary: The Redis benchmarks specification describes the cross-language/tools requirements and expectations to foster performance and observability standards around redis related technologies. Members from both industry and academia, including organizations and individuals are encouraged to contribute.
5
5
  Author: filipecosta90
6
6
  Author-email: filipecosta.90@gmail.com
@@ -4,7 +4,7 @@ redis_benchmarks_specification/__api__/api.py,sha256=k_CMICtMm1z8jY3hByaL0hIr_5v
4
4
  redis_benchmarks_specification/__api__/app.py,sha256=JzQm84DjIVdfLbDO423BJbrds6gFzMbA0syRkHE_aUU,7063
5
5
  redis_benchmarks_specification/__builder__/Readme.md,sha256=O6MV_J3OSgzW-ir2TbukP8Vhkm_LOzQJJndG1Cykqic,111
6
6
  redis_benchmarks_specification/__builder__/__init__.py,sha256=l-G1z-t6twUgi8QLueqoTQLvJmv3hJoEYskGm6H7L6M,83
7
- redis_benchmarks_specification/__builder__/builder.py,sha256=cK2yGtoS6Xnux7wANQkTT2rCvkz5Y5_7huQbQFAcMMk,28324
7
+ redis_benchmarks_specification/__builder__/builder.py,sha256=XdyCrYanImUNi_kC1uJg4qIh0X00NMVs9ht1pWJZUkM,29075
8
8
  redis_benchmarks_specification/__builder__/schema.py,sha256=1wcmyVJBcWrBvK58pghN9NCoWLCO3BzPsmdKWYfkVog,584
9
9
  redis_benchmarks_specification/__cli__/__init__.py,sha256=l-G1z-t6twUgi8QLueqoTQLvJmv3hJoEYskGm6H7L6M,83
10
10
  redis_benchmarks_specification/__cli__/args.py,sha256=uZkk1Jom9i0xJ_OpVMrIWbw_70jFo7IswLV2EtKTKEA,7210
@@ -276,8 +276,8 @@ redis_benchmarks_specification/test-suites/memtier_benchmark-playbook-session-st
276
276
  redis_benchmarks_specification/test-suites/memtier_benchmark-playbook-session-storage-1k-sessions.yml,sha256=2egtIxPxCze2jlbAfgsk4v9JSQHNMoPLbDWFEW8olDg,7006
277
277
  redis_benchmarks_specification/test-suites/template.txt,sha256=ezqGiRPOvuSDO0iG7GEf-AGXNfHbgXI89_G0RUEzL88,481
278
278
  redis_benchmarks_specification/vector-search-test-suites/vector_db_benchmark_test.yml,sha256=PD7ow-k4Ll2BkhEC3aIqiaCZt8Hc4aJIp96Lw3J3mcI,791
279
- redis_benchmarks_specification-0.1.313.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
280
- redis_benchmarks_specification-0.1.313.dist-info/METADATA,sha256=NuRwabI2eZFd_UH40chihL7-c-jO9WmQTCFVV2g06Tg,22726
281
- redis_benchmarks_specification-0.1.313.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
282
- redis_benchmarks_specification-0.1.313.dist-info/entry_points.txt,sha256=x5WBXCZsnDRTZxV7SBGmC65L2k-ygdDOxV8vuKN00Nk,715
283
- redis_benchmarks_specification-0.1.313.dist-info/RECORD,,
279
+ redis_benchmarks_specification-0.1.315.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
280
+ redis_benchmarks_specification-0.1.315.dist-info/METADATA,sha256=MqRP3yWv1c71Wt0sSprZSneaxNdqGFxFI5yoSRgb0Jo,22726
281
+ redis_benchmarks_specification-0.1.315.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
282
+ redis_benchmarks_specification-0.1.315.dist-info/entry_points.txt,sha256=x5WBXCZsnDRTZxV7SBGmC65L2k-ygdDOxV8vuKN00Nk,715
283
+ redis_benchmarks_specification-0.1.315.dist-info/RECORD,,