Skip to content

Commit

Permalink
fix python run
Browse files Browse the repository at this point in the history
  • Loading branch information
ebattat committed Aug 30, 2023
1 parent bc45171 commit e6aa348
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/Nightly_Perf_Env_CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ jobs:
ELASTICSEARCH_USER: ${{ secrets.PERF_ELASTICSEARCH_USER }}
ELASTICSEARCH_PASSWORD: ${{ secrets.PERF_ELASTICSEARCH_PASSWORD }}
run: |
python "$GITHUB_WORKSPACE"/benchmark_runner/grafana/update_versions_main_libsonnet.py
cd "$GITHUB_WORKSPACE" && PYTHONPATH=. python benchmark_runner/grafana/update_versions_main_libsonnet.py
- name: Generate grafana dashboard.json using grafonnet container
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Perf_Env_Build_Test_CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ jobs:
ELASTICSEARCH_USER: ${{ secrets.PERF_ELASTICSEARCH_USER }}
ELASTICSEARCH_PASSWORD: ${{ secrets.PERF_ELASTICSEARCH_PASSWORD }}
run: |
python "$GITHUB_WORKSPACE"/benchmark_runner/grafana/update_versions_main_libsonnet.py
cd "$GITHUB_WORKSPACE" && PYTHONPATH=. python benchmark_runner/grafana/update_versions_main_libsonnet.py
- name: Generate grafana dashboard.json using grafonnet container
run: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from benchmark_runner.common.elasticsearch.elasticsearch_operations import ElasticSearchOperations


class UpdateGrafanaLastValueMappings:
class UpdateGrafanaLatestValueMappings:
"""
This class updates grafana dashboard with last value mappings from ElasticSearch
"""
Expand Down
4 changes: 2 additions & 2 deletions benchmark_runner/grafana/update_versions_main_libsonnet.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@

from benchmark_runner.common.grafana.update_grafana_last_value_mappings import UpdateGrafanaLastValueMappings
from benchmark_runner.common.grafana.update_grafana_latest_value_mappings import UpdateGrafanaLatestValueMappings
from benchmark_runner.main.environment_variables import environment_variables

# Update perf main.libsonnet with last versions
environment_variables_dict = environment_variables.environment_variables_dict
update_grafana_mappings_value = UpdateGrafanaLastValueMappings(main_libsonnet_path=environment_variables_dict.get('main_libsonnet_path', ''))
update_grafana_mappings_value = UpdateGrafanaLatestValueMappings(main_libsonnet_path=environment_variables_dict.get('main_libsonnet_path', ''))
last_versions = update_grafana_mappings_value.get_last_elasticsearch_versions()
update_grafana_mappings_value.update_value_mappings_last_versions(last_versions=last_versions)
update_grafana_mappings_value.update_main_libsonnet()

0 comments on commit e6aa348

Please sign in to comment.