[Wikitech-l] Re: Collect telemetry (using WikimediaEvents) for a gadget

2023-11-29 Thread Gergo Tisza
On Mon, Nov 27, 2023 at 7:36 AM psnbaotg via Wikitech-l <
wikitech-l@lists.wikimedia.org> wrote:

> I *know *this can be very disruptive on UX, so I tend to be careful about
> its negative impact on page views. If the gadget can collect telemetry
> data about the prompt's display frequency and user interactions (using
> e.g. WikimediaEvents), I can know about its possible impact.
>
> Is this possible? It would be much appreciated if anybody could provide
> assistance.
>

Possible but quite complex. You need to define a corresponding event schema
and event stream, send data from the gadget to the event stream, and access
the data (or have some access the data) in the analytics cluster. The
documentation we have is not great but you need roughly these steps:
- request a volunteer NDA (or find someone who has one) [1] for hive access
[2]
- define your event schema (e.g. list of user interactions you are going to
log) in the form of a patch to the schemas/event/secondary [3] repository.
See docs [4][5].
- assign a stream to the schema in the main Wikimedia configuration [6]
- from the gadget, log the event using `mw.eventLog.submit( streamName,
eventObject )`. [7]
- ssh into the statistics server [8], authenticate with Kerberos, run hive,
and you can query the data under event_sanitized.

[1] https://wikitech.wikimedia.org/wiki/Volunteer_NDA
[2]
https://wikitech.wikimedia.org/wiki/Analytics/Data_access#ssh_login_to_analytics_client_servers_(AKA_stat_boxes)_with_Hadoop,_Hive,_Presto_access
[3]
https://gerrit.wikimedia.org/r/plugins/gitiles/schemas/event/secondary/+/refs/heads/master
[4]
https://wikitech.wikimedia.org/wiki/Event_Platform/Schemas#Creating_a_new_schema
[5] https://wikitech.wikimedia.org/wiki/Event_Platform/Schemas/Guidelines
[6]
https://wikitech.wikimedia.org/wiki/Metrics_Platform/Creating_An_Instrument#Deployment
[7]
https://www.mediawiki.org/wiki/Extension:EventLogging/Guide#Underlying_technology
[8]
https://wikitech.wikimedia.org/wiki/SRE/Production_access#Setting_up_your_access
___
Wikitech-l mailing list -- wikitech-l@lists.wikimedia.org
To unsubscribe send an email to wikitech-l-le...@lists.wikimedia.org
https://lists.wikimedia.org/postorius/lists/wikitech-l.lists.wikimedia.org/

[Wikitech-l] Re: User style to reduce Gerritbot comments on Phabricator

2023-11-29 Thread Johan Jönsson
Hey Bartosz,

This looks great. Thank you for doing this.

Best,


*Johan Jönsson*Manager, Product Ambassadors
Wikimedia Foundation 


On Wed, Nov 29, 2023 at 10:02 PM Bartosz Dziewoński 
wrote:

> Do your eyes glaze over when trying to make sense of Phabricator tasks
> with a long and troubled history of patches? Do you struggle to find the
> real people in the sea of automated bot comments?
>
> I've made myself a user style to compact the Gerritbot comments on
> Phabricator. You might like it too:
>
> https://userstyles.world/style/13140/wikimedia-phabricator-reduce-gerritbot-comments
>
> (See screenshots and installation instructions there.)
>
> --
> Bartosz Dziewoński
> ___
> Wikitech-l mailing list -- wikitech-l@lists.wikimedia.org
> To unsubscribe send an email to wikitech-l-le...@lists.wikimedia.org
> https://lists.wikimedia.org/postorius/lists/wikitech-l.lists.wikimedia.org/
___
Wikitech-l mailing list -- wikitech-l@lists.wikimedia.org
To unsubscribe send an email to wikitech-l-le...@lists.wikimedia.org
https://lists.wikimedia.org/postorius/lists/wikitech-l.lists.wikimedia.org/

[Wikitech-l] Re: User style to reduce Gerritbot comments on Phabricator

2023-11-29 Thread Zoran Dori
Thank you so much, I managed to install it. It's working nicely, but looks
weird while using Darkreader.
See this screenshot: https://prnt.sc/rZAAB6yKbcBH

Is there some workaround?

чет, 30. нов 2023. у 01:37 Bartosz Dziewoński  је
написао/ла:

> On 2023-11-29 23:20, Zoran Dori wrote:
> > Wow, thank you Bartosz, it looks AMAZING!
> >
> > How we can install it?
>
> Thanks :)
>
> You'll need to install a browser extension (add-on) that allows adding
> user styles, and then add this style to it.
>
> There are button on the page I linked that should somewhat guide you
> through it. The simplest way is to click "Get Stylus", follow the links
> there to your browser's add-ons site, and install it; then come back to
> that page, click "Install" and then confirm it.
>
>
> --
> Bartosz Dziewoński
> ___
> Wikitech-l mailing list -- wikitech-l@lists.wikimedia.org
> To unsubscribe send an email to wikitech-l-le...@lists.wikimedia.org
> https://lists.wikimedia.org/postorius/lists/wikitech-l.lists.wikimedia.org/
___
Wikitech-l mailing list -- wikitech-l@lists.wikimedia.org
To unsubscribe send an email to wikitech-l-le...@lists.wikimedia.org
https://lists.wikimedia.org/postorius/lists/wikitech-l.lists.wikimedia.org/

[Wikitech-l] Re: User style to reduce Gerritbot comments on Phabricator

2023-11-29 Thread Bartosz Dziewoński

On 2023-11-29 23:20, Zoran Dori wrote:

Wow, thank you Bartosz, it looks AMAZING!

How we can install it?


Thanks :)

You'll need to install a browser extension (add-on) that allows adding 
user styles, and then add this style to it.


There are button on the page I linked that should somewhat guide you 
through it. The simplest way is to click "Get Stylus", follow the links 
there to your browser's add-ons site, and install it; then come back to 
that page, click "Install" and then confirm it.



--
Bartosz Dziewoński
___
Wikitech-l mailing list -- wikitech-l@lists.wikimedia.org
To unsubscribe send an email to wikitech-l-le...@lists.wikimedia.org
https://lists.wikimedia.org/postorius/lists/wikitech-l.lists.wikimedia.org/

[Wikitech-l] Re: User style to reduce Gerritbot comments on Phabricator

2023-11-29 Thread Zoran Dori
Wow, thank you Bartosz, it looks AMAZING!

How we can install it?

Best regards,
Zoran

сре, 29. нов 2023. у 22:22 Greg Grossmeier  је
написао/ла:

> Thanks Bartosz!
>
> On Wed, Nov 29, 2023 at 1:02 PM Bartosz Dziewoński 
> wrote:
>
>> Do your eyes glaze over when trying to make sense of Phabricator tasks
>> with a long and troubled history of patches? Do you struggle to find the
>> real people in the sea of automated bot comments?
>>
>> I've made myself a user style to compact the Gerritbot comments on
>> Phabricator. You might like it too:
>>
>> https://userstyles.world/style/13140/wikimedia-phabricator-reduce-gerritbot-comments
>>
>> (See screenshots and installation instructions there.)
>>
>> --
>> Bartosz Dziewoński
>> ___
>> Wikitech-l mailing list -- wikitech-l@lists.wikimedia.org
>> To unsubscribe send an email to wikitech-l-le...@lists.wikimedia.org
>>
>> https://lists.wikimedia.org/postorius/lists/wikitech-l.lists.wikimedia.org/
>
> ___
> Wikitech-l mailing list -- wikitech-l@lists.wikimedia.org
> To unsubscribe send an email to wikitech-l-le...@lists.wikimedia.org
> https://lists.wikimedia.org/postorius/lists/wikitech-l.lists.wikimedia.org/
___
Wikitech-l mailing list -- wikitech-l@lists.wikimedia.org
To unsubscribe send an email to wikitech-l-le...@lists.wikimedia.org
https://lists.wikimedia.org/postorius/lists/wikitech-l.lists.wikimedia.org/

[Wikitech-l] Re: Open question about commit message linter rules and GItLab's merge requests

2023-11-29 Thread Brett Cornwall
I'm quite disappointed in Gitlab for this. I briefly popped in to
#gitlab to make sure that there was no recourse for this. Sadly, it
seems that there is not.

On Tue Nov 28, 2023 at 4:46 PM PST, Bryan Davis wrote:
> [...]
> In my estimation, the problem comes down to a question of whether we
> should prioritize reading commit message footer information nicely in
> GitLab's merge request interface where they are rendered as GitLab
> flavored markdown data or not. James' team has developed a convention
> of appending a backslash (\) after footer lines so that they render as
> individual lines when processed as markdown. This in turn leads to
> commit-message-validator rejecting some footers, most obviously "Bug:
> T" footers, for having unwanted characters (the trailing " \").
>
> Reasonable people can disagree on the "best" solution here, but I
> think it is likely that as a group we can reach consensus on what the
> proper behavior of the commit-message-validator tool should be. The
> most obvious options are:
> * Change nothing in commit-message-validator and suggest folks live
> with markdown rendering artifacts in GitLab merge request
> descriptions.
> * Change commit-message-validator to allow trailing " \" data for
> commit message footers in GitLab repos.
> * Change commit-message-validator to allow users (typically a CI
> process) to configure allow/disallow of trailing " \" data for commit
> message footers

IMO Markdown does not belong in a commit message. Markdown in commit
messages is analogous to HTML in email.

A middleground could be to prefix the Bug: lines with hyphens so Gitlab
would interpret them as a list. :/


signature.asc
Description: PGP signature
___
Wikitech-l mailing list -- wikitech-l@lists.wikimedia.org
To unsubscribe send an email to wikitech-l-le...@lists.wikimedia.org
https://lists.wikimedia.org/postorius/lists/wikitech-l.lists.wikimedia.org/

[Wikitech-l] Re: User style to reduce Gerritbot comments on Phabricator

2023-11-29 Thread Greg Grossmeier
Thanks Bartosz!

On Wed, Nov 29, 2023 at 1:02 PM Bartosz Dziewoński 
wrote:

> Do your eyes glaze over when trying to make sense of Phabricator tasks
> with a long and troubled history of patches? Do you struggle to find the
> real people in the sea of automated bot comments?
>
> I've made myself a user style to compact the Gerritbot comments on
> Phabricator. You might like it too:
>
> https://userstyles.world/style/13140/wikimedia-phabricator-reduce-gerritbot-comments
>
> (See screenshots and installation instructions there.)
>
> --
> Bartosz Dziewoński
> ___
> Wikitech-l mailing list -- wikitech-l@lists.wikimedia.org
> To unsubscribe send an email to wikitech-l-le...@lists.wikimedia.org
> https://lists.wikimedia.org/postorius/lists/wikitech-l.lists.wikimedia.org/
___
Wikitech-l mailing list -- wikitech-l@lists.wikimedia.org
To unsubscribe send an email to wikitech-l-le...@lists.wikimedia.org
https://lists.wikimedia.org/postorius/lists/wikitech-l.lists.wikimedia.org/

[Wikitech-l] User style to reduce Gerritbot comments on Phabricator

2023-11-29 Thread Bartosz Dziewoński
Do your eyes glaze over when trying to make sense of Phabricator tasks 
with a long and troubled history of patches? Do you struggle to find the 
real people in the sea of automated bot comments?


I've made myself a user style to compact the Gerritbot comments on 
Phabricator. You might like it too:

https://userstyles.world/style/13140/wikimedia-phabricator-reduce-gerritbot-comments

(See screenshots and installation instructions there.)

--
Bartosz Dziewoński
___
Wikitech-l mailing list -- wikitech-l@lists.wikimedia.org
To unsubscribe send an email to wikitech-l-le...@lists.wikimedia.org
https://lists.wikimedia.org/postorius/lists/wikitech-l.lists.wikimedia.org/

[Wikitech-l] An Exciting Update on the Coolest Tool Award 

2023-11-29 Thread oonifade
Hi Everyone,

I hope this message finds you well. We would like to inform you about an 
important update regarding the Coolest Tool Awards. The Award[0] was originally 
scheduled to be held virtually in December 2023 but we have made the decision 
to move the award back to where it started -  Wikimania.[1]

We are thrilled to announce that the 2023/2024 Coolest Tool Award will be held 
as a physical and  virtual gathering  at Wikimania in Poland!![2] Wikimania 
scholarships just opened, so apply now for a full or partial scholarship![3]

This change was made to provide a more engaging and interactive experience for 
the winners and all participants, and to ensure that we can celebrate the 
accomplishments of our community members in a more memorable way. We understand 
that this adjustment may impact your plans and schedules, and we apologize for 
any inconvenience this may cause. However, we are confident that this change 
will enhance the overall event and allow for more meaningful interactions among 
the participants, including live demonstrations.

We will be communicating more details about the event in the coming months, 
including, call for nominations, event format, and any other pertinent 
information. We welcome any suggestions or feedback you may have in making our 
return to an in-person award ceremony a better experience. Please do not 
hesitate to reach out to Onyinyechi Onifade at oonif...@wikimedia.org or Seyram 
Komla Sapaty at ssap...@wikimedia.org

We look forward to celebrating our successes together in July 2024. Stay tuned 
for further updates.

Best regards,
Coolest Tool Award Organizing Team

[0]: https://meta.wikimedia.org/wiki/Coolest_Tool_Award
[1]: 
https://wikimania.wikimedia.org/wiki/2019:Technology_outreach_%26_innovation/Coolest_Tool_Award_2019
[2]: 
https://diff.wikimedia.org/2023/03/20/announcing-the-host-of-wikimania-in-2024/
[3]: https://wikimediafoundation.limesurvey.net/654573
___
Wikitech-l mailing list -- wikitech-l@lists.wikimedia.org
To unsubscribe send an email to wikitech-l-le...@lists.wikimedia.org
https://lists.wikimedia.org/postorius/lists/wikitech-l.lists.wikimedia.org/

[Wikitech-l] Re: PhpStorm + PHPUnit Integration Tests

2023-11-29 Thread Siddharth VP
Yes. See https://www.mediawiki.org/wiki/JetBrains_IDEs#Running_unit_tests.

On Wed, 29 Nov 2023 at 20:02, Daniel Riedmueller via Wikitech-l <
wikitech-l@lists.wikimedia.org> wrote:

> Hello!
>
> Did someone successfully configured PhpStorm to run integration tests in
> the GUI?
>
> To make integration tests work,
>
> tests/phpunit/phpunit.php
>
> has to be used. But that seems not possible to integrate with PhpStorm.
>
> Many regards,
> Daniel Riedmüller
>
>
> ___
> Wikitech-l mailing list -- wikitech-l@lists.wikimedia.org
> To unsubscribe send an email to wikitech-l-le...@lists.wikimedia.org
> https://lists.wikimedia.org/postorius/lists/wikitech-l.lists.wikimedia.org/
>
___
Wikitech-l mailing list -- wikitech-l@lists.wikimedia.org
To unsubscribe send an email to wikitech-l-le...@lists.wikimedia.org
https://lists.wikimedia.org/postorius/lists/wikitech-l.lists.wikimedia.org/

[Wikitech-l] Re: PhpStorm + PHPUnit Integration Tests

2023-11-29 Thread Lucas Werkmeister
For me this has mostly worked (except for tests that access the service
container in data providers, which is discouraged anyway
) for a few months now –
probably since Daimona’s work on phpunit:entrypoint
.
(I didn’t have to do any special IDE configuration, it Just Worked™ for
me.) Are you using the master branch or some released version of MediaWiki?

(I’m using IntelliJ IDEA Ultimate, but I assume PHPStorm should work very
similarly.)


Am Mi., 29. Nov. 2023 um 15:32 Uhr schrieb Daniel Riedmueller via
Wikitech-l :

> Hello!
>
> Did someone successfully configured PhpStorm to run integration tests in
> the GUI?
>
> To make integration tests work,
>
> tests/phpunit/phpunit.php
>
> has to be used. But that seems not possible to integrate with PhpStorm.
>
> Many regards,
> Daniel Riedmüller
>
>
> ___
> Wikitech-l mailing list -- wikitech-l@lists.wikimedia.org
> To unsubscribe send an email to wikitech-l-le...@lists.wikimedia.org
> https://lists.wikimedia.org/postorius/lists/wikitech-l.lists.wikimedia.org/
>


-- 
Lucas Werkmeister (he/er)
Software Engineer

Wikimedia Deutschland e. V. | Tempelhofer Ufer 23-24 | 10963 Berlin
Phone: +49 (0)30-577 11 62-0
https://wikimedia.de

Imagine a world in which every single human being can freely share in the
sum of all knowledge. Help us to achieve our vision!
https://spenden.wikimedia.de

Wikimedia Deutschland — Gesellschaft zur Förderung Freien Wissens e. V.
Eingetragen im Vereinsregister des Amtsgerichts Charlottenburg, VR 23855 B.
Als gemeinnützig anerkannt durch das Finanzamt für Körperschaften I Berlin,
Steuernummer 27/029/42207.
___
Wikitech-l mailing list -- wikitech-l@lists.wikimedia.org
To unsubscribe send an email to wikitech-l-le...@lists.wikimedia.org
https://lists.wikimedia.org/postorius/lists/wikitech-l.lists.wikimedia.org/

[Wikitech-l] PhpStorm + PHPUnit Integration Tests

2023-11-29 Thread Daniel Riedmueller via Wikitech-l
Hello!

Did someone successfully configured PhpStorm to run integration tests in the 
GUI?

To make integration tests work,

tests/phpunit/phpunit.php

has to be used. But that seems not possible to integrate with PhpStorm.

Many regards,
Daniel Riedmüller

___
Wikitech-l mailing list -- wikitech-l@lists.wikimedia.org
To unsubscribe send an email to wikitech-l-le...@lists.wikimedia.org
https://lists.wikimedia.org/postorius/lists/wikitech-l.lists.wikimedia.org/