-
Notifications
You must be signed in to change notification settings - Fork 277
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
[WIN M1] WIN (ZIP/MSI) Build/Assemble Process #2306
Comments
I think building an MSI is a totally separate ask and a whole new project (and repo). |
Since Windows cannot run our python code due to |
OK I think I find this one part: |
I think this is a mistake, and we're giving up prematurely. We definitely have native bits, even though for a first version may not try to build them (k-nn, etc.). A bigger problem is that we need tests to run on the target platform, or we can't be assured the code works. What is the issue with psutil? Link? Make a repro/failing test/ and let's fix it? |
I am in the process of adding Windows runner to Jenkins. |
|
Nice @peterzhuamazon! Try writing up a 3.0/2.x build for Windows? |
Working on it now and still trying to get bash natively running in powershell, which should happen in newer versions. |
New error detected on building opensearch on Windows host: Build Logs
This is caused by the fact that JAVA_HOME is set to jdk8. |
Hi @dblock, Right now I manually swapped the JDK to 17 and able to build "2.1.0 core + common-utils + job-scheduler + ml-commons". This is running shell directly on a Windows 2019 Server without the WSL setup. Windows is IOPS hungry thus EBS Optimized is required and c5 instances enable that by default. There are still some issues with multiple different plugins. Thanks. |
Success with no fixed password logging into Windows Agent through EC2 plugin.
|
This is due to that the Windows API file path size limitation. |
The initial solution is to convert windows path to unicode:
The better solution is to add this reg change to windows packer.
|
After fixing the long path by enable long path on registry, this shows:
|
Another issue is on windows specifically after a few runs git will show malloc error:
Only resolve if we set the mem limits early on:
|
That's some thorough debugging @peterzhuamazon! |
New issue:
This is due to jenkins trying to run git without invoking windows env vars sometimes. In order to make sure it goes to succeed every time I will define the path of git.exe in agent, forcing Jenkins to respect the actual git location during the checkout. This also sometimes cause broken .git folder as git commands will needs to be run multiple times for a checkout, and sometimes the 1st command succeed and the rest of the commands failed out of nowhere. Very inconsistent, especially on windows agent. Solution for now:
|
Another issue that caused the malloc on git of windows: Scoop actually install 2 versions of git, one in apps/git/<>/bin/git.exe, then other on shim/git.exe. The latter one is the one get pick up more often:
The shims one is the 32bit version while the bin one is the 64bit version. Will replace the 32bit one with 64bit one, not sure why scoop is doing this behavior tho. |
This still seems like a limitation not sure why scoop create shims in 32bit only. |
Confirmed now, shims folder entries are just shortcuts to the actual x64 binary, so no issues. |
Apprently os.chmod does not change permissions recursively, at least windows. Initial bug:
After applying this block of code recursively, we reduce errors:
Upon checking on the server the folder is actually empty already, and a simple remove will just run fine. |
Surprising enough the solutions here only runs directly on windows terminal/powershell but not on Jenkins, despite Jenkins is using those two with
|
After many tweaks KNN finally able to build on Windows. |
The reportsDashboards issue show up as it is not able to be built on Windows after their PR: |
Seems like this PR caused all the issues related to windows running opensearch. |
Two new PRs adding the k-NN support on Infra Side: |
KNN build success on 2.4.0 need to add zip in windows agent. |
New change to support KNN rezip on Windows: |
New PR enable knn in 2.4.0 and OSD changes: |
We have completed this milestone now. |
We will discuss the msi creation on the other issues later. |
LINUXWindows platform specified,as we will cross-compile WIN binary on LINUX then package with WINDOWS JDK.This is still in debate as we can techinically build WIN on Windows machine, but there are a lot of things to setup just so Jenkins can run Python on Windows Agent.We are able to run shell scripts natively on Windows agent--platform windows
.ETA: 2022/09/16
Note: MSI section in this milestone is obsolete as MSI is just a wrapper of the content in ZIP. So as long as ZIP is completed here MSI is considered complete as well.
20220715:
20220721:
20220722:
20220819:
20220824:
20220902:
20220907:
20220914:
20220915:
20220916:
20220927:
20220928:
20221004:
20221006:
20221007:
20221010:
20221011:
20221012:
20221013:
20221018:
releases
sql#92820221019:
20221024:
20221025:
20221027:
20221028:
20221101:
20221103:
* OSD: [BUG] opensearch-dashboards-data-source-audit.log do not have line separator on cygwin/msys/mingw OpenSearch-Dashboards#276420221104:
20221107:
20221108:
20221114:
20221116:
The text was updated successfully, but these errors were encountered: