-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
135 changed files
with
1,215 additions
and
211 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,4 +37,4 @@ categories: | |
- 'Maintenance' | ||
- title: 'Refactoring' | ||
labels: | ||
- 'Refactoring' | ||
- 'Refactoring' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
name: Apply 'untriaged' label during issue lifecycle | ||
|
||
on: | ||
issues: | ||
types: [opened, reopened, transferred] | ||
|
||
jobs: | ||
apply-label: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/github-script@v6 | ||
with: | ||
script: | | ||
github.rest.issues.addLabels({ | ||
issue_number: context.issue.number, | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
labels: ['untriaged'] | ||
}) | ||
name: Apply 'untriaged' label during issue lifecycle | ||
|
||
on: | ||
issues: | ||
types: [opened, reopened, transferred] | ||
|
||
jobs: | ||
apply-label: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/github-script@v6 | ||
with: | ||
script: | | ||
github.rest.issues.addLabels({ | ||
issue_number: context.issue.number, | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
labels: ['untriaged'] | ||
}) |
65 changes: 65 additions & 0 deletions
65
.github/workflows/backwards_compatibility_tests_workflow.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
name: Backwards Compatibility Tests NeuralSearch | ||
on: | ||
push: | ||
branches: | ||
- "*" | ||
- "feature/**" | ||
pull_request: | ||
branches: | ||
- "*" | ||
- "feature/**" | ||
|
||
jobs: | ||
Restart-Upgrade-BWCTests-NeuralSearch: | ||
strategy: | ||
matrix: | ||
java: [ 11, 17, 21 ] | ||
os: [ubuntu-latest,windows-latest] | ||
bwc_version : ["2.9.0","2.10.0","2.11.0","2.12.0-SNAPSHOT"] | ||
opensearch_version : [ "3.0.0-SNAPSHOT" ] | ||
|
||
name: NeuralSearch Restart-Upgrade BWC Tests | ||
runs-on: ${{ matrix.os }} | ||
env: | ||
BWC_VERSION_RESTART_UPGRADE: ${{ matrix.bwc_version }} | ||
|
||
steps: | ||
- name: Checkout NeuralSearch | ||
uses: actions/checkout@v1 | ||
|
||
- name: Setup Java ${{ matrix.java }} | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: ${{ matrix.java }} | ||
|
||
- name: Run NeuralSearch Restart-Upgrade BWC Tests from BWCVersion-${{ matrix.bwc_version }} to OpenSearch Version-${{ matrix.opensearch_version }} on ${{matrix.os}} | ||
run: | | ||
echo "Running restart-upgrade backwards compatibility tests ..." | ||
./gradlew :qa:restart-upgrade:testAgainstNewCluster -D'tests.bwc.version=${{ matrix.bwc_version }}' | ||
Rolling-Upgrade-BWCTests-NeuralSearch: | ||
strategy: | ||
matrix: | ||
java: [ 11, 17, 21 ] | ||
os: [ubuntu-latest,windows-latest] | ||
bwc_version: [ "2.12.0-SNAPSHOT" ] | ||
opensearch_version: [ "3.0.0-SNAPSHOT" ] | ||
|
||
name: NeuralSearch Rolling-Upgrade BWC Tests | ||
runs-on: ${{ matrix.os }} | ||
env: | ||
BWC_VERSION_ROLLING_UPGRADE: ${{ matrix.bwc_version }} | ||
|
||
steps: | ||
- name: Checkout NeuralSearch | ||
uses: actions/checkout@v1 | ||
|
||
- name: Setup Java ${{ matrix.java }} | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: ${{ matrix.java }} | ||
|
||
- name: Run NeuralSearch Rolling-Upgrade BWC Tests from BWCVersion-${{ matrix.bwc_version }} to OpenSearch Version-${{ matrix.opensearch_version }} on ${{matrix.os}} | ||
run: | | ||
echo "Running rolling-upgrade backwards compatibility tests ..." | ||
./gradlew :qa:rolling-upgrade:testRollingUpgrade -D'tests.bwc.version=${{ matrix.bwc_version }}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
allprojects { | ||
project.apply plugin: "com.diffplug.spotless" | ||
spotless { | ||
java { | ||
// Normally this isn't necessary, but we have Java sources in | ||
// non-standard places | ||
target '**/*.java' | ||
|
||
removeUnusedImports() | ||
eclipse().configFile rootProject.file('formatter/formatterConfig.xml') | ||
trimTrailingWhitespace() | ||
endWithNewline(); | ||
|
||
custom 'Refuse wildcard imports', { | ||
// Wildcard imports can't be resolved; fail the build | ||
if (it =~ /\s+import .*\*;/) { | ||
throw new AssertionError("Do not use wildcard imports. 'spotlessApply' cannot resolve this issue.") | ||
} | ||
} | ||
} | ||
format 'misc', { | ||
target '*.md', '**/*.gradle', '**/*.json', '**/*.yaml', '**/*.yml', '**/*.svg' | ||
|
||
trimTrailingWhitespace() | ||
endWithNewline() | ||
} | ||
format("license", { | ||
licenseHeaderFile("${rootProject.file("formatter/license-header.txt")}", "package "); | ||
target("src/*/java/**/*.java","qa/*/java/**/*.java") | ||
}) | ||
} | ||
} |
Oops, something went wrong.