-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Move Gradle wrapper and precommit checks into OpenSearch repo. #1664
Move Gradle wrapper and precommit checks into OpenSearch repo. #1664
Conversation
Signed-off-by: dblock <[email protected]>
Can one of the admins verify this patch? |
Signed-off-by: dblock <[email protected]>
.github/workflows/wrapper.yml
Outdated
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Check Gradle Wrapper |
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.
Gradle publishes an action for verifying jars via https://github.com/gradle/wrapper-validation-action, may be we should give it a shot.
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.
name: Validate Gradle Wrapper
on:
pull_request:
branches:
- main
jobs:
validation:
name: Validation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: gradle/wrapper-validation-action@v1
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.
Thanks for finding this, updated!
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.
2s
Run gradle/wrapper-validation-action@v1
✓ Found known Gradle Wrapper JAR files:
33ad4583fd7ee156f533778736fa1b4940bd83b433934d1cc4e9f608e99a6a89 gradle/wrapper/gradle-wrapper.jar
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.
Nice!
jobs: | ||
validate: | ||
name: Validate | ||
runs-on: ubuntu-latest |
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.
Do we support windows builds on OpenSearch?
If so we should run these checks on multi platforms.
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.
Let's do other platforms separately.
start gradle check |
PR checks on Jenkins is out due to AWS Outage. |
❌ Gradle Precommit failure 9f55db6cfce92494169da0d5e477631390eeba3e |
❌ Gradle Wrapper Validation failure 9f55db6cfce92494169da0d5e477631390eeba3e :alert: Gradle Wrapper integrity has been altered |
❌ Gradle Wrapper Validation failure 4412234 :alert: Gradle Wrapper integrity has been altered |
❌ Gradle Wrapper Validation failure 4a9d15c :alert: Gradle Wrapper integrity has been altered |
❌ Gradle Check failure 9f55db6cfce92494169da0d5e477631390eeba3e |
Signed-off-by: dblock <[email protected]>
✅ Gradle Wrapper Validation success 068a540 |
✅ Gradle Precommit success 068a540 |
❌ Gradle Check failure 9f55db6cfce92494169da0d5e477631390eeba3e |
❌ Gradle Check failure 9f55db6cfce92494169da0d5e477631390eeba3e |
start gradle check |
…earch-project#1664) * Move Gradle checks into OpenSearch repo. Signed-off-by: dblock <[email protected]> * Use working-directory for gradle wrapper validation. Signed-off-by: dblock <[email protected]> * Use https://github.com/gradle/wrapper-validation-action. Signed-off-by: dblock <[email protected]>
#1678) * Move Gradle checks into OpenSearch repo. Signed-off-by: dblock <[email protected]> * Use working-directory for gradle wrapper validation. Signed-off-by: dblock <[email protected]> * Use https://github.com/gradle/wrapper-validation-action. Signed-off-by: dblock <[email protected]>
…earch-project#1664) * Move Gradle checks into OpenSearch repo. Signed-off-by: dblock <[email protected]> * Use working-directory for gradle wrapper validation. Signed-off-by: dblock <[email protected]> * Use https://github.com/gradle/wrapper-validation-action. Signed-off-by: dblock <[email protected]>
* Increment version to 1.2.1. Signed-off-by: dblock <[email protected]> * Move Gradle wrapper and precommit checks into OpenSearch repo. (#1664) * Move Gradle checks into OpenSearch repo. Signed-off-by: dblock <[email protected]> * Use working-directory for gradle wrapper validation. Signed-off-by: dblock <[email protected]> * Use https://github.com/gradle/wrapper-validation-action. Signed-off-by: dblock <[email protected]> * Use Java 14. Signed-off-by: dblock <[email protected]>
Signed-off-by: dblock [email protected]
Description
As part of #2395, move gradle wrapper and precommit checks into the OpenSearch GHA. These currently are implemented and running on a private Jenkins instance, which needs not to be.
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.