Repository: conbench/conbench (language: python)

Issue:
rename modules/files "benchmark" -> "result"
A hyphen in a Python module name (file name) is not advisable. I think the `Result` will be a rather popular entity in the future, and `result.py` is better than `benchmarkresult.py` or `bmresult.py`.


Discussion / hints:

Fix patch:
diff --git a/conbench/api/__init__.py b/conbench/api/__init__.py
index 57724f5a0..38109f8fe 100644
--- a/conbench/api/__init__.py
+++ b/conbench/api/__init__.py
@@ -13,7 +13,6 @@
 
 from ._errors import *  # noqa
 from .auth import *  # noqa
-from .benchmarks import *  # noqa
 from .commits import *  # noqa
 from .compare import *  # noqa
 from .contexts import *  # noqa
@@ -21,5 +20,6 @@
 from .history import *  # noqa
 from .index import *  # noqa
 from .info import *  # noqa
+from .results import *  # noqa
 from .runs import *  # noqa
 from .users import *  # noqa
diff --git a/conbench/api/benchmarks.py b/conbench/api/results.py
similarity index 100%
rename from conbench/api/benchmarks.py
rename to conbench/api/results.py
diff --git a/conbench/app/__init__.py b/conbench/app/__init__.py
index bd1db19ba..e0f793f75 100644
--- a/conbench/app/__init__.py
+++ b/conbench/app/__init__.py
@@ -8,10 +8,10 @@
 
 from .auth import *  # noqa
 from .batches import *  # noqa
-from .benchmarks import *  # noqa
 from .compare import *  # noqa
 from .hardware import *  # noqa
 from .index import *  # noqa
+from .results import *  # noqa
 from .robots import *  # noqa
 from .runs import *  # noqa
 
diff --git a/conbench/app/batches.py b/conbench/app/batches.py
index cbf0e5e36..48a878ca2 100644
--- a/conbench/app/batches.py
+++ b/conbench/app/batches.py
@@ -8,7 +8,7 @@
 from ..app._endpoint import AppEndpoint, authorize_or_terminate
 from ..app._plots import simple_bar_plot
 from ..app._util import augment
-from ..app.benchmarks import ContextMixin
+from ..app.results import ContextMixin
 from ..config import Config
 
 
diff --git a/conbench/app/compare.py b/conbench/app/compare.py
index afa4b7f6c..34a305c10 100644
--- a/conbench/app/compare.py
+++ b/conbench/app/compare.py
@@ -8,7 +8,7 @@
 from ..app._endpoint import AppEndpoint, authorize_or_terminate
 from ..app._plots import TimeSeriesPlotMixin, simple_bar_plot
 from ..app._util import augment
-from ..app.benchmarks import BenchmarkResultMixin, RunMixin
+from ..app.results import BenchmarkResultMixin, RunMixin
 from ..config import Config
 from ..entities.run import commit_hardware_run_map
 
diff --git a/conbench/app/index.py b/conbench/app/index.py
index 7a8dd9373..962b1faf2 100755
--- a/conbench/app/index.py
+++ b/conbench/app/index.py
@@ -7,7 +7,7 @@
 
 from ..app import rule
 from ..app._endpoint import AppEndpoint, authorize_or_terminate
-from ..app.benchmarks import RunMixin
+from ..app.results import RunMixin
 from ..config import Config
 from ..db import Session
 from ..entities.run import Run
diff --git a/conbench/app/benchmarks.py b/conbench/app/results.py
similarity index 100%
rename from conbench/app/benchmarks.py
rename to conbench/app/results.py
diff --git a/conbench/app/runs.py b/conbench/app/runs.py
index 6d1a7fd1f..fd1d23124 100644
--- a/conbench/app/runs.py
+++ b/conbench/app/runs.py
@@ -8,7 +8,7 @@
 from ..app._endpoint import AppEndpoint, authorize_or_terminate
 from ..app._plots import TimeSeriesPlotMixin
 from ..app._util import augment
-from ..app.benchmarks import ContextMixin, RunMixin
+from ..app.results import ContextMixin, RunMixin
 from ..config import Config
 
 


Test patch:
diff --git a/conbench/tests/api/test_benchmarks.py b/conbench/tests/api/test_results.py
similarity index 100%
rename from conbench/tests/api/test_benchmarks.py
rename to conbench/tests/api/test_results.py
diff --git a/conbench/tests/app/test_benchmarks.py b/conbench/tests/app/test_results.py
similarity index 100%
rename from conbench/tests/app/test_benchmarks.py
rename to conbench/tests/app/test_results.py