Skip to content

Conversation

@tlrx
Copy link
Member

@tlrx tlrx commented Feb 1, 2019

The version exposed in ML feature set are extracted from the ML engine.
The format of the version have changed (see #38168 (review)) .

This PR unmutes the test.

Closes #34386

The version exposed in ML feature set are extracted from the ML engine.
The format of the version seems to have changed and it different for
dev vs tagged version of the engine. This PR unmutes the test and makes
it a bit more permissive about the format of the exposed version.

Closes elastic#34386
@tlrx tlrx added >test Issues or PRs that are addressing/adding tests :Core/Features/Java High Level REST Client v6.7.0 v6.6.1 labels Feb 1, 2019
@tlrx tlrx requested a review from droberts195 February 1, 2019 10:08
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-features

@tlrx tlrx changed the title Reenable PingAndInfoIT on 6.x Reenable PingAndInfoIT.testXPackInfo() on 6.x Feb 1, 2019
assertEquals(mainResponse.getVersion().toString(),
ml.nativeCodeInfo().get("version").toString().replace("-SNAPSHOT", ""));
assertThat(ml.nativeCodeInfo().get("version").toString().replace("-SNAPSHOT", ""),
anyOf(equalTo(mainResponse.getVersion().toString()), startsWith("based on " + mainResponse.getVersion().toString())));
Copy link

@droberts195 droberts195 Feb 1, 2019

Choose a reason for hiding this comment

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

I don't think this test should tolerate "based on". The ml-cpp build system adds "based on" to the version when it builds a repo with uncommitted changes. CI should never be testing ml-cpp builds with uncommitted changes, and we should never have uploaded such a build to the official download location on S3.

Please can you try changing this PR to just unmute the test, and leave the assertion as it was before. If this test then fails in the PR build then I'll take over and find out what is wrong now.

This test was muted around 10th October 2018, when we switched over from building ml-cpp snapshots on the old Prelert Jenkins to building on infra's Jenkins at elasticsearch-ci.elastic.co. For a few days there was a problem where ml-cpp built within a Docker container on infra's setup had a crazy idea of the state of the git repo within the Docker container because it was relying on symlinks to directories outside of the Docker container to optimize the cloning process (inherited from the elasticsearch repo's worker setup). We fixed this in elastic/ml-cpp#270 after debugging using elastic/ml-cpp#269. The full story is in elastic/infra#7464.

It's unfortunate that nobody in the ML team was pinged when this test was muted, as we could have dealt with unmuting at the same time as we fixed the underlying problem. (In fact, you can see from the dates of those other issues and PRs that I linked that we didn't notice there was a problem for a couple of days after the ES test failure revealed it.)

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks David for explaining the whole story around this. I wasn't sure about the tagged/dev differences and that's why I pinged you directly.

Please can you try changing this PR to just unmute the test, and leave the assertion as it was before. If this test then fails in the PR build then I'll take over and find out what is wrong now.

Done. It doesn't fail on master so I expect it to be fine in 6.x too.

It's unfortunate that nobody in the ML team was pinged when this test was muted, as we could have dealt with unmuting at the same time as we fixed the underlying problem.

I agree. But this kind of things happen when we have to deal with a large number of failures :(

@droberts195 droberts195 added the :ml Machine learning label Feb 1, 2019
@elasticmachine
Copy link
Collaborator

Pinging @elastic/ml-core

@tlrx tlrx requested a review from droberts195 February 1, 2019 10:48
@tlrx
Copy link
Member Author

tlrx commented Feb 1, 2019

@droberts195 I updated the test according to your comment. Can you have another look please?

Copy link

@droberts195 droberts195 left a comment

Choose a reason for hiding this comment

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

LGTM assuming that test passes now

@droberts195
Copy link

Thanks for working on this @tlrx!

@tlrx
Copy link
Member Author

tlrx commented Feb 1, 2019

@elasticmachine run elasticsearch-ci/packaging-sample

@tlrx tlrx merged commit 2038221 into elastic:6.x Feb 1, 2019
@tlrx tlrx deleted the fix-34386 branch February 1, 2019 19:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:ml Machine learning >test Issues or PRs that are addressing/adding tests v6.6.1 v6.7.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants