Skip to content
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

local development setup #2118

Closed
Fabian-K opened this issue Apr 8, 2020 · 4 comments
Closed

local development setup #2118

Fabian-K opened this issue Apr 8, 2020 · 4 comments

Comments

@Fabian-K
Copy link
Contributor

Fabian-K commented Apr 8, 2020

Hi,

I find it rather difficult and time-consuming to compile the project locally. For the latest commit on master (be6b472) this is even failing.

running mvn clean completes successfully. Afterwards, I execute mvn install which fails after quite some time with

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for Fabric8 :: Kubernetes :: Project 4.9-SNAPSHOT:
[INFO] 
[INFO] Fabric8 :: Kubernetes :: Project ................... SUCCESS [  2.694 s]
[INFO] Fabric8 :: Kubernetes Model Parent ................. SUCCESS [  0.313 s]
[INFO] Fabric8 :: Kubernetes Model :: Common .............. SUCCESS [  1.211 s]
[INFO] Fabric8 :: Kubernetes Model Annotator .............. SUCCESS [  1.028 s]
[INFO] Fabric8 :: Kubernetes Model ........................ SUCCESS [03:12 min]
[INFO] Fabric8 :: Kubernetes :: Java Client ............... SUCCESS [01:32 min]
[INFO] Fabric8 :: Kubernetes :: Server Mock ............... SUCCESS [ 16.610 s]
[INFO] Fabric8 :: Openshift :: Java Client ................ SUCCESS [ 11.143 s]
[INFO] Fabric8 :: Kubernetes :: Extensions ................ SUCCESS [  0.029 s]
[INFO] Fabric8 :: Knative :: Extension .................... SUCCESS [  0.027 s]
[INFO] Fabric8 :: Knative :: Model :: Annotator ........... SUCCESS [  0.751 s]
[INFO] Fabric8 :: Knative :: Model ........................ SUCCESS [ 47.059 s]
[INFO] Fabric8 :: Knative :: Client ....................... SUCCESS [  3.867 s]
[INFO] Fabric8 :: Knative :: Server Mock .................. SUCCESS [  0.310 s]
[INFO] Fabric8 :: Knative :: Examples ..................... SUCCESS [  0.133 s]
[INFO] Fabric8 :: Knative :: Tests ........................ SUCCESS [  5.537 s]
[INFO] Fabric8 :: Tekton :: Extension ..................... SUCCESS [  0.032 s]
[INFO] Fabric8 :: Tekton :: Model :: Annotator ............ SUCCESS [  0.657 s]
[INFO] Fabric8 :: Tekton :: Model ......................... SUCCESS [ 20.845 s]
[INFO] Fabric8 :: Tekton :: Client ........................ SUCCESS [  2.550 s]
[INFO] Fabric8 :: Tekton :: Server Mock ................... SUCCESS [  0.386 s]
[INFO] Fabric8 :: Tekton :: Examples ...................... SUCCESS [  0.227 s]
[INFO] Fabric8 :: Tekton :: Tests ......................... SUCCESS [  5.221 s]
[INFO] Fabric8 :: Service Catalog :: Extension ............ SUCCESS [  0.024 s]
[INFO] Fabric8 :: Service Catalog Model Parent ............ SUCCESS [  0.025 s]
[INFO] Fabric8 :: Service Catalog :: Model :: Annotator ... SUCCESS [  0.560 s]
[INFO] Fabric8 :: Service Catalog :: Model ................ SUCCESS [ 19.976 s]
[INFO] Fabric8 :: Service Catalog :: Client ............... SUCCESS [  2.290 s]
[INFO] Fabric8 :: Service Catalog :: Server Mock .......... SUCCESS [  0.340 s]
[INFO] Fabric8 :: Service Catalog :: Examples ............. SUCCESS [  0.233 s]
[INFO] Fabric8 :: Service Catalog :: Tests ................ SUCCESS [  5.294 s]
[INFO] Fabric8 :: Openshift :: Server Mock ................ SUCCESS [  0.257 s]
[INFO] Fabric8 :: Kubernetes :: Client Examples ........... SUCCESS [  1.243 s]
[INFO] Fabric8 :: Kubernetes :: Platforms ................. SUCCESS [  0.053 s]
[INFO] Fabric8 :: Kubernetes :: Platforms :: Karaf ........ SUCCESS [  0.036 s]
[INFO] Fabric8 :: Kubernetes :: Platforms :: Karaf :: Features SUCCESS [  0.081 s]
[INFO] Fabric8 :: Kubernetes :: Platforms :: Karaf :: Tests FAILURE [14:44 min]
[INFO] Fabric8 :: Kubernetes :: Tests ..................... SKIPPED
[INFO] Fabric8 :: Kubernetes and Openshift :: UberJar ..... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  22:01 min
[INFO] Finished at: 2020-04-08T12:33:32+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M4:test (default-test) on project kubernetes-karaf-itests: There are test failures.
[ERROR] 
[ERROR] Please refer to /Users/d053397/go/src/github.com/fabric8io/kubernetes-client/platforms/karaf/itests/target/surefire-reports for the individual test results.
[ERROR] Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <args> -rf :kubernetes-karaf-itests

I´m running this on a Mac, using:

Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
Maven home: /usr/local/Cellar/maven/3.6.3_1/libexec
Java version: 13.0.2, vendor: N/A, runtime: /usr/local/Cellar/openjdk/13.0.2+8_2/libexec/openjdk.jdk/Contents/Home
Default locale: de_DE, platform encoding: UTF-8
OS name: "mac os x", version: "10.15.4", arch: "x86_64", family: "mac"

I think there are several things, just some random thoughts:

  • it would be great if the build is quicker (although I think that a successful build would already be quicker)
  • it would be helpful to document the requirements for building this project (also looking at the go generator part)
  • it would be helpful to document the commands that should be executed to build the project (again also looking at the go generator part, am I right that this is not included in mvn install?)

Thanks,
Fabian

@rohanKanojia
Copy link
Member

I usually do mvn clean install and it works fine for me.

@manusa
Copy link
Member

manusa commented Apr 9, 2020

The Karaf tests fail half of the times for me too, for some reason the connection to the container is sometimes lost.

Regarding compilation time, already stated my personal "rant" ;P

it would be great if the build is quicker

I think now you're starting to see my point of view ;)

@stale
Copy link

stale bot commented Jul 11, 2020

This issue has been automatically marked as stale because it has not had any activity since 90 days. It will be closed if no further activity occurs within 7 days. Thank you for your contributions!

@manusa
Copy link
Member

manusa commented Mar 5, 2024

Closing as the project and the structure has changed a lot since the issue was opened.
It's still slow to compile, but it should work.

@manusa manusa closed this as completed Mar 5, 2024
@manusa manusa reopened this Mar 5, 2024
@manusa manusa closed this as not planned Won't fix, can't repro, duplicate, stale Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants