Skip to content

Commit

Permalink
improvement(reporting): Add argus links to email template and elastic
Browse files Browse the repository at this point in the history
This commit adds links to argus to the elastic search index and email
templates, allowing users to find argus runs quickly from those places.

Fixes scylladb/qa-tasks#1490

(cherry picked from commit 8175f82)
  • Loading branch information
k0machi authored and fruch committed Oct 13, 2024
1 parent fc606c4 commit 38e7ebe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions sdcm/report_templates/results_base.html
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ <h3>Test details</h3>
{% endif %}
{% if test_id %}
<li>Test-id: {{ test_id }}</li>
<li><a href="https://argus.scylladb.com/tests/scylla-cluster-tests/{{ test_id }}">Link to argus</a></li>
{% endif %}
{% if start_time %}
<li>Start time: {{ start_time }}</li>
Expand Down
4 changes: 3 additions & 1 deletion sdcm/reporting/elastic_reporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,12 @@ def report_run(self, run_id: str, status: str, index=None) -> bool:
"status": status,
"build_id": job_name,
"build_url": build_url,
"argus_url": f"https://argus.scylladb.com/tests/scylla-cluster-tests/{run_id}",
"build_number": build_number,
}

self._es.create(index=index, document=document, id=run_id, doc_type="sct_test_run_short_v1")
self._es.create(index=index, document=document, id=run_id,
doc_type="sct_test_run_short_v1") # pylint: disable=unexpected-keyword-arg,no-value-for-parameter
return True

def _check_index(self, index_name: str):
Expand Down

0 comments on commit 38e7ebe

Please sign in to comment.