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 assertions #1157

Merged
merged 3 commits into from
Jan 28, 2021

Conversation

danielmitterdorfer
Copy link
Member

With this commit we add a new assertions property for operations. When
this property is present and assertions are enabled with --enable-assertions,
Rally checks all assertions and raises an error if the check fails.

With this commit we add a new `assertions` property for operations. When
this property is present, Rally checks all assertions and raises an
error if the check fails.
With this commit we disable assertions by default but allow to enable
them via a command line flag.
@danielmitterdorfer danielmitterdorfer added enhancement Improves the status quo :Load Driver Changes that affect the core of the load driver such as scheduling, the measurement approach etc. labels Jan 25, 2021
@danielmitterdorfer danielmitterdorfer added this to the 2.0.4 milestone Jan 25, 2021
@danielmitterdorfer danielmitterdorfer self-assigned this Jan 25, 2021
@danielmitterdorfer
Copy link
Member Author

This has been caused by a transient failure:

[2021-01-25T12:53:07,103][ERROR][o.e.b.Bootstrap          ] [rally-node-0] Exception
org.elasticsearch.http.BindHttpException: Failed to bind to [39200]
[...]
Caused by: java.net.BindException: Address already in use

@elasticmachine test this please

Copy link

@gingerwizard gingerwizard left a comment

Choose a reason for hiding this comment

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

A few clarifications if possible but more for my understanding re typing and meta fields


* ``raw-request``
* ``sleep``
* ``search``

Choose a reason for hiding this comment

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

Adding search to composite 👍

docs/track.rst Show resolved Hide resolved
esrally/driver/runner.py Show resolved Hide resolved
esrally/track/params.py Show resolved Hide resolved
esrally/driver/runner.py Show resolved Hide resolved
@danielmitterdorfer danielmitterdorfer merged commit b92decc into elastic:master Jan 28, 2021
@danielmitterdorfer danielmitterdorfer deleted the assertions branch January 28, 2021 15:39
danielmitterdorfer added a commit to danielmitterdorfer/rally that referenced this pull request Feb 3, 2021
With this commit we add a new `meta data` section to each operation in
the track reference documentation which documents which meta data are
returned. This information can be used to add assertions for custom
tracks. We also enhance a couple of existing runners so that they return
a `dict` structure instead of a tuple because only `dicts` are supported
for assertions.

Relates elastic#1157
danielmitterdorfer added a commit that referenced this pull request Feb 3, 2021
With this commit we add a new `meta data` section to each operation in
the track reference documentation which documents which meta data are
returned. This information can be used to add assertions for custom
tracks. We also enhance a couple of existing runners so that they return
a `dict` structure instead of a tuple because only `dicts` are supported
for assertions.

Relates #1157
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improves the status quo :Load Driver Changes that affect the core of the load driver such as scheduling, the measurement approach etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants