[JBoss JIRA] (JBIDE-23872) Tools clear war deployed files
by Rob Stryker (JIRA)
[ https://issues.jboss.org/browse/JBIDE-23872?page=com.atlassian.jira.plugi... ]
Rob Stryker commented on JBIDE-23872:
-------------------------------------
https://bugs.eclipse.org/bugs/show_bug.cgi?id=513398
Opened this upstream
> Tools clear war deployed files
> ------------------------------
>
> Key: JBIDE-23872
> URL: https://issues.jboss.org/browse/JBIDE-23872
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: server
> Affects Versions: 4.4.2.Final
> Environment: Windows 7 64
> JDK 8
> Eclipse Neon 1
> JBoss Tools 4.4
> WildFly 10.1
> Reporter: Claudio Weiler
> Assignee: Rob Stryker
> Fix For: 4.4.4.AM1
>
> Attachments: publish.log
>
>
> After an Eclipse start war deployed files are deleted and not republished.
> I have created a system lock to one of the html resources to try to dig more infos, but the exception shown refers to another resource:
> "Error renaming D:\Aplic\wildfly-10.1.0\standalone\tmp\tmp7250132485298982117.MF to D:\Aplic\wildfly-10.1.0\standalone\deployments\testing-ear.ear\META-INF\MANIFEST.MF."
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
9 years
[JBoss JIRA] (JBIDE-23872) Tools clear war deployed files
by Claudio Weiler (JIRA)
[ https://issues.jboss.org/browse/JBIDE-23872?page=com.atlassian.jira.plugi... ]
Claudio Weiler commented on JBIDE-23872:
----------------------------------------
Good one [~rob.stryker], a bit more cheers to you ;)
> Tools clear war deployed files
> ------------------------------
>
> Key: JBIDE-23872
> URL: https://issues.jboss.org/browse/JBIDE-23872
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: server
> Affects Versions: 4.4.2.Final
> Environment: Windows 7 64
> JDK 8
> Eclipse Neon 1
> JBoss Tools 4.4
> WildFly 10.1
> Reporter: Claudio Weiler
> Assignee: Rob Stryker
> Fix For: 4.4.4.AM1
>
> Attachments: publish.log
>
>
> After an Eclipse start war deployed files are deleted and not republished.
> I have created a system lock to one of the html resources to try to dig more infos, but the exception shown refers to another resource:
> "Error renaming D:\Aplic\wildfly-10.1.0\standalone\tmp\tmp7250132485298982117.MF to D:\Aplic\wildfly-10.1.0\standalone\deployments\testing-ear.ear\META-INF\MANIFEST.MF."
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
9 years
[JBoss JIRA] (JBIDE-23872) Tools clear war deployed files
by Rob Stryker (JIRA)
[ https://issues.jboss.org/browse/JBIDE-23872?page=com.atlassian.jira.plugi... ]
Rob Stryker commented on JBIDE-23872:
-------------------------------------
Found the error :D (I'll wait for the cheering to stop... ... oka... no really oka... no you can stop cheeri... :: waits longer :: ... ok thanks.)
So the root cause is a bit weird, but, when workspace restarts with this archetype, somehow the maven tools are sending resource change events to the 3 child projects and NOT the root ear project.
Then... some kinda buggy code in wtp says, hey, this resource has changed... so let's mark its module as having changed also! WTP then sets the module publish states for these child modules to 'incremental', on only the child modules, not the parent.
So we get 4 publish requests:
ear: full publish
child 1: incremental
child 2: incremental
child 3: incremental
Like a dummy, we take the full publish request on the ear literally, and delete the entire file tree. Then, we get an incremental publish request on the children, so we only update those files marked as changed, which is only a subset of what should be there (but we wiped out the directory).
The fix in teh attached PR is that, when we wipe a folder, we should 100% mark the child modules as now requiring a full publish.
I will also consider sending an upstream patch as well, since I think their behavior is a bit wrong. (It sets the module to requiring an incremental publish when previous state was 'unknown', but 'unknown' could actually mean the module needs a full publish, so setting it down to incremental is not safe).
I added a unit test too :D
https://github.com/jbosstools/jbosstools-server/pull/474
https://github.com/jbosstools/jbosstools-server/pull/475
> Tools clear war deployed files
> ------------------------------
>
> Key: JBIDE-23872
> URL: https://issues.jboss.org/browse/JBIDE-23872
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: server
> Affects Versions: 4.4.2.Final
> Environment: Windows 7 64
> JDK 8
> Eclipse Neon 1
> JBoss Tools 4.4
> WildFly 10.1
> Reporter: Claudio Weiler
> Assignee: Rob Stryker
> Fix For: 4.4.4.AM1
>
> Attachments: publish.log
>
>
> After an Eclipse start war deployed files are deleted and not republished.
> I have created a system lock to one of the html resources to try to dig more infos, but the exception shown refers to another resource:
> "Error renaming D:\Aplic\wildfly-10.1.0\standalone\tmp\tmp7250132485298982117.MF to D:\Aplic\wildfly-10.1.0\standalone\deployments\testing-ear.ear\META-INF\MANIFEST.MF."
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
9 years
[JBoss JIRA] (JBIDE-23489) Find out how to run mvn clean verify -Dtest.installBase=path/to/devstudio/rpm
by Lukáš Valach (JIRA)
[ https://issues.jboss.org/browse/JBIDE-23489?page=com.atlassian.jira.plugi... ]
Lukáš Valach commented on JBIDE-23489:
--------------------------------------
We have to set testRuntime to p2installed.
We are missing this line \[1\] in integration-tests pom \[2\].
\[1\] <testRuntime>p2Installed</testRuntime>
\[2\] https://github.com/jbosstools/jbosstools-integration-tests/blob/master/te...
It solved problem with dev.properties but now I am getting another error message:
{code}
INFO] Installing IUs [org.jboss.tools.freemarker.ui.bot.test, org.eclipse.tycho.surefire.osgibooter, org.eclipse.tycho.surefire.junit4] to /opt/rh/rh-eclipse46/root/usr/lib64/eclipse
The operation you've requested can not be performed because the folder /opt/rh/rh-eclipse46/root/usr/lib64/eclipse is read only.
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
...
[INFO] org.jboss.tools.freemarker.ui.bot.test ............. FAILURE [ 2.026 s]
[INFO] integration-tests.site ............................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 37.025 s
[INFO] Finished at: 2017-03-09T14:41:51+01:00
[INFO] Final Memory: 117M/1412M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.eclipse.tycho:tycho-surefire-plugin:1.0.0:test (default-test) on project org.jboss.tools.freemarker.ui.bot.test: Installation of IUs [org.jboss.tools.freemarker.ui.bot.test, org.eclipse.tycho.surefire.osgibooter, org.eclipse.tycho.surefire.junit4] failed: Call to p2 director application failed with exit code 13. Program arguments were: [-metadataRepository, file:/home/lvalach/repositories/JBossToolsIntegrationTests/jbosstools-integration-tests/tests/org.jboss.tools.freemarker.ui.bot.test/target/,file:/home/lvalach/repositories/JBossToolsIntegrationTests/jbosstools-integration-tests/tests/org.jboss.tools.freemarker.ui.bot.test/target/targetPlatformRepository/,file:/home/lvalach/repositories/JBossToolsIntegrationTests/jbosstools-integration-tests/tests/org.jboss.tools.freemarker.ui.bot.test/target/p2temp/additionalBundles/, -artifactRepository, file:/home/lvalach/repositories/JBossToolsIntegrationTests/jbosstools-integration-tests/tests/org.jboss.tools.freemarker.ui.bot.test/target/,file:/resolution-context-artifacts@%252Fhome%252Flvalach%252Frepositories%252FJBossToolsIntegrationTests%252Fjbosstools-integration-tests%252Ftests%252Forg.jboss.tools.freemarker.ui.bot.test,file:/home/lvalach/repositories/JBossToolsIntegrationTests/jbosstools-integration-tests/tests/org.jboss.tools.freemarker.ui.bot.test/target/,file:/home/lvalach/repositories/JBossToolsIntegrationTests/jbosstools-integration-tests/tests/org.jboss.tools.freemarker.ui.bot.test/target/,file:/home/lvalach/.m2/repository/,file:/home/lvalach/repositories/JBossToolsIntegrationTests/jbosstools-integration-tests/tests/org.jboss.tools.freemarker.ui.bot.test/target/p2temp/additionalBundles/, -installIU, org.jboss.tools.freemarker.ui.bot.test,org.eclipse.tycho.surefire.osgibooter,org.eclipse.tycho.surefire.junit4, -destination, /opt/rh/rh-eclipse46/root/usr/lib64/eclipse, -profile, DefaultProfile, -profileProperties, org.eclipse.update.install.features=true, -roaming, -p2.os, linux, -p2.ws, gtk, -p2.arch, x86_64]. -> [Help 1]
{code}
Whole log with debug messages: [^Freemarker_testRuntime_p2Installed.log]
I guess that we have to remove/change value of the "destination" parameter. I went through Tycho code and it seems that it is not possible because destination has always the same value as <work> attribute in pom.xml. (The work attribute contains the same value as test.installBase.)
If you would like to check the code I propose to start here \[3\] and then you may continue here \[4\].
\[3\] https://github.com/eclipse/tycho/blob/3f9ada9af955ed997a2214dc12a35ac084e...
\[4\] https://github.com/eclipse/tycho/blob/3eb3f826e6912a481972b256c9d4cb3208b...
> Find out how to run mvn clean verify -Dtest.installBase=path/to/devstudio/rpm
> ------------------------------------------------------------------------------
>
> Key: JBIDE-23489
> URL: https://issues.jboss.org/browse/JBIDE-23489
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: build
> Affects Versions: 4.4.2.AM3
> Reporter: Pavol Srna
> Fix For: 4.4.x
>
> Attachments: FreeMarket_rhscl_enabled.log, Freemarker_testRuntime_p2Installed.log
>
>
> We need to find a way how to run automated tests agains devstudio rpm.
> I've tried the following paths:
> 1) (as root) mvn clean verify -Dtest.installBase=/opt/rh/rh-eclipse46/root/usr/shareclipse/droplets/devstudio/eclipse/
> 2) (as hudson) mvn clean verify -Dtest.installBase=~/.eclipse/org.eclipse.platform_283378046_linux_gtk_x86_64
> But none of the above works.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
9 years
[JBoss JIRA] (JBTIS-1059) Update both composite files
by Andrej Podhradsky (JIRA)
[ https://issues.jboss.org/browse/JBTIS-1059?page=com.atlassian.jira.plugin... ]
Andrej Podhradsky closed JBTIS-1059.
------------------------------------
Resolution: Done
Verified
> Update both composite files
> ---------------------------
>
> Key: JBTIS-1059
> URL: https://issues.jboss.org/browse/JBTIS-1059
> Project: JBoss Tools Integration Stack
> Issue Type: Task
> Components: distribution
> Affects Versions: 10.2.0.CR1
> Environment: Devstudio IS 10.2.0.CR1-SNAPSHOT
> Reporter: Andrej Podhradsky
> Assignee: Paul Leacu
> Priority: Critical
> Fix For: 10.2.0.CR1
>
>
> https://devstudio.redhat.com/10.0/staging/updates/integration-stack/compo...
> {code}
> <?xml version='1.0' encoding='UTF-8'?>
> <?compositeArtifactRepository version='1.0.0'?>
> <repository name='Red Hat JBoss Developer Studio Integration Stack Update Site' type='org.eclipse.equinox.internal.p2.artifact.repository.CompositeArtifactRepository' version='1.0.0'>
> <properties size='2'>
> <property name='p2.compressed' value='true'/>
> <property name='p2.timestamp' value='1487684887000'/>
> </properties>
> <children size='2'>
> <child location='10.2.0.CR1-SNAPSHOT/'/>
> <child location='10.2.0.CR1-SNAPSHOT/targetplatform/'/>
> </children>
> </repository>
> {code}
> https://devstudio.redhat.com/10.0/staging/updates/integration-stack/compo...
> {code}
> <?xml version='1.0' encoding='UTF-8'?>
> <?compositeMetadataRepository version='1.0.0'?>
> <repository name='Red Hat JBoss Developer Studio Integration Stack Update Site' type='org.eclipse.equinox.internal.p2.metadata.repository.CompositeMetadataRepository' version='1.0.0'>
> <properties size='2'>
> <property name='p2.compressed' value='true'/>
> <property name='p2.timestamp' value='1487684894000'/>
> </properties>
> <children size='2'>
> <child location='10.1.0.GA/'/>
> <child location='10.1.0.GA/targetplatform/'/>
> </children>
> </repository>
> {code}
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
9 years