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

Add user tags when comparing races #660

Merged

Conversation

alexsapran
Copy link
Contributor

This change will include the race user tags along side with the date, challenge,
car

Example:

$ ./rally compare --contender=20190227T161026Z --baseline=20190228T150825Z  

    ____        ____
   / __ \____ _/ / /_  __
  / /_/ / __ `/ / / / / /
 / _, _/ /_/ / / / /_/ /
/_/ |_|\__,_/_/_/\__, /
                /____/


Comparing baseline
  Race timestamp: 2019-02-28 15:08:25
  Challenge: append-no-conflicts-with-ingest-pipeline
  Car: external
  User Tags: intention=combined, template=io

with contender
  Race timestamp: 2019-02-27 16:10:26
  Challenge: append-no-conflicts-with-ingest-pipeline
  Car: external
  User Tags: intention=combined, template=io

Fixes: #657

This change will include the race user tags along side with the date, challenge,
car
@alexsapran alexsapran self-assigned this Mar 4, 2019
@danielmitterdorfer danielmitterdorfer added enhancement Improves the status quo :Reporting Command line reporting labels Mar 4, 2019
@@ -675,12 +675,18 @@ def report(self, r1, r2):
if r1.challenge_name:
print_internal(" Challenge: %s" % r1.challenge_name)
print_internal(" Car: %s" % r1.car_name)
if r1.user_tags:
r1_user_tags = ", ".join(["%s=%s" % (k, v) for k, v in sorted(r1.user_tags.items())])
print_internal(" User Tags: %s" % r1_user_tags)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

or better User tags (lower t vs capital)

Copy link
Member

Choose a reason for hiding this comment

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

Makes sense.

Copy link
Member

@danielmitterdorfer danielmitterdorfer left a comment

Choose a reason for hiding this comment

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

Thanks for the PR! LGTM

@@ -675,12 +675,18 @@ def report(self, r1, r2):
if r1.challenge_name:
print_internal(" Challenge: %s" % r1.challenge_name)
print_internal(" Car: %s" % r1.car_name)
if r1.user_tags:
r1_user_tags = ", ".join(["%s=%s" % (k, v) for k, v in sorted(r1.user_tags.items())])
print_internal(" User Tags: %s" % r1_user_tags)
Copy link
Member

Choose a reason for hiding this comment

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

Makes sense.

@alexsapran alexsapran merged commit 4c9a52c into elastic:master Mar 5, 2019
@alexsapran alexsapran deleted the feature/add-user-tags-in-compare-races branch March 5, 2019 10:22
@danielmitterdorfer danielmitterdorfer added this to the 1.1.0 milestone Mar 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improves the status quo :Reporting Command line reporting
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants