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 allowed_warnings to yaml tests (backport of #53139) #53173

Merged
merged 3 commits into from
Mar 5, 2020

Conversation

nik9000
Copy link
Member

@nik9000 nik9000 commented Mar 5, 2020

When we test backwards compatibility we often end up in a situation
where we sometimes get a warning, and sometimes don't. Like, we won't
get the warning if we're testing against an older version, but we will
in a newer one. Or we won't get the warning if the request randomly
lands on a node with an old version of the code. But we wouldn't if it
randomed into a node with newer code.

This adds allowed_warnings to our yaml test runner for those cases:
warnings declared this way are "allowed" but not "required".

Blocks #52959

nik9000 added 2 commits March 5, 2020 08:17
When we test backwards compatibility we often end up in a situation
where we *sometimes* get a warning, and sometimes don't. Like, we won't
get the warning if we're testing against an older version, but we will
in a newer one. Or we won't get the warning if the request randomly
lands on a node with an old version of the code. But we wouldn't if it
randomed into a node with newer code.

This adds `allowed_warnings` to our yaml test runner for those cases:
warnings declared this way are "allowed" but not "required".

Blocks elastic#52959
@nik9000 nik9000 merged commit f32e458 into elastic:7.x Mar 5, 2020
@nik9000
Copy link
Member Author

nik9000 commented Mar 5, 2020

Thanks @benwtrent !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants