qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Wainer dos Santos Moschetta <wainersm@redhat.com>
To: "Philippe Mathieu-Daudé" <f4bug@amsat.org>,
	"Paolo Bonzini" <pbonzini@redhat.com>,
	"Andrew Jones" <drjones@redhat.com>,
	"Stefan Hajnoczi" <stefanha@redhat.com>
Cc: "Peter Maydell" <peter.maydell@linaro.org>,
	"Thomas Huth" <thuth@redhat.com>,
	"Daniel P . Berrange" <berrange@redhat.com>,
	qemu-devel <qemu-devel@nongnu.org>,
	"Cleber Rosa" <crosa@redhat.com>,
	"Alex Bennée" <alex.bennee@linaro.org>
Subject: Re: Serious doubts about Gitlab CI
Date: Fri, 19 Mar 2021 12:27:10 -0300	[thread overview]
Message-ID: <d05a40b2-ff80-d9c8-8dfe-5dfce2e57d3d@redhat.com> (raw)
In-Reply-To: <b351f107-a9fd-f7cf-1f27-2d435cea612a@amsat.org>

Hi,

On 3/19/21 8:34 AM, Philippe Mathieu-Daudé wrote:
> On 3/19/21 11:59 AM, Paolo Bonzini wrote:
>> On 19/03/21 11:18, Andrew Jones wrote:
>>>> Yikes, that is 41 hours per CI run. I wonder if GitLab's CI minutes are
>>>> on slow machines or if we'll hit the same issue with dedicated runners.
>>>> It seems like CI optimization will be necessary...
>>>>
>>> We need to reduce the amount of CI we do, not only because we can't
>>> afford
>>> it, but because it's wasteful. I hate to think of all the kWhs spent
>>> testing the exact same code in the exact same way, since everyone runs
>>> everything with a simple 'git push'.
>> Yes, I thought the same.
>>
>>> IMHO, 'git push' shouldn't trigger
>>> anything. Starting CI should be an explicit step.
> * tests/acceptance: Only run tests tagged 'gating-ci' on GitLab CI
> https://www.mail-archive.com/qemu-devel@nongnu.org/msg756464.html
>
> * gitlab-ci: Allow forks to select & restrict build jobs
> https://www.mail-archive.com/qemu-devel@nongnu.org/msg758331.html

In my opinion that series is the first step towards a smart CI. It got 
some reviews of Thomas and myself already but it didn't move ahead. If 
Philippe for some reason cannot continue that work, I'm volunteering to 
take it over.

- Wainer

>
>> It is possible to do that on a project that uses merge requests, for
>> example like this:
>>
>> workflow:
>>    rules:
>>      - if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
>>      - if: '$CI_COMMIT_BRANCH
>>        when: never
>>
>> For us it's a bit more complicated (no merge requests).
>>
>> Another common feature is failing the pipeline immediately if one of the
>> jobs fail, but GitLab does not support it
>> (https://gitlab.com/gitlab-org/gitlab/-/issues/23605).
>>
>>> Also, the default CI
>>> should only trigger tests associated with the code changed. One should
>>> have to explicitly trigger a complete CI when they deem it worthwhile.
>> This is interesting.  We could add a stage that looks for changed files
>> using "git diff" and sets some variables (e.g. softmmu, user, TCG,
>> various targets) based on the results.  Then you use those to skip some
>> jobs or some tests, for example skipping check-tcg.  See
>> https://docs.gitlab.com/ee/ci/variables/#inherit-cicd-variables for more
>> information.
>>
>> Paolo
>>
>>



  reply	other threads:[~2021-03-19 15:28 UTC|newest]

Thread overview: 44+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-17 20:29 Serious doubts about Gitlab CI Philippe Mathieu-Daudé
2021-03-18  1:28 ` Bin Meng
2021-03-18  8:55   ` Philippe Mathieu-Daudé
2021-03-18  9:33 ` Daniel P. Berrangé
2021-03-18  9:50   ` Philippe Mathieu-Daudé
2021-03-18 10:28     ` Philippe Mathieu-Daudé
2021-03-19  5:34       ` Thomas Huth
2021-03-18 19:46 ` Stefan Hajnoczi
2021-03-18 19:52   ` John Snow
2021-03-18 20:53     ` Philippe Mathieu-Daudé
2021-03-18 20:30   ` Paolo Bonzini
2021-03-19  9:33     ` Stefan Hajnoczi
2021-03-19  9:41       ` Paolo Bonzini
2021-03-19 11:44         ` Philippe Mathieu-Daudé
2021-03-19 10:18       ` Andrew Jones
2021-03-19 10:59         ` Paolo Bonzini
2021-03-19 11:34           ` Philippe Mathieu-Daudé
2021-03-19 15:27             ` Wainer dos Santos Moschetta [this message]
2021-03-29 14:10               ` Stefan Hajnoczi
2021-03-30 11:19                 ` Daniel P. Berrangé
2021-03-30 11:55                   ` Thomas Huth
2021-03-30 12:09                     ` Paolo Bonzini
2021-03-30 12:23                       ` Philippe Mathieu-Daudé
2021-03-30 12:45                         ` Paolo Bonzini
2021-03-30 13:12                           ` Daniel P. Berrangé
2021-03-30 13:19                             ` Paolo Bonzini
2021-03-30 13:27                               ` Daniel P. Berrangé
2021-03-30 15:59                                 ` Warner Losh
2021-03-30 16:11                                   ` Peter Maydell
2021-03-30 16:24                                     ` Warner Losh
2021-03-30 16:10                                 ` Thomas Huth
2021-03-30 13:09                       ` Daniel P. Berrangé
2021-03-30 12:09                     ` Paolo Bonzini
2021-03-30 12:19                     ` Peter Maydell
2021-03-30 12:33                     ` Philippe Mathieu-Daudé
2021-03-30 13:19                     ` Daniel P. Berrangé
2021-03-31  7:54                       ` Thomas Huth
2021-03-31  9:31                         ` Andrea Bolognani
2021-03-30 14:13                     ` Stefan Hajnoczi
2021-03-30 14:23                       ` Paolo Bonzini
2021-03-30 14:30                         ` Daniel P. Berrangé
2021-03-30 14:09                   ` Stefan Hajnoczi
2021-03-19 12:07         ` Markus Armbruster
2021-03-19 13:06           ` Thomas Huth

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=d05a40b2-ff80-d9c8-8dfe-5dfce2e57d3d@redhat.com \
    --to=wainersm@redhat.com \
    --cc=alex.bennee@linaro.org \
    --cc=berrange@redhat.com \
    --cc=crosa@redhat.com \
    --cc=drjones@redhat.com \
    --cc=f4bug@amsat.org \
    --cc=pbonzini@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@redhat.com \
    --cc=thuth@redhat.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).