git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] gitlab-ci: add smoke test for fuzzers
@ 2024-04-29  6:13 Patrick Steinhardt
  2024-04-29  6:14 ` Patrick Steinhardt
  2024-05-06 10:08 ` Patrick Steinhardt
  0 siblings, 2 replies; 6+ messages in thread
From: Patrick Steinhardt @ 2024-04-29  6:13 UTC (permalink / raw)
  To: git; +Cc: Junio C Hamano

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

Our GitLab CI setup has a test gap where the fuzzers aren't exercised at
all. Add a smoke test, similar to the one we have in GitHub Workflows.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
---

As identified by Junio in <xmqqwmoi31aw.fsf@gitster.g>.

Patrick

 .gitlab-ci.yml | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index c0fa2fe90b..33d53b3ec7 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -93,6 +93,15 @@ test:osx:
       - t/failed-test-artifacts
     when: on_failure
 
+test:fuzz-smoke-tests:
+  image: ubuntu:latest
+  variables:
+    CC: clang
+  before_script:
+    - ./ci/install-docker-dependencies.sh
+  script:
+    - ./ci/run-build-and-minimal-fuzzers.sh
+
 static-analysis:
   image: ubuntu:22.04
   variables:
-- 
2.45.0-rc1


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH] gitlab-ci: add smoke test for fuzzers
  2024-04-29  6:13 [PATCH] gitlab-ci: add smoke test for fuzzers Patrick Steinhardt
@ 2024-04-29  6:14 ` Patrick Steinhardt
  2024-04-29 15:37   ` Junio C Hamano
  2024-05-06 10:08 ` Patrick Steinhardt
  1 sibling, 1 reply; 6+ messages in thread
From: Patrick Steinhardt @ 2024-04-29  6:14 UTC (permalink / raw)
  To: git; +Cc: Junio C Hamano

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

On Mon, Apr 29, 2024 at 08:13:23AM +0200, Patrick Steinhardt wrote:
> Our GitLab CI setup has a test gap where the fuzzers aren't exercised at
> all. Add a smoke test, similar to the one we have in GitHub Workflows.
> 
> Signed-off-by: Patrick Steinhardt <ps@pks.im>
> ---
> 
> As identified by Junio in <xmqqwmoi31aw.fsf@gitster.g>.
> 
> Patrick

I forgot to add the link to a successful run of this job:
https://gitlab.com/gitlab-org/git/-/jobs/6735705569

Patrick

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] gitlab-ci: add smoke test for fuzzers
  2024-04-29  6:14 ` Patrick Steinhardt
@ 2024-04-29 15:37   ` Junio C Hamano
  2024-04-30  4:30     ` Patrick Steinhardt
  0 siblings, 1 reply; 6+ messages in thread
From: Junio C Hamano @ 2024-04-29 15:37 UTC (permalink / raw)
  To: Patrick Steinhardt; +Cc: git

Patrick Steinhardt <ps@pks.im> writes:

> On Mon, Apr 29, 2024 at 08:13:23AM +0200, Patrick Steinhardt wrote:
>> Our GitLab CI setup has a test gap where the fuzzers aren't exercised at
>> all. Add a smoke test, similar to the one we have in GitHub Workflows.
>> 
>> Signed-off-by: Patrick Steinhardt <ps@pks.im>
>> ---
>> 
>> As identified by Junio in <xmqqwmoi31aw.fsf@gitster.g>.
>> 
>> Patrick
>
> I forgot to add the link to a successful run of this job:
> https://gitlab.com/gitlab-org/git/-/jobs/6735705569

Thanks.  I wonder if we can somehow automate a change like this.

Seeing how simple this fix has become thanks to the use of
before_script/script pair that merely point at ci/*.sh scripts,
perhaps we have already extracted enough commonalities as a set of
shell scripts in ci/ hierarchy.  I wonder if we can have a common
"source" that is "compiled" into .gitlab-ci.yml and its counterpart
for GitHub Actions?

Or perhaps a linter that can say things like "ah, you are adding
this new test to one, but not touching the other, shouldn't you?",
and "you are tweaking this existing test in one, but shouldn't you
be doing the same to the other?"



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] gitlab-ci: add smoke test for fuzzers
  2024-04-29 15:37   ` Junio C Hamano
@ 2024-04-30  4:30     ` Patrick Steinhardt
  0 siblings, 0 replies; 6+ messages in thread
From: Patrick Steinhardt @ 2024-04-30  4:30 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: git

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

On Mon, Apr 29, 2024 at 08:37:49AM -0700, Junio C Hamano wrote:
> Patrick Steinhardt <ps@pks.im> writes:
> 
> > On Mon, Apr 29, 2024 at 08:13:23AM +0200, Patrick Steinhardt wrote:
> >> Our GitLab CI setup has a test gap where the fuzzers aren't exercised at
> >> all. Add a smoke test, similar to the one we have in GitHub Workflows.
> >> 
> >> Signed-off-by: Patrick Steinhardt <ps@pks.im>
> >> ---
> >> 
> >> As identified by Junio in <xmqqwmoi31aw.fsf@gitster.g>.
> >> 
> >> Patrick
> >
> > I forgot to add the link to a successful run of this job:
> > https://gitlab.com/gitlab-org/git/-/jobs/6735705569
> 
> Thanks.  I wonder if we can somehow automate a change like this.
> 
> Seeing how simple this fix has become thanks to the use of
> before_script/script pair that merely point at ci/*.sh scripts,
> perhaps we have already extracted enough commonalities as a set of
> shell scripts in ci/ hierarchy.  I wonder if we can have a common
> "source" that is "compiled" into .gitlab-ci.yml and its counterpart
> for GitHub Actions?
> 
> Or perhaps a linter that can say things like "ah, you are adding
> this new test to one, but not touching the other, shouldn't you?",
> and "you are tweaking this existing test in one, but shouldn't you
> be doing the same to the other?"

We probably could, yeah. The question is whether it would really be
worth it in the end. GitLab CI is still a relatively new addition, and
thus it needs to catch up with what GitHub Workflows has. But once that
is done I don't expect there to be a ton of changes to the CI setup, and
the few new additions that we gain once in a while should be relatively
easy to spot during review.

So if anybody is up for it then I'm happy to review that. But I don't
think there would be enough value to do it myself.

Patrick

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] gitlab-ci: add smoke test for fuzzers
  2024-04-29  6:13 [PATCH] gitlab-ci: add smoke test for fuzzers Patrick Steinhardt
  2024-04-29  6:14 ` Patrick Steinhardt
@ 2024-05-06 10:08 ` Patrick Steinhardt
  2024-05-06 18:52   ` Junio C Hamano
  1 sibling, 1 reply; 6+ messages in thread
From: Patrick Steinhardt @ 2024-05-06 10:08 UTC (permalink / raw)
  To: git; +Cc: Junio C Hamano

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

On Mon, Apr 29, 2024 at 08:13:23AM +0200, Patrick Steinhardt wrote:
> Our GitLab CI setup has a test gap where the fuzzers aren't exercised at
> all. Add a smoke test, similar to the one we have in GitHub Workflows.
> 
> Signed-off-by: Patrick Steinhardt <ps@pks.im>

Junio, I haven't seen this topic getting picked up in your "What's
cooking" report yet. Is this intentional or did it simply fall through
the cracks?

Thanks!

Patrick

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] gitlab-ci: add smoke test for fuzzers
  2024-05-06 10:08 ` Patrick Steinhardt
@ 2024-05-06 18:52   ` Junio C Hamano
  0 siblings, 0 replies; 6+ messages in thread
From: Junio C Hamano @ 2024-05-06 18:52 UTC (permalink / raw)
  To: Patrick Steinhardt; +Cc: git

Patrick Steinhardt <ps@pks.im> writes:

> On Mon, Apr 29, 2024 at 08:13:23AM +0200, Patrick Steinhardt wrote:
>> Our GitLab CI setup has a test gap where the fuzzers aren't exercised at
>> all. Add a smoke test, similar to the one we have in GitHub Workflows.
>> 
>> Signed-off-by: Patrick Steinhardt <ps@pks.im>
>
> Junio, I haven't seen this topic getting picked up in your "What's
> cooking" report yet. Is this intentional or did it simply fall through
> the cracks?

The latter.  Thanks for a ping that is designed to make it easy to
find the patch (by going to the message it is a response to).

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-05-06 18:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-29  6:13 [PATCH] gitlab-ci: add smoke test for fuzzers Patrick Steinhardt
2024-04-29  6:14 ` Patrick Steinhardt
2024-04-29 15:37   ` Junio C Hamano
2024-04-30  4:30     ` Patrick Steinhardt
2024-05-06 10:08 ` Patrick Steinhardt
2024-05-06 18:52   ` Junio C Hamano

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).