You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@logging.apache.org by Dominik Psenner <dp...@gmail.com> on 2017/07/01 18:47:27 UTC

Re: [log4net] set up basic multibranch and pull requests build

Hi

Here comes a little heads up on this topic. I was able to get the
Jenkinsfile so far that it builds the codebase, tests it on .net 4.0 and
builds the site along with the rat report. We are half way to building a
release with jenkins. The pipeline looks like this:

https://builds.apache.org/job/logging-log4net/job/develop/

Unfortunately only a subset of all targets are being built:

     [echo] The .NET Framework 1.0 is not available. Build skipped.
     [echo] The .NET Framework 1.1 is not available. Build skipped.
     [echo] The .NET Framework 2.0 is not available. Build skipped.
     [echo] The .NET Framework 3.5 is not available. Build skipped.
     [echo] Mono 1.0 is not available. Build skipped.
     [echo] Mono 2.0 is not available. Build skipped.
     [echo] Mono 3.5 is not available. Build skipped.
     [echo] Mono 4.0 is not available. Build skipped.
     [echo] .NET Core is not available.

It would be nice to have those targets covered and tested too since we
make heavy use of #ifdef's. I'm however unsure how we can achieve
that. Ideally we somehow make it happen without the need of infra.
Ideas?


Cheers

2017-06-30 17:23 GMT+02:00 Dominik Psenner <dp...@gmail.com>:

> Hi,
>
> I am currently tied to my bed and used that spare time to set up basic
> multibranch and pull request builds that fly in from github.
>
> https://builds.apache.org/job/logging-log4net/
>
> respectively this page:
>
> https://builds.apache.org/blue/organizations/jenkins/logging-log4net
>
> Tests and build artifacts are not set up yet. Please review and let me
> know what you think of this.
>
> Cheers
> --
> Dominik Psenner
>



-- 
Dominik Psenner

Re: [log4net] set up basic multibranch and pull requests build

Posted by Stefan Bodewig <bo...@apache.org>.
Hi Dominik

I hope you'll be getting better soon, even though it would probably mean
you'll have to slow down.

On 2017-07-01, Dominik Psenner wrote:

> An idea crossed my mind. Couldn't we build the Mono binaries on the ubuntu
> machines? .net core should build both on ubuntu and on windows. nant is
> available also for ubuntu and a perfect candidate for a build tool.

I haven't followed your changes closely but it seems to be heading into
a great direction. I've had some trouble with NAnt and the default Mono
installs on newer Ubuntus (Mono 4.5 isn't supported by NAnt) but you
seem to be able to deal with that.

Many many thanks

     Stefan

Re: [log4net] set up basic multibranch and pull requests build

Posted by Matt Sicker <bo...@gmail.com>.
I was about to suggest docker images for supporting older versions. I'm
somewhat surprised that Apache Infra hasn't jumped on the bandwagon already
and started "virtualizing" each version of Java and other things into
docker images. It's been the easiest way to support heterogeneous build
servers in my experience.

On 2 July 2017 at 08:47, Dominik Psenner <dp...@gmail.com> wrote:

> After a little investigation I found out that are going to have trouble
> with building mono assemblies that target mono1.0, mono-2.0, mono-4.0 with
> a recent installation of mono-4.5:
>
> http://www.mono-project.com/docs/about-mono/releases/4.0.
> 0/#dropped-support-for-old-frameworks
>
> Further, nant does not yet support mono-4.5:
>
> https://github.com/nant/nant/pull/169
>
> This means that we are basically without mono support at all unless we keep
> old installations of mono on a separate machine. :-( Our best bet are
> docker images. I'm going to invest some research time on this topic.
>
> 2017-07-01 21:02 GMT+02:00 Dominik Psenner <dp...@gmail.com>:
>
> > An idea crossed my mind. Couldn't we build the Mono binaries on the
> ubuntu
> > machines? .net core should build both on ubuntu and on windows. nant is
> > available also for ubuntu and a perfect candidate for a build tool. It
> > would be even nicer if we could simply add mono as a dependency (i.e.
> > nuget) and for example cake would take care of fetching the compiler,
> build
> > and test the assemblies for us. We have set up cake at work for this
> > purpose but are not targeting multiple .net versions and not even mono. I
> > have read that cake can build also with the mono compiler, but have no
> > experience with it. Cake would further probably completely replace nant
> > since it can easily invoke mvn to build the website too.
> >
>
>
>
> --
> Dominik Psenner
>



-- 
Matt Sicker <bo...@gmail.com>

Re: [log4net] set up basic multibranch and pull requests build

Posted by Stefan Bodewig <bo...@apache.org>.
On 2017-07-02, Dominik Psenner wrote:

> After a little investigation I found out that are going to have trouble
> with building mono assemblies that target mono1.0, mono-2.0, mono-4.0 with
> a recent installation of mono-4.5:

> http://www.mono-project.com/docs/about-mono/releases/4.0.0/#dropped-support-for-old-frameworks

> Further, nant does not yet support mono-4.5:

Ah, I should have read all my mails before responding.

> https://github.com/nant/nant/pull/169

> This means that we are basically without mono support at all unless we keep
> old installations of mono on a separate machine. :-( Our best bet are
> docker images. I'm going to invest some research time on this topic.

When I cut the last releases I've used a VM with Ubuntu 14.04 for the
Mono builds, this is sufficiently old to support the builds we want and
NAnt is happy as well.

Stefan

Re: [log4net] set up basic multibranch and pull requests build

Posted by Dominik Psenner <dp...@gmail.com>.
After a little investigation I found out that are going to have trouble
with building mono assemblies that target mono1.0, mono-2.0, mono-4.0 with
a recent installation of mono-4.5:

http://www.mono-project.com/docs/about-mono/releases/4.0.0/#dropped-support-for-old-frameworks

Further, nant does not yet support mono-4.5:

https://github.com/nant/nant/pull/169

This means that we are basically without mono support at all unless we keep
old installations of mono on a separate machine. :-( Our best bet are
docker images. I'm going to invest some research time on this topic.

2017-07-01 21:02 GMT+02:00 Dominik Psenner <dp...@gmail.com>:

> An idea crossed my mind. Couldn't we build the Mono binaries on the ubuntu
> machines? .net core should build both on ubuntu and on windows. nant is
> available also for ubuntu and a perfect candidate for a build tool. It
> would be even nicer if we could simply add mono as a dependency (i.e.
> nuget) and for example cake would take care of fetching the compiler, build
> and test the assemblies for us. We have set up cake at work for this
> purpose but are not targeting multiple .net versions and not even mono. I
> have read that cake can build also with the mono compiler, but have no
> experience with it. Cake would further probably completely replace nant
> since it can easily invoke mvn to build the website too.
>



-- 
Dominik Psenner

Re: [log4net] set up basic multibranch and pull requests build

Posted by Dominik Psenner <dp...@gmail.com>.
An idea crossed my mind. Couldn't we build the Mono binaries on the ubuntu
machines? .net core should build both on ubuntu and on windows. nant is
available also for ubuntu and a perfect candidate for a build tool. It
would be even nicer if we could simply add mono as a dependency (i.e.
nuget) and for example cake would take care of fetching the compiler, build
and test the assemblies for us. We have set up cake at work for this
purpose but are not targeting multiple .net versions and not even mono. I
have read that cake can build also with the mono compiler, but have no
experience with it. Cake would further probably completely replace nant
since it can easily invoke mvn to build the website too.