From: "Nikolai Kondrashov" <Nikolai.Kondrashov@redhat.com>
To: Dmitry Vyukov <dvyukov@google.com>, kernelci@groups.io
Cc: "Guillaume Tucker" <guillaume.tucker@collabora.com>,
"Philip Li" <philip.li@intel.com>,
kernelci-members@groups.io, nkondras@redhat.com,
"Don Zickus" <dzickus@redhat.com>,
syzkaller <syzkaller@googlegroups.com>,
"Iñaki Malerba" <imalerba@redhat.com>
Subject: Re: [kernelci-members] Working with the KernelCI project
Date: Thu, 1 Oct 2020 13:48:42 +0300 [thread overview]
Message-ID: <521cc33e-62fc-55c1-aeb2-682007243d97@redhat.com> (raw)
In-Reply-To: <CACT4Y+aqdTZ7r-tvFcajqcX5n7gO1RJ+9_vsbsYJPsypeYH3vQ@mail.gmail.com>
On 9/30/20 7:07 PM, Dmitry Vyukov wrote:
> So we are alive!
> https://staging.kernelci.org:3000/d/home/home?orgId=1&refresh=30m&var-origin=syzbot&var-git_repository_url=All&var-dataset=playground_kernelci04&from=now-90d&to=now
Woo-hoo!
> Here is syzkaller PR (will be merged as soon as CI passes):
> https://github.com/google/syzkaller/pull/2150
Awesome, and I see it's merged already :)
> Please check if the data it uploads look sane.
Alright, there are a few things to improve, which is fine, but you did an
awesome job setting up automatic submission so quickly! None of those things
should prevent you switching to production, and I already added the necessary
permissions to your account.
Just switch to submitting to the "kernelci_new" topic when you're ready.
Here are the things which could be improved:
* To be able to correlate Git repos across submitters, and to make subscribing
easier, we have to normalize repo URLs. That's why in the schema docs we're
asking to use https:// repo URLs, and only use git:// in the rare case
https:// is not available (we only have one so far).
E.g. you're sending the stable repo URL as:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
and we'd prefer it sent as:
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
This is also the reason we didn't get e-mail reports for your
submissions - the PoC stable tree subscription expects https://
Ah, that, and we also weren't subscribed to stable/linux-stable.git, just
sashal/linux-stable.git, but it should be fixed soon :)
* Could you move the "dashboard" link out of test's "output_files", and into
a "misc" field? It won't be presented as a link in Grafana unfortunately,
but "output_files" is for something which could be useful when downloaded
(and e.g. re-hosted by KCIDB), and the linked HTML doesn't seem to be.
Let's deal with the dashboard link issue in
https://github.com/kernelci/kcidb/issues/93
* Could you add `"waived": false` field to the tests? This way the system will
know to take your test results seriously, and Grafana will color the status
fields nicely and not display that question mark in them.
We can adjust the subscriptions to ignore syzbot tests and not send failure
reports until we get the issue/incident system figured out.
* Could you submit a PR adding syzkaller to
https://github.com/kernelci/kcidb/blob/master/tests.yaml
so its canonical name is registered?
We can, of course, use more fields filled in, such as build logs and output
files, or environment descriptions, but that can be done later.
Thank you for your awesome contribution!
> Also please check for server errors. There may be few produced with
> earlier versions of the code, but the latest code uploaded the
> majority of data.
Nope, couldn't find anything caused by your submissions :)
> You may skim through the syzkaller bits to check how we fill data,
> this is the most interesting part:
> https://github.com/google/syzkaller/pull/2150/commits/766714e5dcf6ceb6bab69754173f6f8f314d78c6
>
> Build errors and runtime errors are handled slightly differently, we
> also add some info into the misc objects (Report-by tag, bisection
> result, userspace arch).
>
> Re contributing Go support to Kcidb.
> The main thing that is useful is the schema converted to Go types, see
> the same link above. It was produced automatically with
> github.com/a-h/generate, but then slightly modified by hand.
Nice!
> The rest is effectively 3 lines of code to push it:
> client, err := pubsub.NewClient(ctx, project,
> option.WithCredentialsJSON(credentials))
> topic: client.Topic(topic),
> _, err = c.topic.Publish(c.ctx, &pubsub.Message{Data: data}).Get(c.ctx)
>
> I don't think these 3 lines of code are worth factoring out, but of
> course we can point people to the syzkaller code as an example
> implementation.
We need a module providing an abstract interface to submitting (at least), so
people who use Go don't have to rewrite their code (much) if we e.g. change
our cloud architecture, provider, or even move off-cloud. Something similar to
https://github.com/kernelci/kcidb/blob/master/kcidb/__init__.py#L36
> The Go schema may be worth contributing if we decide to detach it from
> the original source and keep maintaining manually. A better long term
> solution may be to write/find a proper converter that produces working
> code.
Yes, we need to maintain a single source for the schema and generate the rest
from that. We can switch to publishing the schema as a JSON file instead of
(more readable) Python code generating it, if it helps you to generate your
module. Actually, maybe a YAML file could be a good compromise of readability
vs accessibility.
Nick
On 9/30/20 7:07 PM, Dmitry Vyukov wrote:
> On Wed, Sep 30, 2020 at 9:32 AM Dmitry Vyukov via groups.io
> <dvyukov=google.com@groups.io> wrote:
>>
>> On Tue, Sep 29, 2020 at 7:13 PM Nikolai Kondrashov
>> <Nikolai.Kondrashov@redhat.com> wrote:
>>> > 6. We have that tagged Reported-by line that we very much want
>>> > developers to use in the fixing commit to understand when bugs are
>>> > fixed.
>>> > If we detach them from info/reports available in KCIDB, then nobody
>>> > will use them in commits.
>>> > How can we pass it to KCIDB? Perhaps it's a useful feature for all
>>> > reports/test failures? If a bug is reported by Fuego and KCIDB
>>> > notifications/dashboard will ask to use "Reported-by: fuego", it will
>>> > give nice credits. We also found use of the hashes in the tag very
>>> > useful for statistics/tracking purposes. It makes it possible to link
>>> > failures to fixing commits and understand if a fix (1) exists in
>>> > general, (2) present in a particular tree, (3) or even if somebody
>>> > just mailed a proposed fix (useful to identify lost fixes that were
>>> > never merged, or avoid several people fixing the same bug if you can
>>> > show that somebody mailed a fix already).
>>>
>>> Hmm, yes, that could be very useful indeed, thank you.
>>>
>>> We would have to use an ID managed by KCIDB, though. This brings me to the
>>> question what we're going to use for identifying issues. Perhaps use the
>>> submitter-supplied ID, similarly to builds and tests right now, under the
>>> assumption that, at least for the start, issues are not going to be reused
>>> across CI systems. If that's so, then you would be able to map those IDs back
>>> to your issues.
>>
>> If we report a failed test/issue with "id": "syzbot:d195fe572fb15368",
>> then if the commit includes:
>> Reported-by: syzbot:d195fe572fb15368
>> I think it should work for us.
>
> So we are alive!
> https://staging.kernelci.org:3000/d/home/home?orgId=1&refresh=30m&var-origin=syzbot&var-git_repository_url=All&var-dataset=playground_kernelci04&from=now-90d&to=now
>
> Here is syzkaller PR (will be merged as soon as CI passes):
> https://github.com/google/syzkaller/pull/2150
>
> Please check if the data it uploads look sane.
> Also please check for server errors. There may be few produced with
> earlier versions of the code, but the latest code uploaded the
> majority of data.
>
> You may skim through the syzkaller bits to check how we fill data,
> this is the most interesting part:
> https://github.com/google/syzkaller/pull/2150/commits/766714e5dcf6ceb6bab69754173f6f8f314d78c6
> Build errors and runtime errors are handled slightly differently, we
> also add some info into the misc objects (Report-by tag, bisection
> result, userspace arch).
>
> Re contributing Go support to Kcidb.
> The main thing that is useful is the schema converted to Go types, see
> the same link above. It was produced automatically with
> github.com/a-h/generate, but then slightly modified by hand.
>
> The rest is effectively 3 lines of code to push it:
> client, err := pubsub.NewClient(ctx, project,
> option.WithCredentialsJSON(credentials))
> topic: client.Topic(topic),
> _, err = c.topic.Publish(c.ctx, &pubsub.Message{Data: data}).Get(c.ctx)
>
> I don't think these 3 lines of code are worth factoring out, but of
> course we can point people to the syzkaller code as an example
> implementation.
> The Go schema may be worth contributing if we decide to detach it from
> the original source and keep maintaining manually. A better long term
> solution may be to write/find a proper converter that produces working
> code.
>
next prev parent reply other threads:[~2020-10-01 10:48 UTC|newest]
Thread overview: 54+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20200707222342.scrz75265etaqlmd@redhat.com>
[not found] ` <42d15463-e4ee-4c0b-c63f-dce7acb05e35@collabora.com>
[not found] ` <CACT4Y+ZLoBLFWRM+RcKZJyR2Hh5az9W8_329ShM9JuSg6V4uVw@mail.gmail.com>
[not found] ` <bbeeb467-1571-5404-7408-9b112d64e928@redhat.com>
[not found] ` <CACT4Y+a1t-9sT7xz7d=Wmesnn_QoUqfipmoZXBu40_B+GQy=nQ@mail.gmail.com>
2020-07-17 12:22 ` [kernelci-members] Working with the KernelCI project Nikolai Kondrashov
2020-08-03 9:25 ` Nikolai Kondrashov
2020-08-05 18:44 ` Dmitry Vyukov
2020-08-21 10:10 ` Nikolai Kondrashov
2020-09-28 12:48 ` Dmitry Vyukov
2020-09-28 13:15 ` Nikolai Kondrashov
2020-09-28 15:23 ` Dmitry Vyukov
2020-09-28 16:09 ` Dmitry Vyukov
2020-09-28 16:24 ` Dmitry Vyukov
2020-09-28 17:16 ` Nikolai Kondrashov
2020-09-29 7:52 ` Dmitry Vyukov
2020-09-29 17:13 ` Nikolai Kondrashov
2020-09-30 7:07 ` Dmitry Vyukov
2020-10-01 8:30 ` Nikolai Kondrashov
2020-10-01 8:43 ` Dmitry Vyukov
2020-10-01 10:51 ` Nikolai Kondrashov
2020-09-30 7:21 ` Dmitry Vyukov
2020-10-01 8:53 ` Nikolai Kondrashov
2020-09-30 7:31 ` Dmitry Vyukov
2020-10-01 8:57 ` Nikolai Kondrashov
[not found] ` <16397F50C12D08DD.21243@groups.io>
2020-09-30 16:07 ` Dmitry Vyukov
2020-10-01 10:48 ` Nikolai Kondrashov [this message]
2020-10-01 13:32 ` Nikolai Kondrashov
2020-10-01 14:48 ` Dmitry Vyukov
2020-10-01 15:49 ` Nikolai Kondrashov
2020-10-01 15:51 ` Nikolai Kondrashov
2020-10-01 16:00 ` Dmitry Vyukov
2020-10-01 16:34 ` Nikolai Kondrashov
2020-10-01 17:02 ` Dmitry Vyukov
2020-10-02 7:52 ` Dmitry Vyukov
2020-10-02 8:12 ` Nikolai Kondrashov
2020-10-02 9:02 ` Dmitry Vyukov
2020-10-02 9:08 ` Nikolai Kondrashov
2020-10-02 10:39 ` Nikolai Kondrashov
2020-10-02 13:40 ` Dmitry Vyukov
2020-10-02 8:12 ` Nikolai Kondrashov
2020-10-01 15:01 ` Dmitry Vyukov
2020-10-01 15:11 ` Nikolai Kondrashov
2020-10-01 15:36 ` Dmitry Vyukov
2020-10-01 15:40 ` Dmitry Vyukov
2020-10-01 15:58 ` Nikolai Kondrashov
2020-10-01 15:55 ` Nikolai Kondrashov
2020-10-01 16:03 ` Dmitry Vyukov
2020-10-01 16:28 ` Nikolai Kondrashov
2020-09-28 16:50 ` Nikolai Kondrashov
2020-09-28 16:49 ` Nikolai Kondrashov
2020-09-28 17:09 ` Dmitry Vyukov
[not found] ` <20200709110029.GB27682@intel.com>
[not found] ` <69138572-7241-1636-8018-34cd380ec540@redhat.com>
[not found] ` <20200713001929.GA1812@intel.com>
2020-07-22 12:42 ` Nikolai Kondrashov
2020-08-03 9:11 ` Nikolai Kondrashov
2020-08-04 0:13 ` Philip Li
2020-08-09 2:25 ` Philip Li
2020-08-10 8:50 ` Nikolai Kondrashov
2020-08-21 9:50 ` Nikolai Kondrashov
2020-08-21 10:19 ` Nikolai Kondrashov
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=521cc33e-62fc-55c1-aeb2-682007243d97@redhat.com \
--to=nikolai.kondrashov@redhat.com \
--cc=dvyukov@google.com \
--cc=dzickus@redhat.com \
--cc=guillaume.tucker@collabora.com \
--cc=imalerba@redhat.com \
--cc=kernelci-members@groups.io \
--cc=kernelci@groups.io \
--cc=nkondras@redhat.com \
--cc=philip.li@intel.com \
--cc=syzkaller@googlegroups.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