Skip to content

Commit

Permalink
add github workflows
Browse files Browse the repository at this point in the history
Signed-off-by: Neetika Singhal <[email protected]>

Set the concurrent search feature flag setting in the tests if the concurrent
search feature is enabled

Signed-off-by: Neetika Singhal <[email protected]>
(cherry picked from commit 5e39f32)
  • Loading branch information
neetikasinghal committed Aug 22, 2023
1 parent 60d272b commit ee319bc
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/concurrent-search.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
name: Concurrent Search UTs and ITs

on:
schedule:
- cron: '0 */13 * * *' # every 13 hours
workflow_dispatch: # on button click

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest] # precommit on ubuntu-latest is run as a part of the gradle-check workflow
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
if: always()
uses: actions/setup-java@v2
with:
java-version: 11
distribution: adopt
- name: Build the repo
if: always()
run: |
./gradlew assemble -x :distribution:docker:buildArm64DockerImage -x :distribution:docker:buildDockerImage -x :distribution:docker:buildPpc64leDockerImage -x :distribution:docker:docker-export:exportDockerImage -x :distribution:docker:buildS390xDockerImage -x :distribution:docker:docker-ppc64le-export:exportDockerImage -x :distribution:docker:docker-s390x-export:exportDockerImage
- name: Run Gradle unit tests
if: always()
run: |
./gradlew test -Dopensearch.experimental.feature.concurrent_segment_search.enabled=true
- name: Run Gradle integration tests
if: always()
run: |
./gradlew internalClusterTest --parallel -Dopensearch.experimental.feature.concurrent_segment_search.enabled=true
20 changes: 20 additions & 0 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Sync Fork

on:
schedule:
- cron: '0 */1 * * *' # every 1 hour
workflow_dispatch: # on button click

jobs:
sync:

runs-on: ubuntu-latest

steps:
- uses: tgymnich/[email protected]
with:
token: ${{ secrets.PERSONAL_TOKEN }}
owner: neetikasinghal
base: main
head: main
merge_method: rebase
Original file line number Diff line number Diff line change
Expand Up @@ -787,6 +787,9 @@ protected Settings featureFlagSettings() {
}
// Enabling Telemetry setting by default
featureSettings.put(FeatureFlags.TELEMETRY_SETTING.getKey(), true);
if(FeatureFlags.isEnabled(FeatureFlags.CONCURRENT_SEGMENT_SEARCH)) {
featureSettings.put(FeatureFlags.CONCURRENT_SEGMENT_SEARCH, true);
}
return featureSettings.build();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,9 @@ protected Settings featureFlagSettings() {
featureSettings.put(builtInFlag.getKey(), builtInFlag.getDefaultRaw(Settings.EMPTY));
}
featureSettings.put(FeatureFlags.TELEMETRY_SETTING.getKey(), true);
if(FeatureFlags.isEnabled(FeatureFlags.CONCURRENT_SEGMENT_SEARCH)) {
featureSettings.put(FeatureFlags.CONCURRENT_SEGMENT_SEARCH, true);
}
return featureSettings.build();
}

Expand Down

0 comments on commit ee319bc

Please sign in to comment.