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 support for OSNAME and ARCH variables in dist repo URLs. #781

Merged
merged 2 commits into from
Oct 2, 2019

Conversation

drawlerr
Copy link
Contributor

@drawlerr drawlerr commented Oct 1, 2019

Since adding native libraries, ES download URLs now come in platform + arch-specific form.

On the current branch 7 for config in rally_teams, we hardcode the platform and arch in the URL. This works fine for the nightly machines but not elsewhere. So, making these vars template parameters.

@drawlerr drawlerr added the bug Something's wrong label Oct 1, 2019
@drawlerr drawlerr added this to the 1.4.0 milestone Oct 1, 2019
@danielmitterdorfer danielmitterdorfer added the :Benchmark Candidate Management Anything affecting how Rally sets up Elasticsearch label Oct 1, 2019
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.

Nice change! I left a few suggestions.

return url_template.replace("{{VERSION}}", self.version)
return self._substitute_vars(url_template)

def _substitute_vars(self, s):
Copy link
Member

Choose a reason for hiding this comment

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

Nice refactoring!

esrally/utils/sysstats.py Show resolved Hide resolved
esrally/mechanic/supplier.py Outdated Show resolved Hide resolved
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.

Nice change! Thank you. LGTM

@drawlerr drawlerr merged commit fc211de into elastic:master Oct 2, 2019
@drawlerr drawlerr deleted the add-os-to-url branch October 2, 2019 13:45
novosibman pushed a commit to novosibman/rally that referenced this pull request Oct 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Benchmark Candidate Management Anything affecting how Rally sets up Elasticsearch bug Something's wrong
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants