Skip to content

Commit e0515fb

Browse files
authored
Sort all items in the tarball stats report (#2637)
* Sort _all_ items in the tarball stats report to ensure that the testing is deterministic * Add rev-lock on humanize for jinja2-humanize-extension * Update the gold file
1 parent 1bae994 commit e0515fb

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

server/bin/gold/test-5.2.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -356,13 +356,13 @@ Summary Statistics for Tar Balls on 1970-01-01 (external data only):
356356
1.8 kB size
357357

358358
By Server Origin:
359-
5 main pbench server
360359
3 "ONE" pbench satellite server
360+
5 main pbench server
361361

362362
Controller Counts:
363363
6 controllers
364-
3 main pbench server
365364
3 "ONE" pbench satellite server
365+
3 main pbench server
366366

367367
Tar Ball Counts broken down by weeks for most recent 2 months (with satellite percentages):
368368

server/bin/pbench-tarball-stats.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,13 +173,13 @@ def transform_buckets(buckets: dict, sat_names: list, now: datetime, kind: str):
173173
{{ "{:>18s}".format(good.size|humanize_naturalsize) }} size
174174
175175
By Server Origin:
176-
{% for name, value in server_origin.items() %}
176+
{% for name, value in server_origin.items()|sort %}
177177
{{ "{:18n}".format(value) }} {% if name == "main" %}{{ name }} pbench server{% else %}"{{ name }}" pbench satellite server{% endif +%}
178178
{% endfor %}
179179
180180
Controller Counts:
181181
{{ "{:18n}".format(good.ctrls.keys()|length) }} controllers
182-
{% for name, value in satellites.items() %}
182+
{% for name, value in satellites.items()|sort %}
183183
{{ "{:18n}".format(value) }} {% if name == "main" %}{{ name }} pbench server{% else %}"{{ name }}" pbench satellite server{% endif +%}
184184
{% endfor %}
185185
{% endif %}

server/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
boto3
22
elasticsearch1
3-
humanize>=3.11
3+
humanize>=3.11, <4.0.0
44
jinja2>=3.0
55
jinja2-humanize-extension

0 commit comments

Comments
 (0)