Skip to content
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

Add bwc.checkout.align parameter support in gradle-check #451

Merged
merged 1 commit into from
Jul 1, 2024
Merged

Add bwc.checkout.align parameter support in gradle-check #451

merged 1 commit into from
Jul 1, 2024

Conversation

rishabh6788
Copy link
Collaborator

@rishabh6788 rishabh6788 commented Jun 28, 2024

Description

Add bwc.checkout.align parameter support in gradle-check.

Issues Resolved

#420

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.

Copy link

codecov bot commented Jun 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.26%. Comparing base (9a7a323) to head (50ec92a).

Additional details and impacted files
@@             Coverage Diff              @@
##               main     #451      +/-   ##
============================================
+ Coverage     84.23%   84.26%   +0.03%     
  Complexity       80       80              
============================================
  Files           105      106       +1     
  Lines           520      521       +1     
  Branches         61       61              
============================================
+ Hits            438      439       +1     
  Misses           26       26              
  Partials         56       56              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -71,7 +78,7 @@ void call(Map args = [:]) {

echo "Start gradlecheck"
GRADLE_CHECK_STATUS=0
./gradlew clean && ./gradlew check -Dtests.coverage=true --no-daemon --no-scan || GRADLE_CHECK_STATUS=1
./gradlew clean && ./gradlew check -Dtests.coverage=true ${bwc_checkout_align_param} --no-daemon --no-scan || GRADLE_CHECK_STATUS=1
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does the below suggestion make it less confusing?

Suggested change
./gradlew clean && ./gradlew check -Dtests.coverage=true ${bwc_checkout_align_param} --no-daemon --no-scan || GRADLE_CHECK_STATUS=1
./gradlew clean && ./gradlew check -Dtests.coverage=true -Dbwc.checkout.align=${bwc_checkout_align} --no-daemon --no-scan || GRADLE_CHECK_STATUS=1

Copy link
Collaborator Author

@rishabh6788 rishabh6788 Jun 28, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why add it when it is set to false by default.
Honestly doesn't make any difference.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just in case the default value changes in OpenSearch repo, it will be easier to debug using the command in the gradle check run. Your call

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel like at the moment we can keep it removed if false, since it is the origin behavior unchanged.

@rishabh6788 rishabh6788 merged commit 9338046 into opensearch-project:main Jul 1, 2024
9 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jul 1, 2024
Signed-off-by: Rishabh Singh <[email protected]>
(cherry picked from commit 9338046)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
rishabh6788 pushed a commit that referenced this pull request Jul 1, 2024
Signed-off-by: Rishabh Singh <[email protected]>
(cherry picked from commit 9338046)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

4 participants