-
Notifications
You must be signed in to change notification settings - Fork 64
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
polkavm-test-data #240
base: master
Are you sure you want to change the base?
polkavm-test-data #240
Conversation
I don't know how to fix build-and-test-windows. |
c5fe193
to
df084cf
Compare
The windows runner doesn't seem to use a rustup managed cargo. So they are not able to download and use the toolchain specified in the |
This is weird; it's clearly using rustup because
but when it's ran from inside of the I'm not sure how to fix it; you'll have to fiddle with it. Maybe clearing the environment variables screws it up? |
Oops didn't see that and jumped to conclusions. Rustup seems to installed and is picking up the toolchain file in the repo root.
Yes it is weird. Maybe some platform differences regarding pathes?
We do the clearing in the other build scripts in polkadot-sdk, too. But I don't think it is ever tested on Windows. Yeah maybe removing the clearing and work from there. Maybe additional or different variables need to be forwarded on Windows. |
32a763d
to
f7481c7
Compare
At least now it is failing everywhere? :D |
Working on it... temporary glitch ;---) |
e5b98a7
to
c8f485b
Compare
@koute, @athei, I'll go a few diff's now that I've fixed the stuff I know how to fix! Diff 1:
Result:
Diff 2:
Result:
Diff 3:
Result:
How should I move forward? |
Debug this further. Probably reproducing in a Windows VM. Looking at the code nothing obvious comes to mind for me. |
I'm working on setting up a Windows VM. It is worth of investment as Windows could break also in future because POSIX does not always align that well in that environment. So yeah, we're on the same page. |
I spent a lot of time on setting up a Windows environment that is usable. Now I have an image that logins automatically and boots to the terminal, and I can reach the host via ssh. Also environment has been setup. This what happens: @athei, @koute: So I guess this maps to replacing |
I think it was useful spend couple of days to figure out effective way to use for Windows. After this I can reproduce bugs in no time. It was an investment ;-) |
5022f31
to
302c305
Compare
Better to take a break with this one, nothing comes to mind ATM to try out with Windows build. Revisiting when new idea pop up. |
Next steps in the backlog:
|
Some new remarks. I wrote a script yesterday (Sunday), which captures WMI system events, and matches process names per keyword when they are created. I can use that to capture environment variables from terminal and build.rs runs of cargo. I capture both cargo and rustup process spawns. The script dumps environment variables to a text file. Then as postmortem analysis I look at disjoint sets of these runs. Probably env_clear() is a bit brutal action to take for any possible OS so that I'll take away completely. My script has been only lightly tested. A backup plan is to use ProcMon from sysinternals: https://learn.microsoft.com/en-us/sysinternals/downloads/procmon It has filters functionality that is similar to Wireshark, i.e. it can dump stuff too... Just wanted to make sure that I have at least couple of ways to approach this that do not require contaminate test target with mods. |
17e42fc
to
6c3ca10
Compare
9e10b11
to
defd734
Compare
87007be
to
7715ad4
Compare
Introduce a new crate to bootstrap blobs for the test data used by polkavm tests. Replicate the build process of guest-programs/build-test-data.sh. Signed-off-by: Jarkko Sakkinen <[email protected]>
Signed-off-by: Jarkko Sakkinen <[email protected]>
Signed-off-by: Jarkko Sakkinen <[email protected]>
Give credits where it is due. Signed-off-by: Jarkko Sakkinen <[email protected]>
7715ad4
to
5eee987
Compare
Closes: #209