-
-
Notifications
You must be signed in to change notification settings - Fork 544
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
GH Actions: Test Windows with WSL #30216
Comments
comment:2
Something like the following? The bootstrap command fails currently, https://github.com/tobiasdiez/sage/runs/1051391795?check_suite_focus=true any idea why? |
comment:3
Looks like whitespace in PATH and insufficient quoting somewhere |
comment:6
Please rename Also, please replace the hardcoded Ubuntu package lists by using the
|
comment:7
BTW, the build errored with
|
comment:8
And you could use the steps starting with "Build and test with tox" from the job |
comment:9
Thanks for the feedback. Replying to @mkoeppe:
I was thinking about adding basic builds (and doctests) for ubuntu-latest and macos-latest as well, so that this workflow serves as a basic check that the build works on all os. If this is not intended, I'll rename the file.
Done!
No idea why. I've read somewhere that there might be a problem parallel make (e.g
What exactly do you mean? This workflow is about homebrew, and I'm not sure how this translates to WSL. |
comment:10
These steps:
Set TOX_ENV to just
These steps package up and print logs. |
comment:11
Thanks, that's now implemnted. But how do I now pass Moreover, I'm not sure if the the upload of the logs is really necessary as you can already download logs from a github action session by clicking the hamburger menu of the workflow run (e.g on https://github.com/tobiasdiez/sage/runs/1062527848?check_suite_focus=true) |
comment:12
Use |
comment:13
Thanks. I tried it via |
comment:14
I see in the github log: Try instead |
comment:15
That sadly also doesn't wored, but I've now found a way using shared env variables between Windows and WSL. Let's see what kind of build errors we encounter this time ;-).
Any ideas what the problem is here? Moreover, should the following packages be installed via apt-get as recommended? Should I add them to the debian.txt?
|
comment:16
Replying to @mkoeppe:
Note - no semicolon. |
comment:17
Replying to @tobiasdiez:
Take a look at |
comment:18
Replying to @mkoeppe:
That doesn't work, as wsl only accept one command as an argument. But I think the current solution with the env statement in the action is cleaner anyway. |
comment:19
Replying to @mkoeppe:
Ok, but this is not really reusable, right? So I would propose to add the additional dependencies as hard coded in the github action. Improving on this point I would leave for a new PR. Ok? |
comment:20
Moreover, the MAKEFLAGS env variable is overwritten by tox -e local. Is this by design, or a bug? As far as I know the solution via alias |
comment:21
A one-line approximation of
Please don't hard-code package lists. |
comment:22
Replying to @tobiasdiez:
The recommendation in Sage currently is to use the environment setting |
comment:23
Replying to @mkoeppe:
I've now used the powershell version of this. The bootstrap and config works now, but the build fails with
https://github.com/tobiasdiez/sage/runs/1067282589?check_suite_focus=true The github action workflow is finished from my point of view. Should I convert it to a trac branch, and then leave fixing the build issues for another ticket? |
Commit: |
Branch: public/build/ghWSL |
comment:24
So this is now ready for review. Sadly it still doesn't build correctly. The current error message is
If somebody can explain to me why these cython files need to be copied to the build folder, I'll have a look a this problem in a follow-up ticket. Moreover, it would be very helpful for further testing if the github actions could be activated for the sagemirror repo as well. Then I wouldn't need to create a PR at github first, but instead can directly test the action via trac. Last 10 new commits:
|
Reviewer: Matthias Koeppe |
comment:25
Thanks a lot for this contribution. |
Author: Tobias Diez |
comment:26
Replying to @tobiasdiez:
My workflow is to keep the branch on trac and just push a temporary tag to my personal github fork of the repository. |
comment:27
Replying to @mkoeppe:
github Actions on sagemirror are disabled, as it's just a mirror, and not even updated automatically. (I push there once in a while from a private copy of trac git repo, that's how it's supported - ideas how to automate it without running a cron job are welcome). |
comment:28
it seems we badly need |
comment:29
That's now #30506 |
comment:30
Replying to @dimpase:
I see. Still, I would think it is helpful if the github actions are activated for this repo as well, especially with view towards #30404 and the idea that these github actions serve as a continuous integration check (maybe eventually replacing the patchbot). I think there are also no disadvantages to enabling the github actions there. Concerning updating the mirror, I guess the easiest solution would be to use a trac plugin such as https://github.com/trac-hacks/trac-github. This has the advantage that one could push to github, and the trac repo is updated as well. However, I think this requires that people primarily push to github, and no longer trac. |
comment:31
Replying to @tobiasdiez:
+1 |
comment:32
merge conflict |
Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:
|
comment:34
Rebased (squashed) on 9.2.beta12 |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:37
Thanks! |
Changed branch from public/build/ghWSL to |
https://groups.google.com/d/msg/sage-devel/vC0ySd4HGeQ/RBA_XrqLBAAJ
CC: @dimpase @tobiasdiez @embray
Component: porting
Author: Tobias Diez
Branch/Commit:
e8a984b
Reviewer: Matthias Koeppe
Issue created by migration from https://trac.sagemath.org/ticket/30216
The text was updated successfully, but these errors were encountered: