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

Refactor retrievePreviousBuild and buildManifest library #396

Merged
merged 2 commits into from
Mar 28, 2024

Conversation

zelinh
Copy link
Member

@zelinh zelinh commented Mar 15, 2024

Description

Move the latest index download to the buildManifest library.
Now if the latest index is not available, we would run the full build without incremental.

Issues Resolved

#392

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 Mar 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.06%. Comparing base (0721e85) to head (78ecbe0).

Additional details and impacted files
@@             Coverage Diff              @@
##               main     #396      +/-   ##
============================================
+ Coverage     87.01%   87.06%   +0.05%     
  Complexity       31       31              
============================================
  Files            86       87       +1     
  Lines           231      232       +1     
  Branches         12       12              
============================================
+ Hits            201      202       +1     
  Misses           22       22              
  Partials          8        8              

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

@zelinh zelinh merged commit 5a9bd97 into opensearch-project:main Mar 28, 2024
9 checks passed
@zelinh zelinh deleted the refactor-download branch March 28, 2024 23:26
opensearch-trigger-bot bot pushed a commit that referenced this pull request Mar 28, 2024
Signed-off-by: Zelin Hao <[email protected]>
(cherry picked from commit 5a9bd97)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@opensearch-trigger-bot
Copy link

The backport to 6.x failed:

The process '/usr/bin/git' failed with exit code 1

To backport manually, run these commands in your terminal:

# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add ../.worktrees/backport-6.x 6.x
# Navigate to the new working tree
pushd ../.worktrees/backport-6.x
# Create a new branch
git switch --create backport/backport-396-to-6.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 5a9bd970870c3b6c4c5500cc27d5c54d56b4f818
# Push it to GitHub
git push --set-upstream origin backport/backport-396-to-6.x
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/backport-6.x

Then, create a pull request where the base branch is 6.x and the compare/head branch is backport/backport-396-to-6.x.

zelinh added a commit to zelinh/opensearch-build-libraries that referenced this pull request Mar 29, 2024
@@ -8,13 +8,25 @@
*/
package jenkins.tests

import org.junit.Test
import org.junit.*
Copy link
Member

Choose a reason for hiding this comment

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

Should have avoided wildcard here. junit has way too many subclasses. Please fix this in next iteration

Copy link
Member Author

Choose a reason for hiding this comment

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

Sure thanks.

zelinh added a commit to zelinh/opensearch-build-libraries that referenced this pull request Mar 29, 2024
…project#396)

Signed-off-by: Zelin Hao <[email protected]>
(cherry picked from commit 5a9bd97)
Signed-off-by: Zelin Hao <[email protected]>
zelinh added a commit that referenced this pull request Mar 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants