Hello,
I have deployed a change to Gerrit which makes it display the ongoing CI/Zuul build if there is any.
If Jenkins jobs are running, you would see below the commit message some gray chipset with the name of the Zuul pipeline (test, gate-and-submit ..). The Check tab shows the jobs details (https://phabricator.wikimedia.org/F36925186).
By exposing the Zuul CI status directly in the Gerrit web UI, people will notice a build error earlier. That also saves the hassle of having to monitor https://integration.wikimedia.org/zuul/.
There are a few glitches:
* the way I have implemented it abuses the model proposed by Gerrit and in progress jobs are always considered a SUCCESS but will be marked as ERROR when they fail. * code is entirely running in the client browser. It is unable to send notifications or triggers any email when a build has failed. The EarlyWarning bot by Kosta Harlan https://phabricator.wikimedia.org/J302 does it though) * I am not a JavaScript developer per see but learned about TypeScript for static analysis and rediscovered QUnit. So at least there are some basic guarantees. * there are surely a bunch of edge cases that I have not properly handled
The code for those that are curious is at https://gerrit.wikimedia.org/g/operations/software/gerrit/+/refs/heads/deplo...
If you see problems, JavaScript errors etc please paste them on https://phabricator.wikimedia.org/T214068 :)
Antoine "hashar" Musso
Hello, this looks promising. Good job!
Best regards, Zoran
пет, 24. мар 2023. у 07:20 Antoine Musso hashar@free.fr је написао/ла:
Hello,
I have deployed a change to Gerrit which makes it display the ongoing CI/Zuul build if there is any.
If Jenkins jobs are running, you would see below the commit message some gray chipset with the name of the Zuul pipeline (test, gate-and-submit ..). The Check tab shows the jobs details ( https://phabricator.wikimedia.org/F36925186).
By exposing the Zuul CI status directly in the Gerrit web UI, people will notice a build error earlier. That also saves the hassle of having to monitor https://integration.wikimedia.org/zuul/.
There are a few glitches:
- the way I have implemented it abuses the model proposed by Gerrit
and in progress jobs are always considered a SUCCESS but will be marked as ERROR when they fail.
- code is entirely running in the client browser. It is unable to send
notifications or triggers any email when a build has failed. The EarlyWarning bot by Kosta Harlan https://phabricator.wikimedia.org/J302 does it though)
- I am not a JavaScript developer per see but learned about TypeScript
for static analysis and rediscovered QUnit. So at least there are some basic guarantees.
- there are surely a bunch of edge cases that I have not properly
handled
The code for those that are curious is at https://gerrit.wikimedia.org/g/operations/software/gerrit/+/refs/heads/deplo...
If you see problems, JavaScript errors etc please paste them on https://phabricator.wikimedia.org/T214068 :)
Antoine "hashar" Musso
Wikitech-l mailing list -- wikitech-l@lists.wikimedia.org To unsubscribe send an email to wikitech-l-leave@lists.wikimedia.org https://lists.wikimedia.org/postorius/lists/wikitech-l.lists.wikimedia.org/
Hi Antoine.
This is great! I just spotted the little grey chip for the first time and it's really handy to know about currently running jobs. Many thanks indeed.
Kind regards, Ben
On 24/03/2023 06:20, Antoine Musso wrote:
I have deployed a change to Gerrit which makes it display the ongoing CI/Zuul build if there is any.
If Jenkins jobs are running, you would see below the commit message some gray chipset with the name of the Zuul pipeline (test, gate-and-submit ..).
wikitech-l@lists.wikimedia.org