-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Foster beeing OS agnostic by introducing other environments (like Windows) to GitHub Actions builds #1622
Comments
Facing the build error
which seems to be Windows Powershell related, where the Powershell tries to interpret |
Remove it, it's not needed |
No problem @ccoltx 🤪 works with the space between But now we have the next problem with the spring-javaformat-maven-plugin:
I found a workaround in 78e51b2 - but now I'm getting frustrated with the GitHub Actions Matrix build setup - since right now I need to bloat every workflow with "Windows specific" stuff like that:
|
Hmm, now the
This is related to #1555 |
Ok, seems that the GitHub Actions
|
Ah, this is a known Testcontainers limitation right now with Windows Server 2019 and Docker:
|
…since Windows Server 2019 isn't supported right now by Testcontainers testcontainers/testcontainers-java#2960).
Hmm, sadly also not working with |
Seems that the problem is, that in Windows Server there are only Windows containers activated per default (no Linux containers): https://stackoverflow.com/questions/66077884/testcontainers-in-windows-environment-on-github-actions-could-not-find-a-valid As Sergei Egorov stated:
So a "fix" for that would be to have a GitHub Action environment with Linux containers enabled! But after some googeling this doesn't seem to be that easy. First I though LCOW (Linux Containers on Windows) would simply need to be enabled. But as this great elaboration states, it's not easy (or even possible) to activate LCOW on the GitHub Actions Windows env. I digged deeper into the issue and found that LCOW was officially deprecated in BUT: We are on Windows Server 2019, which is not Windows 10 Desktop. And on GitHub Actions we only have the server version in it's nano flavor. There's sadly an open issue for the WSL2 support in Windows Server 2019. And scanning the GitHub Actions Windows Server 2019 docs I found out that there's only WSLv1 installed right now. |
If we don't want to create a private GitHub Actions runner this seems to be a dead end. The testcontainers team uses Azure Pipelines to run the tests on Windows - maybe we should also switch to this approach. See the testcontainers pipeline at https://github.com/testcontainers/testcontainers-java/blob/master/azure-pipelines.yml |
@jonashackt - how would you like to proceed? We could tag the testcases using docker and exclude them from the command line here. |
@ccoltx oh yeah, that would be an approach. I don't see any benefit from also using Azure Pipelines... Do you know how to easily do that with Maven? |
…since Windows Server 2019 isn't supported right now by Testcontainers testcontainers/testcontainers-java#2960).
…to verify in all build workflows.
…since Windows Server 2019 isn't supported right now by Testcontainers testcontainers/testcontainers-java#2960).
…to verify in all build workflows.
…1630) * #1622: Using Actions matrix build feature to also build on Windows * #1622: Fixing `Unknown lifecycle phase ".javadoc.skip=true"` error on Windows builds. * #1622: Fixing problems on Windows with spring-javaformat-maven-plugin * Tagged testcases using docker * if docker isn't installed, they won't fail the build anymore * can be excluded using -DexcludedGroups=docker * #1622: Add springjava-format apply to PR GHA workflow. Also switched to verify in all build workflows. Co-authored-by: Jonas Hecht <[email protected]>
As we have issues like #1617, we should be able to check, if SBA is not also working on the default GitHub Actions Ubuntu, but also on Windows (and maybe Mac - but I think that might be overengineered?).
The text was updated successfully, but these errors were encountered: