-
Notifications
You must be signed in to change notification settings - Fork 72
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
Disable Windows symlinking test #759
Comments
Hello @patricoferris My name is Anthony Onah, an outreachy applicant for the December 24 cohort. I will like to work on this good first issue with your assistance. I have attached a screenshot of my terminal running the Eio "Hello world." |
@create2000 did you not already sign up for working on #575 ? |
@patricoferris I was going to sign up for the #322 but it was referenced to the #575 which i do not know if it is a good first issue. If it is a good first issue, then i'd go with it. |
It is a challenging issue I think (as @talex5 pointed out). But if you feel confident then I think even just pushing that PR in the right direction based on the feedback is a great contribution, even if it doesn't quite get merged in time for the end of the contribution phases (merged PRs are not the only way to contribute). |
Confident? Not so sure, but i'd like to take up the challenge. Afterall that's what makes us know our strength. I have sent a screenshot of my terminal running the "Hello world" on top. Do i need to resend it? And do i need to begin from this issue(cloning the repo to work on) or do i work straight from the #322 repo? |
I think you want to fork this repository and fetch @avsm's branch (https://github.com/avsm/eio/tree/sockopt) and work on the changes suggested at the end of #575 -- does that make sense ? |
@patricoferris . Yes, it does. I have been on it. Will relate back to you soon on some challenges i have been encountering. Thank you. |
Hello @patricoferris -- In trying to run a test on the code to check if it disables Windows symlinking tests, I am constantly getting this error: |
Hey @create2000, It looks like you are trying to run the compiler by hand. Eio uses the |
Thank you for the direction. I was already on it. When i run |
We need to use the |
Hello @patricoferris -- so, i have been trying to get the issue solved but have been running into some errors ranging from
Let me walk you through what i have done and where i am stuck at: I was able to read and to my best of knowledge and some stack overflow answers, i set up a At the moment, this is how my file looks like:
let disable_symlink_creation () =
) let () = And i am repeatedly getting this error message : I think there's something I am not doing right and would appreciate pointing me to the right direction. |
Hey @create2000, I think there has been some confusion here. Let me help clear things up. There are tests for Windows that use symlinking to check for certain properties. At the moment, there is actually only one: eio/lib_eio_windows/test/test_fs.ml Line 146 in 77d8810
This test fails by raising an error. However,
Hmm, I'm curious where did you see that this function could be used? There is no This issue should not require any new files to be created. |
Thank you so greatly @patricoferris. Now I understand better. |
Hello @patricoferris -- a clarification. Would checking the system OS to see if it's Windows and thereby skipping the test_symlink logic suffice? I have something like this:
Or should I rather handle the situation where the current user lacks permission to create symlinks? |
Hello @patricoferris -- I made a PR for this Issue. |
Symlinking on Windows is a priveleged operation. From OCaml's
Unix.symlink
documentation.Currently, I think the tests can fail because of this. We should only run symlink tests on Windows if we can (i.e. any tests that use
Unix.symlink
).The text was updated successfully, but these errors were encountered: