-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify process and remove dco yml as it is replaced by dco app
Signed-off-by: Peter Zhu <[email protected]>
- Loading branch information
1 parent
3f2b4e1
commit b2a7594
Showing
4 changed files
with
41 additions
and
74 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
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -9,6 +9,11 @@ on: | |
- '*' | ||
|
||
jobs: | ||
Get-CI-Image-Tag: | ||
uses: opensearch-project/opensearch-build/.github/workflows/get-ci-image-tag.yml@main | ||
with: | ||
product: opensearch | ||
|
||
req: | ||
# Job name | ||
name: plugin check | ||
|
@@ -45,12 +50,19 @@ jobs: | |
cat $GITHUB_OUTPUT | ||
fi | ||
build: | ||
needs: req | ||
build-linux: | ||
needs: [req, Get-CI-Image-Tag] | ||
if: ${{ 'True' == needs.req.outputs.isSecurityPluginAvailable }} | ||
# Job name | ||
name: Build and Run Security tests | ||
runs-on: ubuntu-latest | ||
container: | ||
# using the same image which is used by opensearch-build team to build the OpenSearch Distribution | ||
# this image tag is subject to change as more dependencies and updates will arrive over time | ||
image: ${{ needs.Get-CI-Image-Tag.outputs.ci-image-version-linux }} | ||
# need to switch to root so that github actions can install runner binary on container without permission issues. | ||
options: --user root | ||
|
||
steps: | ||
# This step uses the setup-java Github action: https://github.com/actions/setup-java | ||
- name: Set Up JDK 17 | ||
|
@@ -62,8 +74,9 @@ jobs: | |
uses: actions/checkout@v2 | ||
- name: Build and run Replication tests | ||
run: | | ||
chown -R 1000:1000 `pwd` | ||
ls -al src/test/resources/security/plugin | ||
./gradlew --refresh-dependencies clean release -Dbuild.snapshot=true -Psecurity=true | ||
su `id -un 1000` -c "whoami && java -version && ./gradlew --refresh-dependencies clean release -Dbuild.snapshot=true -Psecurity=true" | ||
- name: Upload failed logs | ||
uses: actions/upload-artifact@v2 | ||
if: failure() | ||
|
@@ -82,12 +95,19 @@ jobs: | |
fetch-depth: 2 | ||
uses: codecov/[email protected] | ||
|
||
knn-build: | ||
needs: req | ||
knn-build-linux: | ||
needs: [req, Get-CI-Image-Tag] | ||
if: ${{ 'True' == needs.req.outputs.isKnnPluginAvailable }} | ||
# Job name | ||
name: Build and Run Knn tests | ||
runs-on: ubuntu-latest | ||
container: | ||
# using the same image which is used by opensearch-build team to build the OpenSearch Distribution | ||
# this image tag is subject to change as more dependencies and updates will arrive over time | ||
image: ${{ needs.Get-CI-Image-Tag.outputs.ci-image-version-linux }} | ||
# need to switch to root so that github actions can install runner binary on container without permission issues. | ||
options: --user root | ||
|
||
steps: | ||
# This step uses the setup-java Github action: https://github.com/actions/setup-java | ||
- name: Set Up JDK 17 | ||
|
@@ -99,7 +119,8 @@ jobs: | |
uses: actions/checkout@v2 | ||
- name: Build and run Replication tests | ||
run: | | ||
./gradlew --refresh-dependencies clean release -Dbuild.snapshot=true -PnumNodes=1 -Dtests.class=org.opensearch.replication.BasicReplicationIT -Dtests.method="test knn index replication" -Pknn=true | ||
chown -R opensearch.opensearch `pwd` | ||
su `id -un 1000` -c 'whoami && java -version && ./gradlew --refresh-dependencies clean release -Dbuild.snapshot=true -PnumNodes=1 -Dtests.class=org.opensearch.replication.BasicReplicationIT -Dtests.method="test knn index replication" -Pknn=true' | ||
- name: Upload failed logs | ||
uses: actions/upload-artifact@v2 | ||
if: failure() | ||
|
@@ -116,4 +137,4 @@ jobs: | |
- name: Uploads coverage | ||
with: | ||
fetch-depth: 2 | ||
uses: codecov/[email protected] | ||
uses: codecov/[email protected] |