Skip to content

Commit

Permalink
update os version in gh workflows
Browse files Browse the repository at this point in the history
Signed-off-by: Surya Sashank Nistala <snistala@amazon.com>
  • Loading branch information
eirsep committed Mar 29, 2022
1 parent 6be4595 commit 683f7e8
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 11 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ jobs:
- name: Checkout Branch
uses: actions/checkout@v2
- name: Build with Gradle
run: ./gradlew build -Dopensearch.version=2.0.0-SNAPSHOT
run: ./gradlew build -Dopensearch.version=2.0.0-alpha1-SNAPSHOT
- name: Pull and Run Docker for security tests
run: |
version=2.0.0-SNAPSHOT
version=2.0.0-alpha1-SNAPSHOT
plugin_version=2.0.0.0-SNAPSHOT
pwd=`pwd`
echo $pwd
Expand Down Expand Up @@ -108,7 +108,7 @@ jobs:
- name: Checkout Branch
uses: actions/checkout@v2
- name: Build with Gradle
run: ./gradlew.bat build -D"opensearch.version=2.0.0-SNAPSHOT" -x integTest -x jacocoTestReport
run: ./gradlew.bat build -D"opensearch.version=2.0.0-alpha1-SNAPSHOT" -x integTest -x jacocoTestReport
env:
_JAVA_OPTIONS: -Xmx4096M
- name: Create Artifact Path
Expand Down Expand Up @@ -136,7 +136,7 @@ jobs:
- name: Checkout Branch
uses: actions/checkout@v2
- name: Build with Gradle
run: ./gradlew build -Dopensearch.version=2.0.0-SNAPSHOT -x integTest -x jacocoTestReport
run: ./gradlew build -Dopensearch.version=2.0.0-alpha1-SNAPSHOT -x integTest -x jacocoTestReport
env:
_JAVA_OPTIONS: -Xmx4096M
- name: Create Artifact Path
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/multi-node-test-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Checkout Branch
uses: actions/checkout@v2
- name: Run integration tests with multi node config
run: ./gradlew integTest -PnumNodes=5 -Dopensearch.version=2.0.0-SNAPSHOT
run: ./gradlew integTest -PnumNodes=5 -Dopensearch.version=2.0.0-alpha1-SNAPSHOT
- name: Run Backwards Compatibility Tests
run: |
echo "Running backwards compatibility tests ..."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ private Settings indexSettings() {
private XContentBuilder mapping() {
try {
XContentBuilder builder = XContentFactory.contentBuilder(XContentType.JSON);
builder
builder.startObject()
.startObject("properties")
.startObject(START_TIME_MILLIS)
.field("type", "date")
Expand All @@ -408,6 +408,7 @@ private XContentBuilder mapping() {
.startObject(ERROR)
.field("type", "binary")
.endObject()
.endObject()
.endObject();
return builder;
} catch (IOException e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ public void testAggregationQuery() throws InterruptedException, ExecutionExcepti

public void testIpRangeQuery() throws InterruptedException {
assertAcked(prepareCreate("idx")
.setMapping("type", "ip", "type=ip", "ips", "type=ip"));
.setMapping("ip", "type=ip", "ips", "type=ip"));
waitForRelocation(ClusterHealthStatus.GREEN);

indexRandom(true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ protected int numberOfShards() {

protected void createIdx(String keyFieldMapping) {
assertAcked(prepareCreate("idx")
.setMapping("type", "key", keyFieldMapping));
.setMapping("key", keyFieldMapping));
}

protected void indexData() throws Exception {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public void testCleansUpExpiredAsynchronousSearchDuringFetchPhase() throws Excep
public void testDeletesExpiredAsynchronousSearchResponseFromPersistedStore() throws Exception {
String idx = "idx";
assertAcked(prepareCreate(idx)
.setMapping("type", "ip", "type=ip", "ips", "type=ip"));
.setMapping("ip", "type=ip", "ips", "type=ip"));
waitForRelocation(ClusterHealthStatus.GREEN);
indexRandom(true,
client().prepareIndex(idx).setId("1").setSource(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ protected int maximumNumberOfReplicas() {
public void testRequestForwardingToCoordinatorNodeForPersistedAsynchronousSearch() throws Exception {
String idx = "idx";
assertAcked(prepareCreate(idx)
.setMapping("type", "ip", "type=ip", "ips", "type=ip"));
.setMapping("ip", "type=ip", "ips", "type=ip"));
waitForRelocation(ClusterHealthStatus.GREEN);
indexRandom(true,
client().prepareIndex(idx).setId("1").setSource(
Expand Down Expand Up @@ -98,7 +98,7 @@ public void testRequestForwardingToCoordinatorNodeForRunningAsynchronousSearch()
List<ScriptedBlockPlugin> plugins = initBlockFactory();
String index = "idx";
assertAcked(prepareCreate(index)
.setMapping("type", "ip", "type=ip", "ips", "type=ip"));
.setMapping("ip", "type=ip", "ips", "type=ip"));
waitForRelocation(ClusterHealthStatus.GREEN);

indexRandom(true,
Expand Down

0 comments on commit 683f7e8

Please sign in to comment.