-
Notifications
You must be signed in to change notification settings - Fork 67
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
Fix build to succeed with opensearch_version provided #52
Conversation
ed07f22
to
cd5077c
Compare
Codecov Report
@@ Coverage Diff @@
## main #52 +/- ##
=========================================
Coverage 72.18% 72.18%
Complexity 356 356
=========================================
Files 44 44
Lines 2509 2509
Branches 160 160
=========================================
Hits 1811 1811
Misses 592 592
Partials 106 106 Continue to review full report at Codecov.
|
Signed-off-by: Marc Handalian <[email protected]>
Signed-off-by: Marc Handalian <[email protected]>
* Create writer file if metrics are available (#31) Signed-off-by: Sruti Parthiban <[email protected]> * Add tests to check for writer file only if metrics are present (#35) Signed-off-by: Sruti Parthiban <[email protected]> * Merge pull request #36 from opensearch-project/khushbr-writer-purge-fix Fixing Event Log file cleanup issue * Moving deleteAllFiles() to inside scheduleExecutor() * Fixing the Link Checker errors, updating the official documentation * nit: Fixing spotlessJava indentation issue * Merge pull request #37 from khushbr/feature/purge-fix Handling purging of lingering files before scheduleExecutor start. * Fix failing file handler test (#38) Signed-off-by: Sruti Parthiban <[email protected]> * Remove dependency on main branch when running spotless. (#47) Signed-off-by: Marc Handalian <[email protected]> * Updates to gradle build file (#48) * Updates to gradle build file Signed-off-by: Sruti Parthiban <[email protected]> * Add ability to specify RCA branch Signed-off-by: Sruti Parthiban <[email protected]> * Fix build when opensearch_version flag is provided. (#52) Signed-off-by: Marc Handalian <[email protected]> * Update the version to 1.0.1 Signed-off-by: Sruti Parthiban <[email protected]> Co-authored-by: Khushboo Rajput <[email protected]> Co-authored-by: Khushboo Rajput <[email protected]> Co-authored-by: Marc Handalian <[email protected]>
Signed-off-by: Marc Handalian [email protected]
Is your feature request related to a problem? Please provide an existing Issue # , or describe.
The build is failing when opensearch version specified is not the same as the default value.
Describe the solution you are proposing
The cause of this problem is updateShas is invoked, which is a task in this project, during the doLast step of the buildRCA task. This task is not invoked with any properties passed in during the initial build command.
This change will execute this directly with finalizedBy instead of using doLast and executing from the command line.
Describe alternatives you've considered
passing the version string down to doLast. I would rather directly invoke the task without executing from shell.
closes #51
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.