-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable custom start commands and options to resolve GHA issues #676
Open
peterzhuamazon
wants to merge
3
commits into
opensearch-project:main
Choose a base branch
from
peterzhuamazon:update-nodejs-compat
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
|
@@ -30,16 +30,11 @@ jobs: | |
# 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 | ||
|
||
# actions/checkout@v4 and actions/setup-java@v4 use node 20: | ||
# https://github.com/actions/checkout/releases/tag/v4.0.0 | ||
# container image does not have GLIBC_2.28 required for this node version | ||
# as such use @v3 actions instead for this workflow and set ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION | ||
env: | ||
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true | ||
options: ${{ needs.Get-CI-Image-Tag.outputs.ci-image-start-options }} | ||
|
||
steps: | ||
- name: Run start commands | ||
run: ${{ needs.Get-CI-Image-Tag.outputs.ci-image-start-command }} | ||
# This step uses the setup-java Github action: https://github.com/actions/setup-java | ||
- name: Set up JDK ${{ matrix.java }} for build and test | ||
uses: actions/setup-java@v3 | ||
|
@@ -48,7 +43,7 @@ jobs: | |
java-version: ${{ matrix.java }} | ||
# This step uses the checkout Github action: https://github.com/actions/checkout | ||
- name: Checkout Branch | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
- name: Build with Gradle | ||
id: step-build-test-linux | ||
run: | | ||
|
@@ -62,7 +57,7 @@ jobs: | |
uses: codecov/[email protected] | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
- uses: actions/upload-artifact@v3 | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: async-plugin-linux-${{ matrix.java }} | ||
path: ${{ steps.step-build-test-linux.outputs.build-test-linux }} | ||
|
@@ -78,9 +73,6 @@ jobs: | |
# This job runs on Linux. | ||
runs-on: ubuntu-latest | ||
|
||
env: # actions/checkout uses node 16 | ||
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true | ||
|
||
steps: | ||
# This step uses the setup-java Github action: https://github.com/actions/setup-java | ||
- name: Set Up JDK ${{ matrix.java }} | ||
|
@@ -89,8 +81,8 @@ jobs: | |
distribution: temurin # Temurin is a distribution of adoptium | ||
java-version: ${{ matrix.java }} | ||
- name: Checkout Branch | ||
uses: actions/checkout@v3 | ||
- uses: actions/download-artifact@v3 | ||
uses: actions/checkout@v4 | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: async-plugin-linux-${{ matrix.java }} | ||
- name: Pull and Run Docker for security tests | ||
|
@@ -144,7 +136,7 @@ jobs: | |
./gradlew integTest -Dtests.rest.cluster=localhost:9200 -Dtests.cluster=localhost:9200 -Dtests.clustername="docker-cluster" | ||
fi | ||
- name: Upload failed logs | ||
uses: actions/upload-artifact@v3 | ||
uses: actions/upload-artifact@v4 | ||
if: failure() | ||
with: | ||
name: logs | ||
|
@@ -168,7 +160,7 @@ jobs: | |
java-version: ${{ matrix.java }} | ||
# This step uses the checkout Github action: https://github.com/actions/checkout | ||
- name: Checkout Branch | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
- name: Build with Gradle | ||
run: ./gradlew.bat build -x integTest -x jacocoTestReport | ||
env: | ||
|
@@ -179,7 +171,7 @@ jobs: | |
cp ./build/distributions/*.zip asynchronous-search-artifacts | ||
# This step uses the upload-artifact Github action: https://github.com/actions/upload-artifact | ||
- name: Upload Artifacts | ||
uses: actions/upload-artifact@v3 | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: asynchronous-search-plugin-windows | ||
path: asynchronous-search-artifacts | ||
|
@@ -202,7 +194,7 @@ jobs: | |
java-version: ${{ matrix.java }} | ||
# This step uses the checkout Github action: https://github.com/actions/checkout | ||
- name: Checkout Branch | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
- name: Build with Gradle | ||
run: ./gradlew build -x integTest -x jacocoTestReport | ||
env: | ||
|
@@ -213,7 +205,7 @@ jobs: | |
cp ./build/distributions/*.zip asynchronous-search-artifacts | ||
# This step uses the upload-artifact Github action: https://github.com/actions/upload-artifact | ||
- name: Upload Artifacts | ||
uses: actions/upload-artifact@v3 | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: asynchronous-search-plugin-mac | ||
path: asynchronous-search-artifacts |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: remove this comment since the line below it is getting removed in this PR