Skip to content

Commit

Permalink
[ML] Unmute RegressionIT.testSingleNumericFeatureAndMixedTrainingAndN…
Browse files Browse the repository at this point in the history
…onTrainingRows (#67904)

Besides unmuting the test I added debug-level logging to facilitate finding the root cause of the test failure.
  • Loading branch information
valeriy42 authored Jan 26, 2021
1 parent 244fc95 commit 706bf1c
Showing 1 changed file with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,23 @@ public class RegressionIT extends MlNativeDataFrameAnalyticsIntegTestCase {
private String sourceIndex;
private String destIndex;

@Before
public void setupLogging() {
client().admin().cluster()
.prepareUpdateSettings()
.setTransientSettings(Settings.builder()
.put("logger.org.elasticsearch.xpack.ml.process.logging.CppLogMessageHandler", "DEBUG"))
.get();
}

@After
public void cleanup() {
cleanUp();
client().admin().cluster()
.prepareUpdateSettings()
.setTransientSettings(Settings.builder()
.putNull("logger.org.elasticsearch.xpack.ml.process.logging.CppLogMessageHandler"))
.get();
}

@Override
Expand All @@ -84,7 +97,6 @@ protected NamedXContentRegistry xContentRegistry() {
return new NamedXContentRegistry(entries);
}

@AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/60340")
public void testSingleNumericFeatureAndMixedTrainingAndNonTrainingRows() throws Exception {
initialize("regression_single_numeric_feature_and_mixed_data_set");
String predictedClassField = DEPENDENT_VARIABLE_FIELD + "_prediction";
Expand Down

0 comments on commit 706bf1c

Please sign in to comment.