redis-benchmarks-specification 0.1.206__py3-none-any.whl → 0.1.208__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,10 @@ def get_commits_by_branch(args, repo):
73
73
  commits = []
74
74
  for commit in repo.iter_commits():
75
75
  commit_datetime = commit.committed_datetime
76
+ git_timestamp_ms = int(
77
+ datetime.datetime.utcfromtimestamp(commit_datetime.timestamp()).timestamp()
78
+ * 1000
79
+ )
76
80
  if (
77
81
  args.from_date
78
82
  <= datetime.datetime.utcfromtimestamp(commit_datetime.timestamp())
@@ -87,6 +91,7 @@ def get_commits_by_branch(args, repo):
87
91
  "git_branch": repo.active_branch.name,
88
92
  "commit_summary": commit.summary,
89
93
  "commit_datetime": str(commit_datetime),
94
+ "git_timestamp_ms": git_timestamp_ms,
90
95
  }
91
96
  )
92
97
  return commits, total_commits
@@ -107,6 +112,14 @@ def get_commits_by_tags(args, repo):
107
112
 
108
113
  tags = sorted(repo.tags, key=lambda t: t.commit.committed_datetime)
109
114
  for tag in tags:
115
+
116
+ git_timestamp_ms = int(
117
+ datetime.datetime.utcfromtimestamp(
118
+ tag.commit.committed_datetime.timestamp()
119
+ ).timestamp()
120
+ * 1000
121
+ )
122
+
110
123
  if (
111
124
  args.from_date
112
125
  <= datetime.datetime.utcfromtimestamp(
@@ -137,6 +150,7 @@ def get_commits_by_tags(args, repo):
137
150
  "git_version": git_version,
138
151
  "commit_summary": tag.commit.summary,
139
152
  "commit_datetime": commit_datetime,
153
+ "git_timestamp_ms": git_timestamp_ms,
140
154
  }
141
155
  )
142
156
  except packaging.version.InvalidVersion:
@@ -265,6 +279,7 @@ def trigger_tests_cli_command_logic(args, project_name, project_version):
265
279
  for cdict in commits:
266
280
  commit_hash = cdict["git_hash"]
267
281
  commit_summary = cdict["commit_summary"]
282
+ commit_datetime = cdict["commit_datetime"]
268
283
  match_obj = re.search(hash_regexp_string, commit_hash)
269
284
  if match_obj is None:
270
285
  logging.info(
@@ -274,9 +289,7 @@ def trigger_tests_cli_command_logic(args, project_name, project_version):
274
289
  )
275
290
  else:
276
291
  print(
277
- "Commit with hash: {} added. summary: {}".format(
278
- commit_hash, commit_summary
279
- )
292
+ f"Commit with hash: {commit_hash} from {commit_datetime} added. summary: {commit_summary}"
280
293
  )
281
294
  filtered_hash_commits.append(cdict)
282
295
 
@@ -107,7 +107,8 @@ def get_commit_dict_from_sha(
107
107
  commit.commit.author.date.timestamp() * 1000.0
108
108
  )
109
109
  else:
110
- use_git_timestamp = False
110
+ if "git_timestamp_ms" not in commit_dict:
111
+ use_git_timestamp = False
111
112
  commit_dict["use_git_timestamp"] = str(use_git_timestamp)
112
113
  commit_dict["git_hash"] = git_hash
113
114
  if gh_branch is not None:
@@ -532,7 +532,7 @@ def process_self_contained_coordinator_stream(
532
532
 
533
533
  tests_regexp = ".*"
534
534
  if b"tests_regexp" in testDetails:
535
- tests_regexp = testDetails[b"tests_regexp"]
535
+ tests_regexp = testDetails[b"tests_regexp"].decode()
536
536
  logging.info(
537
537
  f"detected a regexp definition on the streamdata {tests_regexp}"
538
538
  )
@@ -92,13 +92,12 @@ def cli_command_logic(args, project_name, project_version):
92
92
  total_commits = 0
93
93
  if args.use_branch:
94
94
  for commit in repo.iter_commits():
95
- if (
96
- args.from_date
97
- <= datetime.datetime.utcfromtimestamp(
98
- commit.committed_datetime.timestamp()
99
- )
100
- <= args.to_date
101
- ):
95
+
96
+ commit_datetime_utc = datetime.datetime.utcfromtimestamp(
97
+ commit.committed_datetime.timestamp()
98
+ )
99
+ git_timestamp_ms = int(commit_datetime_utc.timestamp() * 1000)
100
+ if args.from_date <= commit_datetime_utc <= args.to_date:
102
101
  if (
103
102
  args.last_n > 0 and total_commits < args.last_n
104
103
  ) or args.last_n == -1:
@@ -109,6 +108,7 @@ def cli_command_logic(args, project_name, project_version):
109
108
  "git_hash": commit.hexsha,
110
109
  "git_branch": repo.active_branch.name,
111
110
  "commit_summary": commit.summary,
111
+ "git_timestamp_ms": git_timestamp_ms,
112
112
  }
113
113
  )
114
114
  if args.use_tags:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: redis-benchmarks-specification
3
- Version: 0.1.206
3
+ Version: 0.1.208
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
@@ -9,6 +9,7 @@ Classifier: Programming Language :: Python :: 3
9
9
  Classifier: Programming Language :: Python :: 3.9
10
10
  Classifier: Programming Language :: Python :: 3.10
11
11
  Classifier: Programming Language :: Python :: 3.11
12
+ Classifier: Programming Language :: Python :: 3.12
12
13
  Requires-Dist: Flask (>=2.0.3,<3.0.0)
13
14
  Requires-Dist: Flask-HTTPAuth (>=4.4.0,<5.0.0)
14
15
  Requires-Dist: GitPython (>=3.1.20,<4.0.0)
@@ -8,10 +8,10 @@ redis_benchmarks_specification/__builder__/builder.py,sha256=iMINXlKMqlVYW3Uc7Iu
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=8C8fVUqRc3-4Zb6u7mflo3YzzgSo_hQwrTC9HhVdGdA,6177
11
- redis_benchmarks_specification/__cli__/cli.py,sha256=AUxkpBrP387S9SiNXXRLtGIi2xM-J8O4U4ZaKPrwAd0,17507
11
+ redis_benchmarks_specification/__cli__/cli.py,sha256=vHtFZaPZZ5ovtCJJVcfnMgzLxwttLv5mA25P-xaY-_8,18005
12
12
  redis_benchmarks_specification/__cli__/stats.py,sha256=wahzZRbpfokv8dQU8O4BH5JFrOZk-l6k8LWdKfue9_0,20204
13
13
  redis_benchmarks_specification/__common__/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
14
- redis_benchmarks_specification/__common__/builder_schema.py,sha256=LW00BSz_LXa83wbgRFylOCyRMMH4-3YpWgYh2hevOFM,5693
14
+ redis_benchmarks_specification/__common__/builder_schema.py,sha256=oU6zFrBsmPRgCr2c1zf7bM0o9bCyuqUpooJo0-nIHrE,5747
15
15
  redis_benchmarks_specification/__common__/env.py,sha256=l58AH5LC2jQcyPRJA4ue_4kMloOewcqnLvkLWfzph_A,3119
16
16
  redis_benchmarks_specification/__common__/github.py,sha256=DSSO88E4yeVjn1vWFFFoBelHm7QOhE8NoTjRJKJ5wiI,10486
17
17
  redis_benchmarks_specification/__common__/package.py,sha256=4uVt1BAZ999LV2rZkq--Tk6otAVIf9YR3g3KGeUpiW4,834
@@ -33,12 +33,12 @@ redis_benchmarks_specification/__self_contained_coordinator__/cpuset.py,sha256=s
33
33
  redis_benchmarks_specification/__self_contained_coordinator__/docker.py,sha256=iivxZ55vL2kVHHkqVbXY2ftvxvceqH_Zw079KLCv9N8,2507
34
34
  redis_benchmarks_specification/__self_contained_coordinator__/prepopulation.py,sha256=ajhpzxsBy6tiHrO79gEIKQYxZR-Us6B4rC6NYg1EZjM,2875
35
35
  redis_benchmarks_specification/__self_contained_coordinator__/runners.py,sha256=Ul8UoxvWRxCVWmyaCBadpLMDOVEoNSp-A9KMPtPmUwM,28483
