Skip to content

Commit

Permalink
readme and utils changes
Browse files Browse the repository at this point in the history
Signed-off-by: Shashank Reddy Boyapally <[email protected]>
  • Loading branch information
shashank-boyapally committed Mar 28, 2024
1 parent 67c5a2d commit 51f997b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Orion - CLI tool to find regressions
Orion stands as a powerful command-line tool/Daemon designed for identifying regressions within perf-scale CPT runs, leveraging metadata provided during the process. The detection mechanism relies on [hunter](https://github.com/datastax-labs/hunter).
Orion stands as a powerful command-line tool/daemon designed for identifying regressions within perf-scale CPT runs, leveraging metadata provided during the process. The detection mechanism relies on [hunter](https://github.com/datastax-labs/hunter).

Below is an illustrative example of the config and metadata that Orion can handle:

Expand Down Expand Up @@ -114,7 +114,7 @@ POST http://127.0.0.1:8000/daemon
*Parameters*

- uuid (optional): The uuid of the run you want to compare with similar runs.
- baseline (optional): The runs you want to compare.
- baseline (optional): The runs you want to compare with.

*Request Body*

Expand Down
4 changes: 2 additions & 2 deletions orion.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def cli(max_content_width=120): # pylint: disable=unused-argument


# pylint: disable=too-many-locals
@cli.command(name="cmd-mode")
@cli.command(name="cmd")
@click.option("--config", default="config.yaml", help="Path to the configuration file")
@click.option(
"--output-path", default="output.csv", help="Path to save the output csv file"
Expand Down Expand Up @@ -58,7 +58,7 @@ def cmd_analysis(**kwargs):
print("="*len(test_name))
print(result_table)

@cli.command(name="daemon-mode")
@cli.command(name="daemon")
@click.option("--debug", default=False, is_flag=True, help="log level")
def rundaemon(debug):
"""
Expand Down
1 change: 0 additions & 1 deletion pkg/runTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,4 @@ def run(**kwargs):
result, test, output=kwargs["output_format"], matcher=match
)
result_output[testname] = result_data
del match
return result_output
9 changes: 5 additions & 4 deletions pkg/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,10 +229,11 @@ def get_index_and_ids(metadata, uuids, match, baseline):
Returns:
_type_: index and uuids
"""
if metadata["benchmark.keyword"] == "k8s-netperf":
return "k8s-netperf", uuids
if metadata["benchmark.keyword"] == "ingress-perf":
return "ingress-performance", uuids
index_map={"k8s-netperf":"k8s-netperf",
"ingress-perf":"ingress-performance",
}
if metadata["benchmark.keyword"] in index_map.keys():
return index_map[metadata["benchmark.keyword"]], uuids
index = "ripsaw-kube-burner"
if baseline == "":
runs = match.match_kube_burner(uuids)
Expand Down

0 comments on commit 51f997b

Please sign in to comment.