Skip to content

Commit e22558f

Browse files
mattipclaude
andcommitted
include suite_version in timeline data points
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent c3ca151 commit e22558f

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

codespeed/tests/test_views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ def test_gettimelinedata(self):
410410
"There are 2 datapoints")
411411
self.assertEqual(
412412
responsedata['timelines'][0]['branches']['master']['1'][1],
413-
[u'2011/04/13 17:04:22 ', 2000.0, 1.11111, u'2', u'', u'master'])
413+
[u'2011/04/13 17:04:22 ', 2000.0, 1.11111, u'2', u'', u'master', u''])
414414

415415

416416
@override_settings(ALLOW_ANONYMOUS_POST=True)

codespeed/views.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,8 @@ def get_timeline_for_benchmark(baseline_exe, baseline_rev, bench, environment, e
549549
[
550550
res.revision.date.strftime('%Y/%m/%d %H:%M:%S %z'),
551551
res.value, val_max, q3, q1, val_min,
552-
res.revision.get_short_commitid(), res.revision.tag, branch.name
552+
res.revision.get_short_commitid(), res.revision.tag, branch.name,
553+
res.suite_version,
553554
]
554555
)
555556
else:
@@ -560,7 +561,8 @@ def get_timeline_for_benchmark(baseline_exe, baseline_rev, bench, environment, e
560561
[
561562
res.revision.date.strftime('%Y/%m/%d %H:%M:%S %z'),
562563
res.value, std_dev,
563-
res.revision.get_short_commitid(), res.revision.tag, branch.name
564+
res.revision.get_short_commitid(), res.revision.tag, branch.name,
565+
res.suite_version,
564566
]
565567
)
566568
timeline['branches'][branch.name][executable.id] = results

0 commit comments

Comments
 (0)