Closed rposts closed 2 years ago
I leave it to @mstruk ... but I think it would be better to download different binary then build the project our self.
Building Hydra from source as part of the testsuite run sounds like it would take too much time - running the testsuite already takes a long time as it is.
Ideally we build the Hydra binary separately as @scholzj suggested. We can add it to the Github repo and use that instead of the upstream Hydra release binary on s390x. Or the build from source could only be done on s390x.
There could be a separate Dockerfile for s390x.
Thanks @mstruk and @scholzj for quick reply!
Currently Hydra
does not produce s390x
binary in the Release page. I am happy to try any approach that will help with making testcase easier to run on s390x
. A generic/plugin solution would be preferable in case future archs are added to the test framework.
Should I use a new Dockerfile for s390x
is there a way to control the build/test to use this Dockerfile instead? Perhaps something that can be passed on the mvn clean install
or mvn clean install -f testsuite
command?
Thanks.
@mstruk @scholzj just wanted to follow-up on this one - do you have a preference? Tx.
@rposts There are profiles defined in testsuite pom.xml. You could maybe add another one. But I'm not sure that's the way to go. Ideally the build determines at runtime the environment where it is running and uses a different config or artifacts accordingly. In testsuite there are profiles defined and maybe it's possible to add one that is s390x specific and define activation rule that only activates it in s390x environment. It could specify properties like the special docker image to use ... But it's hard to say what the most elegant way is without actually putting some solution together.
@mstruk - I have initiated a https://github.com/strimzi/strimzi-kafka-oauth/pull/144 to address this issue. Let me know if it looks ok. Thanks!
Closing as #144 has been merged. Thanks!
I was trying to run integration tests on
s390x
architecture and noticed thathydra-test
failed. After some investigation I found that this was caused due to incompatiblestrimzi-oauth-testsuite/hydra-import
image generated by the build step.It turns out that
hydra-import
Dockerfile downloadsx86
version of hydra_1.0.0_Linux_32-bit.tar.gz which causes problems ons390x
architecture.I made following changes to make it work on
s390x
arch and think it may also work onx86
arch. All I am doing here is to compilehydra
from source instead of downloading a specific version:Please let me know if this is an acceptable solution and whether
Dockerfile
can be changed accordingly.Thanks.