Skip to content

Commit 7c7ef3f

Browse files
authored
Added version to performance model template. (#768)
1 parent 690a115 commit 7c7ef3f

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

.github/performance_model.template

Lines changed: 0 additions & 3 deletions
This file was deleted.

e2etest/get-performance-model-table.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ def flatten_performance_models(models):
6060

6161

6262
if __name__ == "__main__":
63+
aoc_version = Path('VERSION').read_text()
64+
6365
from jinja2 import Environment, PackageLoader, select_autoescape
6466
templateLoader = jinja2.FileSystemLoader(searchpath="e2etest/templates/")
6567
env = Environment(autoescape=select_autoescape(['html', 'xml', 'tpl', 'yaml', 'yml']), loader=templateLoader)
@@ -82,6 +84,7 @@ def flatten_performance_models(models):
8284
# render performance models into markdown
8385
template = env.get_template('performance_model.tpl')
8486
rendered_result = template.render({
87+
"aoc_version": aoc_version,
8588
"commit_id": commit_id,
8689
"collection_period": collection_period,
8790
"testing_ami": testing_ami,

e2etest/templates/performance_model.tpl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
## Performance Report
22

3+
**Version:** [{{ aoc_version }}](https://github.com/aws-observability/aws-otel-collector/releases/tag/{{ aoc_version }})
4+
35
**Commit ID:** [{{ commit_id }}](https://github.com/aws-observability/aws-otel-collector/commit/{{ commit_id }})
46

57
**Collection Period:** {{ collection_period }} minutes

0 commit comments

Comments
 (0)