-
Notifications
You must be signed in to change notification settings - Fork 10
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
Add GitHub actions as an additional CI #53
Comments
Also: test is whether Windows and macOS builds support starting side services (e.g. Linux containers) |
Research on GitHub ActionsCurrent state with respect to TL;DR
LinuxDocker compose works out of the box in Linux and the priviledged flag:
As for the
GHA behavior on the fork:
For Windows and for MacOS after at least 90 trials the outcomes indicate that CI/CD (I would say in general) for these platforms does not come as easy :( WindowsGHA has Windows Server 2016 R2 and 2019 and no desktop versions [ref]. Even though docker and docker compose are installed...a plain workflow leads to the following error:
This is the known Linux Containers on Windows (or LCOW) issue. There is the LCOW toolkit but besides being in experimental mode not yet officially supported by Docker or Microsoft in terms of SLA etc. it also needs the Hyper-V isolation [ref, [ref. After following some solution on the internet I got to the point where I could load LCOW but got anoterh error:
which basically accounts that I do not have the Hyper-V installed in GHA Windows Server 2019 version. Indeed according to the README of lcow "You also need to have Hyper-V and the Container feature enabled.". So the next step was to install them. But from my understanding (for example the non existance of the Install-WindowsFeature command to install the Hyper-V) the server spinned in GHA is a nano server with limited functionality and does not have the commands to install them (and from a quick search I could not find a way to install the commands that install things). So this is the current point reached. There are solutions on the internet but:
Another step is to use a native windows docker image, but official docker support for windows is still an open issue. Next steps:
MacOSMacOS does not have docker (nor compose) pre-installed so we install it [ref] OK not problem let's install it...the problem is that I couldn't because as for Windows, Docker for macOS is mainly a GUI app and the solutions I found on the internet have not worked thus far. This is as far as I could go based on this SO answer but the service never starts:
Next steps:
Current workflowCurrent workflow can be found here. |
My proposal is to have both especially since: a) GitHub actions is good candidate for projects that do not require org data like gitbase so it will be adopted there and b) since src-d has worked with github actions like in hercules. So we could:
|
Background: Add GHA as an additional CI since it generates a temporary token even for external PRs so we can run tests that require it.
Reference implementation: https://github.com/jfontan/gitcollector/blob/509f1d3f9bb3feba768cd53a8e58744877844711/.github/workflows/main.yml
The text was updated successfully, but these errors were encountered: