Skip to content

Commit

Permalink
reverting changes
Browse files Browse the repository at this point in the history
Signed-off-by: Bharathwaj G <[email protected]>
  • Loading branch information
bharath-techie committed Sep 7, 2023
1 parent d11f284 commit 5137866
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: Checkout Branch
uses: actions/checkout@v2
- name: Build with Gradle
run: ./gradlew build -Dtests.heap.size=1G
run: ./gradlew build
- name: Pull and Run Docker for security tests
run: |
version=`./gradlew properties -q | grep "opensearch_version:" | awk '{print $2}'`
Expand Down Expand Up @@ -74,10 +74,10 @@ jobs:
if [ $security -gt 0 ]
then
echo "Security plugin is available"
./gradlew integTest -Dtests.rest.cluster=localhost:9200 -Dtests.cluster=localhost:9200 -Dtests.clustername="docker-cluster" -Dhttps=true -Duser=admin -Dpassword=admin -Dtests.heap.size=1G
./gradlew integTest -Dtests.rest.cluster=localhost:9200 -Dtests.cluster=localhost:9200 -Dtests.clustername="docker-cluster" -Dhttps=true -Duser=admin -Dpassword=admin
else
echo "Security plugin is NOT available"
./gradlew integTest -Dtests.rest.cluster=localhost:9200 -Dtests.cluster=localhost:9200 -Dtests.clustername="docker-cluster" -Dtests.heap.size=1G
./gradlew integTest -Dtests.rest.cluster=localhost:9200 -Dtests.cluster=localhost:9200 -Dtests.clustername="docker-cluster"
fi
- name: Upload failed logs
uses: actions/upload-artifact@v2
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/multi-node-test-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ jobs:
- name: Checkout Branch
uses: actions/checkout@v2
- name: Run integration tests with multi node config
run: ./gradlew integTest -PnumNodes=5 -Dtests.heap.size=1G
run: ./gradlew integTest -PnumNodes=5
- name: Run Backwards Compatibility Tests
run: |
echo "Running backwards compatibility tests ..."
./gradlew bwcTestSuite -Dtests.security.manager=false -Dtests.heap.size=1G
./gradlew bwcTestSuite -Dtests.security.manager=false
- name: Upload failed logs
uses: actions/upload-artifact@v2
if: failure()
Expand Down
3 changes: 0 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,6 @@ def securityEnabled = System.getProperty("security", "false") == "true"
test {
systemProperty 'tests.security.manager', 'false'
systemProperty 'es.set.netty.runtime.available.processors', 'false'
systemProperty 'tests.heap.size', '1G'

}

Expand All @@ -198,7 +197,6 @@ testClusters.integTest {

integTest {
systemProperty 'tests.security.manager', 'false'
systemProperty 'tests.heap.size', '1G'
systemProperty 'java.io.tmpdir', opensearch_tmp_dir.absolutePath
systemProperty 'buildDir', buildDir.path
systemProperty "https", System.getProperty("https", securityEnabled.toString())
Expand Down Expand Up @@ -232,7 +230,6 @@ task integTestRemote(type: RestIntegTestTask) {
testClassesDirs = sourceSets.test.output.classesDirs
classpath = sourceSets.test.runtimeClasspath
systemProperty 'tests.security.manager', 'false'
systemProperty 'tests.heap.size', '1G'
systemProperty 'java.io.tmpdir', opensearch_tmp_dir.absolutePath

systemProperty "https", System.getProperty("https")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

package org.opensearch.search.asynchronous.restIT;

import org.opensearch.monitor.jvm.JvmInfo;
import org.opensearch.search.asynchronous.context.active.AsynchronousSearchActiveStore;
import org.opensearch.search.asynchronous.context.state.AsynchronousSearchState;
import org.opensearch.search.asynchronous.request.GetAsynchronousSearchRequest;
Expand Down Expand Up @@ -116,7 +117,8 @@ public void testMaxRunningAsynchronousSearchContexts() throws Exception {
for (Thread thread : threadsList) {
thread.join();
}
assertEquals(numFailures.get(), 50);
assertEquals(512, JvmInfo.jvmInfo().getMem().getHeapMax().getMb());
assertEquals(numFailures.get(), 49);
updateClusterSettings(AsynchronousSearchActiveStore.NODE_CONCURRENT_RUNNING_SEARCHES_SETTING.getKey(),
AsynchronousSearchActiveStore.NODE_CONCURRENT_RUNNING_SEARCHES);
}
Expand Down

0 comments on commit 5137866

Please sign in to comment.