-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Recover geoip.region_iso_code field in test expectations #8204
Conversation
This field appears on ES 6.5.X This reverts part of commit e229852.
668cd7d
to
3f2c4e3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, I guess we should see green on these tests
jenkins, test this again |
Tests fixed in travis, affected tests also passed on jenkins but other things failed, I think they are unrelated but lets wait for another run. |
"Fixed" tests failed now in jenkins, @ruflin do you know if it is possible that different geoip plugin versions are used in jenkins and travis? Maybe we need to do these tests less strict with the comparison of objects. |
It could be that a different "snapshot" of Elasticsearch is used and we have to invalidate the cache in Jenkins. I thought it does it checks automatically every time because we use the What happens if you run it locally? |
Locally it works, it also worked on travis, and it seemed to work in the first jenkins build too. |
I'm worried that this kind of plugins that inject fields could make us to need to revisit these checks from time to time, what about completely ignoring the |
2e7b7cb
to
cc0f27e
Compare
I have added a whitelist for fields that may change, though the Opinions? |
I think there are 2 parts here:
I agree that the identical part is not optimal for geoip to run tests on as it might change over time. At the same time I think we should check that the fields are there and if some are added / removed we should know as it could be that our dashboards rely on it. Could we modify it that for the whitelist fields we don't do a comparison but still a check if they are there? If it was working first and then stopped working I would assume it's a different jenkins worker and they have different versions of the docker image. |
Good point on dashboards.
In the case of I'm going to try to make it work as it was before, without the whitelist thing, this hasn't been so problematic till now, and I can open another PR to discuss how to do the separation of checking equality and validating that fields are there. |
cc0f27e
to
3f2c4e3
Compare
143c439
to
45b31e6
Compare
Affected test passed after adding an explicit pull. |
jenkins, test this again |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we forward port this change?
Yes, I will open a PR to master with the second commit here. |
This field appears on ES 6.5.X
This reverts part of commit e229852.