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 <[email protected]>
  • Loading branch information
eirsep committed Mar 29, 2022
1 parent 6be4595 commit 8018cfc
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 17 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 @@ -121,13 +121,12 @@ public void testAggregationQuery() throws InterruptedException, ExecutionExcepti
assertAcked(prepareCreate("test")
.setSettings(Settings.builder().put(SETTING_NUMBER_OF_SHARDS, NUM_SHARDS).put(SETTING_NUMBER_OF_REPLICAS, 0))
.setMapping(
"book", "author", "type=keyword", "name", "type=text", "genre",
"type=keyword", "price", "type=float"));
"author", "type=keyword", "name", "type=text", "genre", "type=keyword", "price", "type=float"));
createIndex("idx_unmapped");
// idx_unmapped_author is same as main index but missing author field
assertAcked(prepareCreate("idx_unmapped_author")
.setSettings(Settings.builder().put(SETTING_NUMBER_OF_SHARDS, NUM_SHARDS).put(SETTING_NUMBER_OF_REPLICAS, 0))
.setMapping("book", "name", "type=text", "genre", "type=keyword", "price", "type=float"));
.setMapping("name", "type=text", "genre", "type=keyword", "price", "type=float"));

ensureGreen();
String data[] = {
Expand Down Expand Up @@ -184,7 +183,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 Expand Up @@ -235,15 +234,13 @@ public void testIpRangeQuery() throws InterruptedException {

public void testHighlighterQuery() throws IOException, InterruptedException {
XContentBuilder mappings = jsonBuilder();
mappings.startObject();
mappings.startObject("type")
mappings.startObject()
.startObject("properties")
.startObject("text")
.field("type", "keyword")
.field("store", true)
.endObject()
.endObject().endObject();
mappings.endObject();
assertAcked(prepareCreate("test1")
.setMapping(mappings));
client().prepareIndex("test1").setId("1")
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 8018cfc

Please sign in to comment.