Skip to content

Commit 705e4c3

Browse files
authored
Merge branch 'main' into mark-openai-filtered
2 parents c28c2b0 + c243f8a commit 705e4c3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

plugin/src/test/java/org/opensearch/ml/action/MLCommonsIntegTestCase.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
package org.opensearch.ml.action;
77

88
import static org.opensearch.ml.common.input.parameter.regression.LogisticRegressionParams.ObjectiveType.LOGMULTICLASS;
9+
import static org.opensearch.ml.common.settings.MLCommonsSettings.ML_COMMONS_DISK_FREE_SPACE_THRESHOLD;
910
import static org.opensearch.ml.common.settings.MLCommonsSettings.ML_COMMONS_NATIVE_MEM_THRESHOLD;
1011
import static org.opensearch.ml.common.settings.MLCommonsSettings.ML_COMMONS_ONLY_RUN_ON_ML_NODE;
1112
import static org.opensearch.ml.utils.RestActionUtils.getAllNodes;
@@ -28,6 +29,8 @@
2829
import org.opensearch.common.action.ActionFuture;
2930
import org.opensearch.common.settings.Settings;
3031
import org.opensearch.common.xcontent.XContentType;
32+
import org.opensearch.core.common.unit.ByteSizeUnit;
33+
import org.opensearch.core.common.unit.ByteSizeValue;
3134
import org.opensearch.index.query.QueryBuilder;
3235
import org.opensearch.index.query.QueryBuilders;
3336
import org.opensearch.index.query.TermQueryBuilder;
@@ -439,6 +442,8 @@ protected Settings nodeSettings(int ordinal) {
439442
.put(ML_COMMONS_ONLY_RUN_ON_ML_NODE.getKey(), false)
440443
// Set native memory threshold as 100 to prevent IT failures
441444
.put(ML_COMMONS_NATIVE_MEM_THRESHOLD.getKey(), 100)
445+
// Set disk free space threshold to 100MB - low enough for CI environments
446+
.put(ML_COMMONS_DISK_FREE_SPACE_THRESHOLD.getKey(), new ByteSizeValue(100L, ByteSizeUnit.MB))
442447
.build();
443448
}
444449
}

0 commit comments

Comments
 (0)