-
Notifications
You must be signed in to change notification settings - Fork 280
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
Build OpenSearch on Windows #767
Conversation
b94916e
to
bb69ead
Compare
6db172d
to
ac23301
Compare
7aba717
to
c6892f7
Compare
Look at this! I'll review tomorrow morning |
Codecov Report
@@ Coverage Diff @@
## main #767 +/- ##
==========================================
- Coverage 91.30% 90.98% -0.33%
==========================================
Files 75 75
Lines 1990 2018 +28
==========================================
+ Hits 1817 1836 +19
- Misses 173 182 +9
Continue to review full report at Codecov.
|
@@ -48,7 +49,7 @@ def __init__(self): | |||
self.snapshot = args.snapshot | |||
self.component = args.component | |||
self.keep = args.keep | |||
self.script_path = sys.argv[0].replace("/src/run_build.py", "/build.sh") | |||
self.script_path = sys.argv[0].replace(os.path.sep + os.path.join("src", "run_build.py"), f"{os.path.sep}build.sh") |
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.
Interesting os.path.sep
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 taking care of this
Signed-off-by: dblock <dblock@amazon.com>
Signed-off-by: dblock <dblock@amazon.com>
Signed-off-by: dblock <dblock@dblock.org>
Signed-off-by: dblock <dblock@dblock.org>
Signed-off-by: dblock <dblock@dblock.org>
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.
LGTM!
Description
Fixes tests on Windows:
os.path.join
vs. concatenating string paths or paths with a/
separator.tests/tests_build_workflow
.Issues Resolved
On top of #772.
Part of #33.
With this PR and fixes in opensearch-project/OpenSearch#1412 you can successfully build OpenSearch 2.0.0 min with the following manifest.
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.