-
-
Notifications
You must be signed in to change notification settings - Fork 30
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 for self-hosted Windows runners #224
Comments
Thanks for the report! There may be some issue with jq or path handling. Could you try aa0fb41? |
https://github.com/subspace/subspace/actions/runs/6188492029/job/16800658877#step:7:1 |
Hmm. jq at least succeeds in parsing the manifest the first and second time (since "1.3.0" is parsed), but the subsequent comparison to "null" (even though the actual value is "null") appears to be evaluated as false. Line 209 in c33cd1d
Given that the jq version is 1.6 and that a flag was added in 1.7 to fix the carriage return problem, I guess this is probably related to jqlang/jq#1854. Could you try c86cf7e? |
I don't see anything helpful in the output: https://github.com/subspace/subspace/actions/runs/6188821326/job/16801617758#step:7:1 |
jqlang/jq#1854 appears to indicate that the problem exists only with a particular type of jq binary, and the curl error (unable to write to hidden directory) appears to be specific to a particular build way. (Both work fine, at least when using the binaries included in the GitHub-provided runners.) Could you try 77363e9? (added potential workaround for curl hidden directory issue) |
Hm...
https://github.com/subspace/subspace/actions/runs/6189004596/job/16802168830#step:7:1 |
Could you try f2f6a1f? Added a potential fix and some debug output. |
Didn't work either:
https://github.com/subspace/subspace/actions/runs/6189176189/job/16802753709#step:7:1 P.S. Every time I have an issue with CI it is never an exact science, but rather trial and error. |
I found a bug related to determining the installation location that I can reproduce in other Windows environments. Could you try cc5181c? |
Something new this time:
https://github.com/subspace/subspace/actions/runs/6189633359/job/16804165414#step:7:1 |
I changed to prefer $RUNNER_TOOL_CACHE over $HOME in a84bb47, so the permission issue should be fixed now. |
Nope, same error again: https://github.com/subspace/subspace/actions/runs/6190541151/job/16806980662#step:7:1 |
No, updated commit didn't work either with a different error:
https://github.com/subspace/subspace/actions/runs/6190591939/job/16807141866#step:7:1 |
Hmm, sorry, that did not seem to be enough to fix the problem. (On second thought, if installing on HOME was really the problem, then the jq run would have failed as well) The difference between the way cargo-binstall and jq are executed is whether it goes through cargo or not. I have created a patch (79a868a) that calls cargo binstall without going through cargo, could you try that? |
Still permission denied:
https://github.com/subspace/subspace/actions/runs/6190724569/job/16807554656 Is there something like |
Good point. I found https://cygwin.com/cygwin-ug-net/using-filemodes.html
Whether or not the .exe is used at the time of the call is indeed another difference between the way cargo-binstall and jq were executed... I updated my patch to use .exe (84cf87d). |
https://github.com/subspace/subspace/actions/runs/6190869896/job/16808019785#step:7:1 |
Oh, that's probably a bug about adding PATHs, and it should be fixed in 6b495ce. |
Back to permission denied:
https://github.com/subspace/subspace/actions/runs/6191193015/job/16808987474#step:7:1 |
Hmm...
That said, it may be better here to try taiki-e/cache-cargo-install-action, which was created to support cases where install-action does not work. |
@nazar-pc Could that be the windows defender or other defending mechanism kicking in? |
Full path shouldn't be necessary. Just tried taiki-e/cache-cargo-install-action and it worked just fine, will go with it for now.
Anything is possible, asked DevOps person on our team to take a look there. |
Maybe related: microsoft/winget-cli#228 |
I tried this action on self-hosted runner and while Ubuntu worked, Windows did't:
Would be convenient if it was supported in this environment as well.
The text was updated successfully, but these errors were encountered: