Recent troubles with release:prepare

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Recent troubles with release:prepare

Francesco Chicchiriccò
Hi all,
at Syncope we've been ordinarily using the Release Plugin as part of our release process [1] since the beginning, and it's been working flawlessly for > 90 releases.

Unfortunately we had troubles with last two releases (Syncope 2.1.6 / 2.0.15) that we cut last week.

For some reason, release:prepare was not advancing POM files as expected, e.g. after running

mvn -P apache-release release:prepare -Darguments="-P skipTests,all,docker -DbuildNumber=syncope-2.1.6"

and providing 2.1.6 as release version and 2.1.7-SNAPSHOT as next development version, the build started without changing the POM files, e.g.

diff pom.xml pom.xml.releaseBackup

was empty.

In fact, the artifacts were produced for 2.1.6-SNAPSHOT, not for 2.1.6.

I tried with different Release Plugin version, different Maven versions but nothing.

I have just found, however, that if I am *not* passing the skipTests profile in -Darguments then it works as expected.

The skipTests profile is defined as in [2]: any idea about the reason of the behavior described above?

TIA
Regards.

[1] http://syncope.apache.org/release-process
[2] https://github.com/apache/syncope/blob/2_1_X/pom.xml#L2710-L2755

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Recent troubles with release:prepare

Enrico Olivelli
Francesco,
which version of Maven are you using ? (you told you have tried different
Maven versions)

what is so special in skipTests profile ?
did you update to latest version of Apache Parent pom ?
which version of the release plugin are you using ?

Enrico


Il giorno lun 4 mag 2020 alle ore 15:36 Francesco Chicchiriccò <
[hidden email]> ha scritto:

> Hi all,
> at Syncope we've been ordinarily using the Release Plugin as part of our
> release process [1] since the beginning, and it's been working flawlessly
> for > 90 releases.
>
> Unfortunately we had troubles with last two releases (Syncope 2.1.6 /
> 2.0.15) that we cut last week.
>
> For some reason, release:prepare was not advancing POM files as expected,
> e.g. after running
>
> mvn -P apache-release release:prepare -Darguments="-P skipTests,all,docker
> -DbuildNumber=syncope-2.1.6"
>
> and providing 2.1.6 as release version and 2.1.7-SNAPSHOT as next
> development version, the build started without changing the POM files, e.g.
>
> diff pom.xml pom.xml.releaseBackup
>
> was empty.
>
> In fact, the artifacts were produced for 2.1.6-SNAPSHOT, not for 2.1.6.
>
> I tried with different Release Plugin version, different Maven versions
> but nothing.
>
> I have just found, however, that if I am *not* passing the skipTests
> profile in -Darguments then it works as expected.
>
> The skipTests profile is defined as in [2]: any idea about the reason of
> the behavior described above?
>
> TIA
> Regards.
>
> [1] http://syncope.apache.org/release-process
> [2] https://github.com/apache/syncope/blob/2_1_X/pom.xml#L2710-L2755
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Recent troubles with release:prepare

Francesco Chicchiriccò
Hi Enrico,
see my replies below.

Regards.

On 2020/05/04 21:18:26, Enrico Olivelli <[hidden email]> wrote:
> Francesco,
> which version of Maven are you using ? (you told you have tried different
> Maven versions)

I am normally using 3.6.3; tried 3.5.4 and 3.3.9.

> what is so special in skipTests profile ?

It is not evident to me, here is why I linked its definition below, maybe you can spot something I am not able to see.

> did you update to latest version of Apache Parent pom ?

Yes, as you can see from the linked pom, e.g.

https://github.com/apache/syncope/blob/syncope-2.1.6/pom.xml#L32-L37

> which version of the release plugin are you using ?

Ah, this observation made me look more thoroughly: I found a mismatch between ASF parent pom version 3.0.0-M1 and local 2.5.3; after fixing this it seem everything is back working again.

Thanks!

> Il giorno lun 4 mag 2020 alle ore 15:36 Francesco Chicchiriccò <
> [hidden email]> ha scritto:
>
> > Hi all,
> > at Syncope we've been ordinarily using the Release Plugin as part of our
> > release process [1] since the beginning, and it's been working flawlessly
> > for > 90 releases.
> >
> > Unfortunately we had troubles with last two releases (Syncope 2.1.6 /
> > 2.0.15) that we cut last week.
> >
> > For some reason, release:prepare was not advancing POM files as expected,
> > e.g. after running
> >
> > mvn -P apache-release release:prepare -Darguments="-P skipTests,all,docker
> > -DbuildNumber=syncope-2.1.6"
> >
> > and providing 2.1.6 as release version and 2.1.7-SNAPSHOT as next
> > development version, the build started without changing the POM files, e.g.
> >
> > diff pom.xml pom.xml.releaseBackup
> >
> > was empty.
> >
> > In fact, the artifacts were produced for 2.1.6-SNAPSHOT, not for 2.1.6.
> >
> > I tried with different Release Plugin version, different Maven versions
> > but nothing.
> >
> > I have just found, however, that if I am *not* passing the skipTests
> > profile in -Darguments then it works as expected.
> >
> > The skipTests profile is defined as in [2]: any idea about the reason of
> > the behavior described above?
> >
> > TIA
> > Regards.
> >
> > [1] http://syncope.apache.org/release-process
> > [2] https://github.com/apache/syncope/blob/2_1_X/pom.xml#L2710-L2755
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [hidden email]
> > For additional commands, e-mail: [hidden email]
> >
> >
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Recent troubles with release:prepare

Enrico Olivelli
Il Mer 6 Mag 2020, 08:29 Francesco Chicchiriccò <[hidden email]> ha
scritto:

> Hi Enrico,
> see my replies below.
>
> Regards.
>
> On 2020/05/04 21:18:26, Enrico Olivelli <[hidden email]> wrote:
> > Francesco,
> > which version of Maven are you using ? (you told you have tried different
> > Maven versions)
>
> I am normally using 3.6.3; tried 3.5.4 and 3.3.9.
>
> > what is so special in skipTests profile ?
>
> It is not evident to me, here is why I linked its definition below, maybe
> you can spot something I am not able to see.
>
> > did you update to latest version of Apache Parent pom ?
>
> Yes, as you can see from the linked pom, e.g.
>
> https://github.com/apache/syncope/blob/syncope-2.1.6/pom.xml#L32-L37
>
> > which version of the release plugin are you using ?
>
> Ah, this observation made me look more thoroughly: I found a mismatch
> between ASF parent pom version 3.0.0-M1 and local 2.5.3; after fixing this
> it seem everything is back working again.
>
> Thanks!
>

You are welcome

Cheers
Enrico



> > Il giorno lun 4 mag 2020 alle ore 15:36 Francesco Chicchiriccò <
> > [hidden email]> ha scritto:
> >
> > > Hi all,
> > > at Syncope we've been ordinarily using the Release Plugin as part of
> our
> > > release process [1] since the beginning, and it's been working
> flawlessly
> > > for > 90 releases.
> > >
> > > Unfortunately we had troubles with last two releases (Syncope 2.1.6 /
> > > 2.0.15) that we cut last week.
> > >
> > > For some reason, release:prepare was not advancing POM files as
> expected,
> > > e.g. after running
> > >
> > > mvn -P apache-release release:prepare -Darguments="-P
> skipTests,all,docker
> > > -DbuildNumber=syncope-2.1.6"
> > >
> > > and providing 2.1.6 as release version and 2.1.7-SNAPSHOT as next
> > > development version, the build started without changing the POM files,
> e.g.
> > >
> > > diff pom.xml pom.xml.releaseBackup
> > >
> > > was empty.
> > >
> > > In fact, the artifacts were produced for 2.1.6-SNAPSHOT, not for 2.1.6.
> > >
> > > I tried with different Release Plugin version, different Maven versions
> > > but nothing.
> > >
> > > I have just found, however, that if I am *not* passing the skipTests
> > > profile in -Darguments then it works as expected.
> > >
> > > The skipTests profile is defined as in [2]: any idea about the reason
> of
> > > the behavior described above?
> > >
> > > TIA
> > > Regards.
> > >
> > > [1] http://syncope.apache.org/release-process
> > > [2] https://github.com/apache/syncope/blob/2_1_X/pom.xml#L2710-L2755
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [hidden email]
> > > For additional commands, e-mail: [hidden email]
> > >
> > >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>