-
Notifications
You must be signed in to change notification settings - Fork 66
Different behaviour observed when a build command is executed from terminal vs che.command #3463
Comments
@slemeur AFAIK, it is reproducible only for wildfly, right ? |
@slemeur of course it is not intentional but you aren't telling the truth. In a command you pass -f path/to/dockerfile. In the terminal you cd to a directory with a Dockerfile in its root. See: #2152 (comment) So, probably this issue is a duplicate. |
And yes, when running mvn clean install with skipped tests it just hangs on collecting artifacts. |
@eivantsov AFAIK 2 identical commands (with skipping tests) behaves differently for wildfly:
|
@ibuziuk however, it is not related to this issue, at least with a given description. It's weird why invoking maven build from root and by passing path to pom.xml works in a different way. As to OOM, I think a good way to |
@ibuziuk Che is not to blame here:
To purify the experiment, you may deploy the image yourself, without Che, and give it a try in a shell and in a detached way through exec. |
@eivantsov I think you are commenting about #2152 not about this issue. The fact that is wildfly failing in docker is clearly quickstart problem. But we wanted to workaround it by skipping tests and this still fails with OOM when executing as Che command. Isn't it Che related problem (OOM for command execution I mean)? |
@eivantsov ah, you mean it fails with OOM in docker! good point |
@ibuziuk not on Docker. On OSO. I stated a workspace from OSIO and ran an exec against pod. |
yeah, so there is something weird indeed - and I think @eivantsov you are making a good point. |
@bmicklea it is quite interesting that you do not have oom. Could you please tell against which oso cluster you are provisioned ? |
Odd, now it's failing with the following:
|
yeah, this is what we all observe ;-) |
Not sure if it's helpful but it was working for me before JF did
investigation into my space. It had been working perfectly (including this
build working) then I hit one of the Jenkins issues and since then it's
been broken.
Not sure if there's a correlation...
--
Brad Micklea // Director, Product Management // Developer Tools //
416.707.0792
|
I believe that this issue related to MAVEN_OPTS that we have in command execution environment. terminal
commmand
Upstream Che terminal
command
|
Related to this pr fabric8-services/fabric8-tenant-che#79 |
@slemeur we could update the wildfy build command according to @skabashnyuk proposal. This would require rebuilding rh-che & yet another rollout on prod. wdyt ? |
We should be testing that it works. I’m afk at this moment.could you validate it works? If we want to avoid another rollout, the other approach would be to edit the stack in che-server (as an admin). We would still need to update the stack, so that next rollout, the change will be there and consistent. Otherwise, if we can handle it, I’m fine to do another rollout now. |
had a quick chat with @skabashnyuk . Approach with
This would potentially kill wsagent since there would not be enough ram allocated in the pod for both processes. Safer option / hack that works for me is the following:
|
@ibuziuk that works for me too (although others should try since mine was working yesterday with the command that wasn't working for anyone else). For some reason the trailing ' was lost in your command, so I'm repasting:
|
+1
Le sam. 5 mai 2018 à 13:32, Brad Micklea <[email protected]> a
écrit :
@ibuziuk <https://github.com/ibuziuk> that works for me too (although
others should try since mine was working yesterday with the command that
wasn't working for anyone else).
For some reason the trailing ' was lost in your command, so I'm repasting:
MAVEN_OPTS="-Xmx100m" && scl enable rh-maven33 'mvn clean install -f ${current.project.path} -DskipTests=true'
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3463 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABj5oZVhyCcZ-VSgqWrY_WsUIaBqtHxhks5tvY3hgaJpZM4Ty6Ke>
.
--
STEVAN LEMEUR
PRODUCT MANAGER
Red Hat
<https://www.redhat.com/>
[email protected] M: +336-87-11-27-55 <javascript:void(0);>
<https://red.ht/sig>
|
…wildfly quickstart openshift.io issue openshiftio/openshift.io#3463
…wildfly quickstart openshift.io issue openshiftio/openshift.io#3463
PR is merged and fixed should be available on prod-preview |
@slemeur it looks like rollout of che on prod-preview osd failed:
|
Created housekeeping issue for prod-preview rollout problem - https://gitlab.cee.redhat.com/dtsd/housekeeping/issues/1861 It is probably coupled with che 5 deprecation and removal of all resources, the thing is that both che 5 & che 6 are using the same che secret for obtaining service.account.secret / service.account.id |
Created a SEV1 for this #3476 |
Che is back to prod-preview and available for testing \o/ @slemeur if you are ok with the update of prod, I hope @davidfestal & @garagatyi would be able to handle rollout with announcement on Monday. |
Do we need or want to wait for Monday to push this live? Seems like it would be better to push it now, test it and know it's ready than wait... |
@bmicklea it is risky to push it now since it could technically be broken if there is smth. wrong from infa side e.g. invalid secret values on prod and there would be no one from che / sd side to fix it. So, I'd better wait till Monday when there would be people from both che & sd team around, announce update as we always did before and merge the PR for rollout. If smth. goes wrong there will be right people to address the problem quickly |
@ibuziuk I would recommend to increase xmx to 256 at least. we've updated prod and fix worked for @garagatyi and @rhopp but still failed for me... with 256mb it should be more stable. |
@slemeur it looks like you have not built the project. Why do you expect a jar in target? |
I guess the command is wrong too. Changing to : |
@eivantsov : I just hit the default run command for the wildfly stack |
Ok - Doing the "build" command and then doing the "run" command is working. |
@slemeur yes, this is what I meant. Perhaps, for demo purposes the two should be combined in one. |
yes, here the flow is not consistent. In all other stacks, the "run" command is also doing the "build". |
@eivantsov am I correct that we can close this one since the upstream issue is resolved eclipse-che/che#9621 ? |
Yes, it can be closed |
@eivantsov hmm.. I thought that we could remove now maven options set in the build command [1] for wildfly but it is still failing. And btw it is started to fail also from terminal. So now behavior is pretty consistent in a bad way ;-) setting MAVEN_OPTS='-Xmx500m' ` fixes the issue, so wondering what would be the best way to tackle it by default ? |
Well, the original issue was about consistency. It is consistent now. Yes, MAVEN_OPTS may be required for some projects |
Closing, since upstream issue has been closed eclipse-che/che#9621 (comment) |
Description
Upstream issue - eclipse-che/che#9621
Different behaviour is observer when a command is executed from terminal vs che.command
Steps to reproduce
mvn clean install -f ${current.project.path} -Dmaven.test.skip=true
mvn clean install -f ${current.project.path} -Dmaven.test.skip=true
Attached video
The text was updated successfully, but these errors were encountered: