[JBoss JIRA] (JBIDE-20904) automate publishing latest CI build to staging, then from staging to development (or stable)
by Nick Boldt (JIRA)
[ https://issues.jboss.org/browse/JBIDE-20904?page=com.atlassian.jira.plugi... ]
Nick Boldt updated JBIDE-20904:
-------------------------------
Sprint: devex #115 May 2016, devex #116 June 2016, devex #118 July 2016, devex #119 August 2016 (was: devex #115 May 2016, devex #116 June 2016, devex #118 July 2016)
> automate publishing latest CI build to staging, then from staging to development (or stable)
> --------------------------------------------------------------------------------------------
>
> Key: JBIDE-20904
> URL: https://issues.jboss.org/browse/JBIDE-20904
> Project: Tools (JBoss Tools)
> Issue Type: Enhancement
> Components: build
> Affects Versions: 4.4.0.Alpha1
> Reporter: Nick Boldt
> Assignee: Nick Boldt
> Fix For: 4.4.1.Final
>
>
> Suggestion:
> rather than opening 10 bash terminals to perform the copy-from-one-place-on-disk-to-local, copy-from-local-to-another-place steps required to clone CI bits to Stage or from Stage to release, [~mickael_istria] and I discovered today that we could use `wait` or `parallel` to orchestrate these steps via a bash script so they run in parallel (as quickly as possible), but still return feedback when all parallel steps are completed.
> So, where today we run these steps sorta-by-hand (copy script into a console and wait until it's done) [1], in future we could simply kick a job and wait for the job to notify its completion.
> [1] https://github.com/jbdevstudio/jbdevstudio-devdoc/tree/master/release_gui...
> Examples of using a series of commands in parallel w/ a wait at the end:
> http://stackoverflow.com/questions/19543139/bash-script-processing-comman...
> {code:title=spawns the 3 parallel steps, waits until #3 is done (2 seconds later) and returns the PID of the last one + its return code}
> echo "1" & echo 2 & (sleep 2;echo 3) & wait && echo $! $#
> {code}
> More discussion:
> {quote}
> [12:44:46 PM] Mickael Istria: I believe some parts would have to be turned into functions
> [12:54:41 PM] Mickael Istria: so, to hack the script, it could be just:
> * add && after the 1st rsync in each loop
> * add & after the last one
> * put a wait after the last loop
> * give the big piece of code to procede directly to bash
> {quote}
> After this job is done, releng would still have to "wire up" the new bits by updating composite*.xml and index.html pages, but that's considerably easier to do locally in a terminal, or even to script too. Rather than updating these files w/ sed, we could generate them from a template.
> And if we don't care about committing those changes back to github, we could even push them to the dl.jb.o and ds.jb.c servers directly as part of the above job.
> Scary, but much faster!
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years, 7 months
[JBoss JIRA] (JBIDE-20904) automate publishing latest CI build to staging, then from staging to development (or stable)
by Nick Boldt (JIRA)
[ https://issues.jboss.org/browse/JBIDE-20904?page=com.atlassian.jira.plugi... ]
Nick Boldt updated JBIDE-20904:
-------------------------------
Fix Version/s: 4.4.1.Final
(was: 4.4.1.AM3)
> automate publishing latest CI build to staging, then from staging to development (or stable)
> --------------------------------------------------------------------------------------------
>
> Key: JBIDE-20904
> URL: https://issues.jboss.org/browse/JBIDE-20904
> Project: Tools (JBoss Tools)
> Issue Type: Enhancement
> Components: build
> Affects Versions: 4.4.0.Alpha1
> Reporter: Nick Boldt
> Assignee: Nick Boldt
> Fix For: 4.4.1.Final
>
>
> Suggestion:
> rather than opening 10 bash terminals to perform the copy-from-one-place-on-disk-to-local, copy-from-local-to-another-place steps required to clone CI bits to Stage or from Stage to release, [~mickael_istria] and I discovered today that we could use `wait` or `parallel` to orchestrate these steps via a bash script so they run in parallel (as quickly as possible), but still return feedback when all parallel steps are completed.
> So, where today we run these steps sorta-by-hand (copy script into a console and wait until it's done) [1], in future we could simply kick a job and wait for the job to notify its completion.
> [1] https://github.com/jbdevstudio/jbdevstudio-devdoc/tree/master/release_gui...
> Examples of using a series of commands in parallel w/ a wait at the end:
> http://stackoverflow.com/questions/19543139/bash-script-processing-comman...
> {code:title=spawns the 3 parallel steps, waits until #3 is done (2 seconds later) and returns the PID of the last one + its return code}
> echo "1" & echo 2 & (sleep 2;echo 3) & wait && echo $! $#
> {code}
> More discussion:
> {quote}
> [12:44:46 PM] Mickael Istria: I believe some parts would have to be turned into functions
> [12:54:41 PM] Mickael Istria: so, to hack the script, it could be just:
> * add && after the 1st rsync in each loop
> * add & after the last one
> * put a wait after the last loop
> * give the big piece of code to procede directly to bash
> {quote}
> After this job is done, releng would still have to "wire up" the new bits by updating composite*.xml and index.html pages, but that's considerably easier to do locally in a terminal, or even to script too. Rather than updating these files w/ sed, we could generate them from a template.
> And if we don't care about committing those changes back to github, we could even push them to the dl.jb.o and ds.jb.c servers directly as part of the above job.
> Scary, but much faster!
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years, 7 months
[JBoss JIRA] (JBIDE-22699) BrowserUtilTest.testCreateBrowser failure
by Nick Boldt (JIRA)
[ https://issues.jboss.org/browse/JBIDE-22699?page=com.atlassian.jira.plugi... ]
Nick Boldt updated JBIDE-22699:
-------------------------------
Fix Version/s: 4.4.1.Final
(was: 4.4.1.AM3)
> BrowserUtilTest.testCreateBrowser failure
> -----------------------------------------
>
> Key: JBIDE-22699
> URL: https://issues.jboss.org/browse/JBIDE-22699
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: common/jst/core
> Affects Versions: 4.4.1.AM1
> Reporter: Alexey Kazakov
> Assignee: Alexey Kazakov
> Fix For: 4.4.1.Final
>
>
> org.jboss.tools.foundation.ui.test.BrowserUtilTest.testCreateBrowser
> java.lang.AssertionError: null
> at org.junit.Assert.fail(Assert.java:86)
> at org.junit.Assert.assertTrue(Assert.java:41)
> at org.junit.Assert.assertNotNull(Assert.java:712)
> at org.junit.Assert.assertNotNull(Assert.java:722)
> at org.jboss.tools.foundation.ui.test.BrowserUtilTest.testCreateBrowser(BrowserUtilTest.java:32)
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years, 7 months
[JBoss JIRA] (JBIDE-22446) Release process should disallow inclusion of snapshots artifacts
by Nick Boldt (JIRA)
[ https://issues.jboss.org/browse/JBIDE-22446?page=com.atlassian.jira.plugi... ]
Nick Boldt commented on JBIDE-22446:
------------------------------------
No, it shouldn't fail... because there is no SNAPSHOT dependency in openshift at the moment (it was replaced with RC1 [1]).
[1] https://github.com/jbosstools/jbosstools-openshift/commit/9213c7febc4afe3...
If you re-insert a SNAPSHOT dep, then yes, it will fail:
{code:title=1. tweak parent pom to set new BUILD_ALIAS=Final and switch to non-SNAPSHOT target platform version}
cd ~/tru/jbosstools-build/parent/
cat pom.xml | grep AM3
sed -i -e "s#<BUILD_ALIAS>AM3</BUILD_ALIAS>#<BUILD_ALIAS>Final</BUILD_ALIAS>#" -e "s#4.60.1.AM3-SNAPSHOT#4.60.1.Final#g" pom.xml
mvn clean install
{code}
{code:title=2. use SNAPSHOT version of restclient jar in openshift.client, then rebuild using existing target platform 4.60.1.AM3-SNAPSHOT (because Final doesn't exist yet)}
cd ~/tru/jbosstools-openshift
git revert 9213c7febc4afe37889eb300340ecb24e9a1e60c
mvn clean verify -DskipTests -Dtycho.baseline=disable -U -DTARGET_PLATFORM_VERSION=4.60.1.AM3-SNAPSHOT
{code}
{code:title=3. openshift.client plugin fails}
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (warn-no-snapshots-AM3) @ org.jboss.tools.openshift.client ---
Downloaded: https://repository.jboss.org/nexus/content/repositories/snapshots/org/jbo... (789 B at 2.0 KB/sec)
[ERROR] Found property openshift-restclient-java.version = 5.0.0-SNAPSHOT
[INFO]
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-no-snapshots-Final) @ org.jboss.tools.openshift.client ---
[ERROR] Found property openshift-restclient-java.version = 5.0.0-SNAPSHOT
[INFO] Found BUILD_ALIAS = Final (for buildAliasSearch = Final|GA)
[WARNING] Rule 0: org.jboss.tools.releng.NoSnapshotsAllowed failed with message:
When BUILD_ALIAS (Final) matches /Final|GA/, cannot include SNAPSHOT dependencies.
[INFO] BUILD FAILURE
{code}
So, this DOES work, but the enforcer plugin is NOT looking at commandline params. It's only looking at the values hardcoded in the parent pom. Not sure if this is a good thing or a bug. [~mickael_istria] [~mmalina] WDYT?
> Release process should disallow inclusion of snapshots artifacts
> ----------------------------------------------------------------
>
> Key: JBIDE-22446
> URL: https://issues.jboss.org/browse/JBIDE-22446
> Project: Tools (JBoss Tools)
> Issue Type: Release
> Components: build
> Affects Versions: 4.4.0.Alpha2
> Reporter: Jeff MAURY
> Assignee: Nick Boldt
> Fix For: 4.4.1.AM3
>
>
> 4.4.0.Alpha2 was generated with a SNAPSHOT dependency. This should be avoided in future releases even for Alpha ones
> Update: This issues is for adding some automated test/check to detect situation when our release includes a snapshot dependency.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years, 7 months