Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename execute to 'run' #720

Open
wants to merge 17 commits into
base: main
Choose a base branch
from

Conversation

OVI3D0
Copy link
Member

@OVI3D0 OVI3D0 commented Dec 30, 2024

Description

Renames instances of 'execute' to 'run', including 'execute-test' 'TestExecution*', etc. Please comment if I missed any instances!

Issues Resolved

#307

Testing

  • New functionality includes testing

Tested with make test + make it and by running test runs + aggregations with an OSB provisioned cluster + another 3 node cluster.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@OVI3D0 OVI3D0 marked this pull request as ready for review December 31, 2024 00:43
@IanHoang IanHoang self-assigned this Jan 14, 2025
OVI3D0 added 14 commits January 21, 2025 18:28
Signed-off-by: Michael Oviedo <[email protected]>
Signed-off-by: Michael Oviedo <[email protected]>
Signed-off-by: Michael Oviedo <[email protected]>
Signed-off-by: Michael Oviedo <[email protected]>
Signed-off-by: Michael Oviedo <[email protected]>
# stored in ~/.benchmark/benchmarks/test_executions/TEST_EXECUTION_TS/).
# test_run.json files (it's a summary of the results of
# a single test_run which is
# stored in ~/.benchmark/benchmarks/test_runs/test_run_TS/).
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be corrected: stored in ~/.benchmark/benchmarks/test_runs/<test_run_id>/)

tests/metrics_test.py Outdated Show resolved Hide resolved
tests/metrics_test.py Outdated Show resolved Hide resolved
tests/metrics_test.py Outdated Show resolved Hide resolved
tests/metrics_test.py Outdated Show resolved Hide resolved
tests/metrics_test.py Outdated Show resolved Hide resolved
tests/metrics_test.py Outdated Show resolved Hide resolved
tests/metrics_test.py Outdated Show resolved Hide resolved
tests/metrics_test.py Outdated Show resolved Hide resolved
tests/metrics_test.py Outdated Show resolved Hide resolved
tests/metrics_test.py Outdated Show resolved Hide resolved
tests/metrics_test.py Outdated Show resolved Hide resolved
tests/metrics_test.py Outdated Show resolved Hide resolved
elif what == "test_executions":
metrics.list_test_executions(cfg)
test_run_orchestrator.list_pipelines()
elif what == "test_runs":
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How do you feel about switching this to test-runs since it's front-facing and being invoked by the user in opensearch-benchmark list test_runs? If we go with a hyphenated approach, we should also update the local directory where they are being stored as test-runs directory.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Personally, I'm on board with this. When I was first working with OSB, I'd often hit list test-executions instead of list test_executions. I think hyphens are more natural when it comes to running commands. I added this change for now but I think we should also get @gkamat opinion on this

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we decide to go forth with this change, we would also have to do this for aggregated_results but we could leave that for a separate PR..

osbenchmark/metrics.py Outdated Show resolved Hide resolved
osbenchmark/metrics.py Outdated Show resolved Hide resolved
osbenchmark/metrics.py Outdated Show resolved Hide resolved
osbenchmark/metrics.py Outdated Show resolved Hide resolved
osbenchmark/metrics.py Outdated Show resolved Hide resolved
osbenchmark/metrics.py Outdated Show resolved Hide resolved
osbenchmark/metrics.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@IanHoang IanHoang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left comments. We can sync up on the front-facing test_runs to test-runs if you'd like

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 👀 In Review
Development

Successfully merging this pull request may close these issues.

2 participants