git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] ci: update freebsd 12 cirrus job

From
SZEDER Gábor <szeder.dev@gmail.com>
Date
Aug 13, 2021, 09:39 UTC
Message-ID
<20210813093909.GA3866771@szeder.dev>
In-Reply-To
<20210812202200.82465-1-carenas@gmail.com>
On Thu, Aug 12, 2021 at 01:22:00PM -0700, Carlo Marcelo Arenas Belón wrote:
Show 22 quoted lines
> 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?

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.

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

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?

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?

Show 13 quoted lines
> +    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
> 
Previous: Carlo Marcelo Arenas BelónNext: Carlo Arenas
Message 2 of 4 in “ci: update freebsd 12 cirrus job”
  1. ci: update freebsd 12 cirrus jobCarlo Marcelo Arenas Belón, Aug 12, 2021
  2. SZEDER GáborAug 13, 2021
  3. Carlo ArenasAug 14, 2021
  4. Johannes SchindelinAug 14, 2021

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.