All of lore.kernel.org
 help / color / mirror / Atom feed
From: Johannes Schindelin <Johannes.Schindelin@gmx.de>
To: "SZEDER Gábor" <szeder.dev@gmail.com>
Cc: "Carlo Marcelo Arenas Belón" <carenas@gmail.com>,
	git@vger.kernel.org, emaste@FreeBSD.org
Subject: Re: [PATCH] ci: update freebsd 12 cirrus job
Date: Sun, 15 Aug 2021 00:29:05 +0200 (CEST)	[thread overview]
Message-ID: <nycvar.QRO.7.76.6.2108150022160.59@tvgsbejvaqbjf.bet> (raw)
In-Reply-To: <20210813093909.GA3866771@szeder.dev>

[-- Attachment #1: Type: text/plain, Size: 3404 bytes --]

Hi Gábor,

On Fri, 13 Aug 2021, SZEDER Gábor wrote:

> On Thu, Aug 12, 2021 at 01:22:00PM -0700, Carlo Marcelo Arenas Belón wrote:
> > make sure it uses a supported OS branch and uses all the resources
> > that can be allocated efficiently.
> >
> > while only 1GB of memory is needed, 2GB is the minimum for a 2 CPU
> > machine (the default), but by increasing parallelism wall time has
> > been reduced by 35%.
> >
> > Signed-off-by: Carlo Marcelo Arenas Belón <carenas@gmail.com>
> > ---
> >  .cirrus.yml | 9 ++++++++-
> >  1 file changed, 8 insertions(+), 1 deletion(-)
> >
> > diff --git a/.cirrus.yml b/.cirrus.yml
> > index c2f5fe385a..e114ffee1a 100644
> > --- a/.cirrus.yml
> > +++ b/.cirrus.yml
> > @@ -2,8 +2,15 @@ env:
> >    CIRRUS_CLONE_DEPTH: 1
> >
> >  freebsd_12_task:
> > +  env:
> > +    GIT_PROVE_OPTS: "--timer --jobs 10"
>
> Why these prove options?

The only problem I see with it is that its `--jobs 10` disagrees with the
`MAKEFLAGS: -j4` below. Either both should say 10, or both should say 4.

> On other CI systems we pass 'prove' the option
> '--state=failed,slow,save' as well to reduce runtime.  However, this
> only works when there is a persistent place for prove's state files,
> e.g. the cache feature of Travis CI.  If Cirrus CI lacks a similar
> feature, then we can't benefit from this option, but it'd be worth
> mentioning in the commit message.

We also don't benefit from this in the GitHub workflow because there is
likewise no easy way to persist the state.

> > +    GIT_TEST_OPTS: "--no-chain-lint --no-bin-wrappers"
>
> Why these test options?

I guess that's for the same reason we use these options in the Windows
tests: it speeds up things for a historically pretty slow build axis. At
least I seem to see FreeBSD runs lagging behind all the time.

> chain-linting is done by a mighty sed script; I think it's worth
> running it with FreeBSD's 'sed' as well.
>
> Quoting 't/README', '--no-bin-wrappers' "can speed up test runs
> especially on platforms where running shell scripts is expensive".  Is
> running shell scripts really that expensive on FreeBSD?

I don't think it is FreeBSD per se, but the available VMs that make this
speed-up worth our while.

> OTOH, why are there no options that would show us some information
> about test failures, i.e. why no '--verbose-log -x --immediate' like
> on other CI systems?

That's because we don't use the `ci/` scripts at all, and the failures are
not actually shown.

This is a mild annoyance to me, I have to admit: there is very little in
the way of actionable information whenever the FreeBSD jobs fail.

Lucky for me, I've so far only encountered breakages that _also_ affected
the macOS build axes, and therefore I could diagnose the issues in the
GitHub workflow run logs.

But yes, it would be nice if the FreeBSD CI runs were more helpful in case
of problems.

As far as this here patch goes: I am in favor of integrating it as-is.

Ciao,
Dscho

>
> > +    MAKEFLAGS: "-j4"
> > +    DEFAULT_TEST_TARGET: prove
> > +    DEVELOPER: 1
> >    freebsd_instance:
> > -    image: freebsd-12-1-release-amd64
> > +    image_family: freebsd-12-2
> > +    memory: 2G
> >    install_script:
> >      pkg install -y gettext gmake perl5
> >    create_user_script:
> > --
> > 2.33.0.rc1.379.g2890ef5eb6
> >
>

      parent reply	other threads:[~2021-08-14 22:29 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-12 20:22 [PATCH] ci: update freebsd 12 cirrus job Carlo Marcelo Arenas Belón
2021-08-13  9:39 ` SZEDER Gábor
2021-08-14  1:42   ` Carlo Arenas
2021-08-14 22:29   ` Johannes Schindelin [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=nycvar.QRO.7.76.6.2108150022160.59@tvgsbejvaqbjf.bet \
    --to=johannes.schindelin@gmx.de \
    --cc=carenas@gmail.com \
    --cc=emaste@FreeBSD.org \
    --cc=git@vger.kernel.org \
    --cc=szeder.dev@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.