36
- redis_benchmarks_specification/__self_contained_coordinator__/self_contained_coordinator.py,sha256=MRUAhWND4xIeb46gg9wVBEuUlEDl268Yjzh2qw8HCzA,68671
36
+ redis_benchmarks_specification/__self_contained_coordinator__/self_contained_coordinator.py,sha256=lu04IAIBpH2BuveSVSfoWbLM0rB1N89I4JBBnE6-amA,68680
37
37
  redis_benchmarks_specification/__setups__/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
38
38
  redis_benchmarks_specification/__setups__/topologies.py,sha256=xQ1IJkcTji_ZjLiJd3vOxZpvbNtBLZw9cPkw5hGJKHU,481
39
39
  redis_benchmarks_specification/__spec__/__init__.py,sha256=l-G1z-t6twUgi8QLueqoTQLvJmv3hJoEYskGm6H7L6M,83
40
40
  redis_benchmarks_specification/__spec__/args.py,sha256=r38u0Lr6ZfpXM8lGibmewYF2ccAjFqmAISeQJt5kvgk,2470
41
- redis_benchmarks_specification/__spec__/cli.py,sha256=mCvCFy-S8nzK6-YA6x3JY-82MEbfmjgiyk-MzOKECek,8583
41
+ redis_benchmarks_specification/__spec__/cli.py,sha256=Dd1dYuG3wrRTvQc1jDNN2Rn7KeOtWtqeOCa_lxu4S4I,8707
42
42
  redis_benchmarks_specification/__watchdog__/__init__.py,sha256=l-G1z-t6twUgi8QLueqoTQLvJmv3hJoEYskGm6H7L6M,83
43
43
  redis_benchmarks_specification/__watchdog__/args.py,sha256=azW3WkS9uqQJthtZt7TPG39LG-6hxcqiV21bK-Dpyx8,1713
44
44
  redis_benchmarks_specification/__watchdog__/watchdog.py,sha256=MASAPSusxEOWCf_iVW4xIwwgFm_snLHJaI2XRiMlZhs,5832
@@ -150,8 +150,8 @@ redis_benchmarks_specification/test-suites/memtier_benchmark-2keys-set-10-100-el
150
150
  redis_benchmarks_specification/test-suites/memtier_benchmark-2keys-stream-5-entries-xread-all-entries-pipeline-10.yml,sha256=RSkNgV5SsjdkXhM0mifi2GlwIxtiHR8N3u-ieI23BoQ,1126
151
151
  redis_benchmarks_specification/test-suites/memtier_benchmark-2keys-stream-5-entries-xread-all-entries.yml,sha256=w7-dOIU-eATHXCvJbSeih6Vt54oygtkXKskQdzCll3o,1100
152
152
  redis_benchmarks_specification/test-suites/template.txt,sha256=qrci_94QV9bPUJe0cL8lsUaQmX5Woz-jT-pDF0629AE,423
153
- redis_benchmarks_specification-0.1.206.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
154
- redis_benchmarks_specification-0.1.206.dist-info/METADATA,sha256=ao6juBIxGJuui4GMEfqTW9T1zvenNZecYCF35ysBnbg,22483
155
- redis_benchmarks_specification-0.1.206.dist-info/WHEEL,sha256=7Z8_27uaHI_UZAc4Uox4PpBhQ9Y5_modZXWMxtUi4NU,88
156
- redis_benchmarks_specification-0.1.206.dist-info/entry_points.txt,sha256=x5WBXCZsnDRTZxV7SBGmC65L2k-ygdDOxV8vuKN00Nk,715
157
- redis_benchmarks_specification-0.1.206.dist-info/RECORD,,
153
+ redis_benchmarks_specification-0.1.208.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
154
+ redis_benchmarks_specification-0.1.208.dist-info/METADATA,sha256=_0wz8OpHePTYHWPDi62f7UCpMD4ny-acJL1NXEyJceg,22534
155
+ redis_benchmarks_specification-0.1.208.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
156
+ redis_benchmarks_specification-0.1.208.dist-info/entry_points.txt,sha256=x5WBXCZsnDRTZxV7SBGmC65L2k-ygdDOxV8vuKN00Nk,715
157
+ redis_benchmarks_specification-0.1.208.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: poetry-core 1.5.2
2
+ Generator: poetry-core 1.9.0
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any