| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Occasionally, a branch may need to be globally excluded from
sanity-bot review. Such is the case in refs/meta/config, which is an
internal gerrit config branch, and will never conform to sanity-bot
review rules.
Updated syntax for excluded-projects: <project>[:<branch>]
where project can be the wildcard '*' to exclude a branch from
all projects.
Fixes: QTQAINFRA-3880
Change-Id: I2f7fb436021a8c87bd82f3091758acff97bd3d24
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
|
|
|
|
|
|
|
|
|
|
|
|
| |
If the Sanity-bot subprocess fails to generate a suitable output
with the 'Sanity-Review' label, gerrit-bot restarts the process
repeatedly, spamming the change in gerrit. Check for the
uninitialized variable so the warning isn't thrown.
Task-number: QTQAINFRA-3841
Change-Id: I9950e3242bc043d9d986f9e046d53a6ba1fecf17
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
guessing the target branch with the help of git-merge-base is unreliable
when the user does a cross-branch push or the commit has simply an old
base. therefore, explicitly pass in the branch if we already know it,
which is the case on the server.
Fixes: QTQAINFRA-3322
Started-by: Daniel Smith <daniel.smith@qt.io>
Change-Id: I5fd1e827b9e169f4aa2eb3590bc4f252037d6ba0
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Reviewed-by: Daniel Smith <Daniel.Smith@qt.io>
|
|
|
|
|
|
|
|
|
|
|
|
| |
We now check for the existence of the comment section in a slightly more
readable way and then proceed based on that.
Done-with: Orgad Shaneh <orgad.shaneh@audiocodes.com>
Fixes: QTQAINFRA-2988
Change-Id: I90ddef66b97fea42bd9723a234235820bb21875a
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
|
|
|
|
|
|
|
|
| |
Add missing dereference.
Fixes: QTQAINFRA-2988
Change-Id: Ic20cb633cef19a40820d9f3585ffa3886416442f
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io>
|
|
|
|
|
|
|
| |
Enables filtering of bot messages
Change-Id: I2060a6868fa703e009277a19d91c65de14d5ce11
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
|
|
|
|
|
|
|
|
|
|
|
| |
Work around an issue where set-reviewers call causes an internal server error
due to a NullPointerException. Giving the project explicitly avoids that error.
Task-number: QTQAINFRA-3035
Change-Id: I466a85eb4bf7a7a14a5054e3436b16159e75f4c1
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
|
|
|
|
|
|
|
|
| |
After the Gerrit upgrade, the bot doesn't work any more (we use NoteDB
now) and the functionality is in the regular UI.
Change-Id: I005b2501d63d6a99c9f643fd77a6451e5c6cfb06
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Recently added check for fatuous sanity review tested for empty
comments with int($$verdict{comments}) == 0 but it's possible that
$$verdict{comments} is undefined; when it is, we get a warning here:
Use of uninitialized value in int at /srv/gerrit/sanitybot/gerrit-bot.pl line 224.
So add and tweak some punctuation to make perl happy again.
Thanks to Ossi for the appropriate runes.
Change-Id: I211baa2e61cda98fc61ec97775f5a247da00c1f4
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
|
|
|
|
|
|
|
|
|
| |
After the last change, the bot refuses to start:
Execution of /srv/gerrit/sanitybot/gerrit-bot.pl aborted due to compilation errors.
Bareword "NONE" not allowed while "strict subs" in use at /srv/gerrit/sanitybot/gerrit-bot.pl line 224.
Change-Id: I62958d97ba0311986549c7cc6e78a4e381cbd28a
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
|
|
|
|
|
|
|
| |
Fixes: QTBI-1549
Change-Id: I061eafd8ab5b27d07dd9165e82688fd8cbcbe78d
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io>
|
|
|
|
|
|
| |
Change-Id: If351a93f6959406e032e85c8e0238af87333a727
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
| |
Having now seen moves using the bot in practice, I find that reviews
after a move typically give no hint to which branch they were on
*before* the move. Though usually unimportant, it's sometimes of
interest to a reviewer.
Change-Id: I2462ca2033a7f9007ff5dc226dc6674b04b4e4fb
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
|
|
|
|
|
|
|
|
|
|
| |
contrary to expectations, the 'status' field is simply missing from the
event streams change object.
we'll let the worker script complain about the problem instead.
Change-Id: Ie7cc6af462372f52a1e942fec836c680f0f51dd2
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
|
|
|
|
|
| |
Change-Id: Ifcace60957cf2383effaaa23adcd7e1509d04066
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
|
|
|
|
|
|
|
| |
amends 21ec987901.
Change-Id: I8d04359bbaa77096f7c8d4e446978c65cb2eea19
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
|
|
|
|
|
| |
Change-Id: Ideca76f81632a4d886193b8a8529aa9682b84066
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Let the gerrit bot listen to comments and process move requests
in the form: "bot: move to 4.5".
This should replace the current method for moving a change, which
is to ask ossi or fregl.
Only the change owner is allowed to request moving the change.
Resume is not needed because the bot is up most of the time, and
unlike the Sanity-Review label, this can be easily retriggered by
the user in case of failure.
Change-Id: I5b89fb8e38b0e0af2b7a4f20a5b29412493fb72e
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
originally, the idea was to have one gerrit-bot instance per worker, but
that would result in an (even greater) flood of comments. so all
functionality that didn't fit into sanitize-commit was added to
gerrit-bot. at this time it's getting messy, so clean it up by making it
a plain launcher/dispatcher again, with the ability to run multiple
workers on a single commit.
Change-Id: I8c04f449726793b99e9f1ac5c6db330a1f17389f
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
|
|
|
|
|
|
|
|
|
|
| |
the worker knows gerrit's JSON format and the meaning of the field's
values anyway, so putting the field name there as well actually improves
locality.
Change-Id: If1ee5a5e54bb041244dcc986b6236de504522c2f
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
|
|
|
|
|
|
|
|
| |
we've been on gerrit 2.7 for long enough.
Change-Id: I7ee344b724b103594c196fc394b9bdc7349ee36c
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
|
|
|
|
|
|
|
|
|
|
| |
notification mails from the sanity bot are suppressed for users not
owning the change, so the invited reviewers would never get a proper
invitation.
Change-Id: I4bb816a3a5178cba01fe11016c46ae933807a454
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
|
|
|
|
|
|
|
|
| |
this avoids that die if the worker emits any warnings or errors before
the verdict.
Change-Id: I7e5e6ec71983eb2352bf83e4a300c3a6e0a090c2
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
|
|
|
|
|
|
|
|
|
| |
it sort of makes sense that the persons actually see why they are being
invited.
Change-Id: Ie6cf006fc2e137d439924774ff0808cda8c42626
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Edward Welbourne <edward.welbourne@theqtcompany.com>
|
|
|
|
|
|
|
|
|
|
|
| |
observed conventions: the marker is typically used at the beginning of
the summary, optionally in square (or angle) brackets, optionally
followed by a colon - all-lowercase, all-uppercase, or capitalized.
alternatively, it's used somewhere else in the summary, but always in
all-uppercase.
Change-Id: I52b3eb2162f281450aebe6b770ba4639ed1557b2
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
it obviously makes no sense when the sanitizer is executed locally.
additionally, this allows us a different treatment of WIP reports:
instead of giving a -2 sanity review, give a -2 code review. that way
the change owner is not spammed by useless notifications (because the
sanity review itself is positive, so the message is suppressed by the
gerrit configuration).
Change-Id: I10bc8f8f61673e75983dcb91310836d59c434483
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
|
|
|
|
|
|
|
|
|
|
| |
Qt copyrights are now in The Qt Company, so we could update the source
code headers accordingly. In the same go we should also fix the links to
point to qt.io.
Change-Id: If3c8d221bcf8e5010048ed5f1c50cd35c04e7199
Reviewed-by: Jani Heikkinen <jani.heikkinen@theqtcompany.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
|
|
|
|
|
|
|
|
|
|
|
|
| |
watchers are really pointless when sanitizing local commits, especially
as nobody actually has the relevant configuration.
as an additional boon, the bot can now automatically invite relevant
people.
Change-Id: I735056845d7f807904070e61efb54407dcec9fb9
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
|
|
|
|
|
|
|
|
|
| |
conceivably, this mechanism could be used in more cases, for example
on -2 reviews. however, this would need some additional tagging by
the worker script - every WIP is a -2 ...
Change-Id: Ib10777089926164b70dc3b7dd46c2fb526ecf165
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
|
|
|
|
|
|
|
| |
quote it right before building a command line.
Change-Id: I5bd95dbe2fc392b974b730189277a62ae6ae59d5
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
|
|
|
|
|
|
| |
Change-Id: I24fa6b68b66b66e0339fbd593b78f10d805d51f2
GPush-Base: a2b0d053d4200b816cb811338308fb47b3216ad4
Reviewed-by: Sergio Ahumada <sahumada@texla.cl>
|
|
|
|
|
|
| |
Change-Id: Iac47b4480bf427c2524d79484dcf8a9fca22c5a2
Reviewed-by: Simo Fält <simo.falt@digia.com>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
|
|
|
|
|
|
|
|
| |
otherwise dead mainlines accumulate, as for example when we changed
branching schemes.
Change-Id: Ia5bcb90a079dc62c3c848d139cef5f6d6e0ccbba
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
|
|
|
|
|
|
|
| |
the pipe can be read in one swoop.
Change-Id: I72f87996d26663d0203404e77d47e130046845b7
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
|
|
|
|
|
| |
Change-Id: I729dc9f37f604d7a7ed97ddb7395080b3afa3b3e
Reviewed-by: Sergio Ahumada <sahumada@blackberry.com>
|
|
|
|
|
|
| |
Change-Id: Ifdeb8782bcc47730514eca1fb2f2a481c78484c7
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Reviewed-by: Sergio Ahumada <sahumada@blackberry.com>
|
|
|
|
|
|
| |
Change-Id: I83d33248a0f9f17e2d44f841064e5280110c006b
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
|
|
|
|
|
|
|
| |
allows specifying a group to get config data from.
Change-Id: I80e8816e73d4690634fc558390cb3601a255f255
Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
|
|
|
|
|
| |
Change-Id: I670423c6001e2a504df8be80b42ee88566ad3baa
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
|
|
|
|
|
| |
Change-Id: I1cec04e8763c6102b485638058df37d9093ed859
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
|
|
|
|
|
|
|
| |
don't mess with the remote ref string
Change-Id: I30890801a40fc66049e96534ec69c7fe60032085
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
|
|
|
|
|
|
|
|
| |
- don't re-fetch them unless gerrit tells us there was an update
- fetch them together with the change ref
Change-Id: Icf00564ad676cd1b30cd5ab6596df83520d3fa53
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
|
|
|
|
|
|
| |
Change-Id: I69bf891d90a5f1bffea2aee16c46e651207405e3
Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
|
|
|
|
|
|
| |
Change-Id: Idb8eb8fef7511e2bb28db9a22a43e527b5ced6b5
Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
|
|
|
|
|
|
| |
Change-Id: I3c5f79e433631c250e6908a9617ee001cb10f65d
Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
|
|
Change-Id: I67d240094ef78899dd37c71bc2991fefe71c530f
Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
|