-
Notifications
You must be signed in to change notification settings - Fork 279
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
Support snapshot uploading to s3 for every build #1472
Conversation
Signed-off-by: Sayali Gaikawad <gaiksaya@amazon.com>
Signed-off-by: Sayali Gaikawad <gaiksaya@amazon.com>
Signed-off-by: Sayali Gaikawad <gaiksaya@amazon.com>
Signed-off-by: Sayali Gaikawad <gaiksaya@amazon.com>
Signed-off-by: Sayali Gaikawad <gaiksaya@amazon.com>
Signed-off-by: Sayali Gaikawad <gaiksaya@amazon.com>
Signed-off-by: Sayali Gaikawad <gaiksaya@amazon.com>
Signed-off-by: Sayali Gaikawad <gaiksaya@amazon.com>
Signed-off-by: Sayali Gaikawad <gaiksaya@amazon.com>
Codecov Report
@@ Coverage Diff @@
## main #1472 +/- ##
=========================================
Coverage 94.45% 94.45%
Complexity 12 12
=========================================
Files 141 142 +1
Lines 3084 3085 +1
Branches 8 8
=========================================
+ Hits 2913 2914 +1
Misses 164 164
Partials 7 7
Continue to review full report at Codecov.
|
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.
Minor comments, thanks for working on this
Path source = Path.of("tests/data/opensearch-build-1.1.0.yml"); | ||
target = Path.of("workspace/builds/opensearch/manifest.yml"); | ||
Files.createDirectories(target.getParent()); | ||
Files.copy(source, target, StandardCopyOption.REPLACE_EXISTING); |
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.
Can we have this setup pre-built since this is a test inside tests/data
ahead of time? In which case cleanup isn't required either.
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.
Not sure what you mean by pre-build. Can you elaborate? It is already a part of setUp()
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.
I'll try to explain better. This code creates a folder and copies a file when setUp
is run. I would just copy the file and commit it and remove this code.
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.
Got it. Removed this code. And edited the workplace variable so that it fetched from write manifest.
Thanks!
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.
@dblock Can you review it once before I merge?
Thanks!
Signed-off-by: Sayali Gaikawad <gaiksaya@amazon.com>
Signed-off-by: Sayali Gaikawad <gaiksaya@amazon.com>
Signed-off-by: Sayali Gaikawad <gaiksaya@amazon.com>
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.
Can we add a test for jenkins/opensearch/distribution-build.jenkinsfile
Thanks!
Out of the scope of this issue. We can create new issue and follow up on that. |
Dismissing this review since this is an existing job and we'll be adding test cases for this job as a part of a separate issue.
Signed-off-by: Sayali Gaikawad <gaiksaya@amazon.com>
Signed-off-by: Sayali Gaikawad <gaiksaya@amazon.com>
Signed-off-by: Sayali Gaikawad <gaiksaya@amazon.com>
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.
Looks good!
…1472) * Support snapshot builds Signed-off-by: Sayali Gaikawad <gaiksaya@amazon.com>
Description
The current jenkins workflow only updates the release candidates after merging #1378
This PR supports uploading snapshots to below location for every build too:
Issues Resolved
#1442
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.