Page MenuHomePhabricator

Automate generation of SAL messages for Wikispeech
Open, Needs TriagePublic2 Estimated Story Points

Description

To log a message with SAL:

  1. Go to IRC channel #wikimedia-labs
  2. Post a message of the form !log wikispeech <message>
  3. In <message> you can refer to:
    • a gerrit commit using the 7 character version of its hash (e.g. 46f0ef0)
      • the long version of the hash also works
    • a phabricator ticket using its task number (e.g. T144156)
    • as these are often connected the standard format used is something like !log wikispeech Deploy latest from Git master: 46f0ef0 (T144156)

What would be nice are auto-generated messages for whenever we update from vagrant. It should be possible to reuse the structure used in heritage to do this.

Event Timeline

Known differences to heritage:

  • We do not use "become", hence whoami will not work
  • We use vagrant git-update instead of git pull so might have to also change the message parser.
Lokal_Profil renamed this task from Automate generation of SAL messages to Automate generation of SAL messages for Wikispeech.Feb 7 2017, 1:59 PM
Lokal_Profil moved this task from Incoming to Backlog on the Wikispeech board.
Lokal_Profil moved this task from Backlog to Enhancements on the Wikispeech-WMSE board.
Lokal_Profil added a subscriber: Sebastian_Berlin-WMSE.
Lokal_Profil set the point value for this task to 2.

Put a copy of P9323 in /usr/locale/bin/ on the wikispeech-wiki server. That works fine for skipping the IRC step (https://tools.wmflabs.org/sal/wikispeech?d=2019-11-21)

See discussion in P9323 for the issue about the sender being incorrect.

Less sure about where to put deploy_message_from_git_log.py (with gerrit:542208 applied) used to generate the message for dologmsg. @Sebastian_Berlin-WMSE any thoughts?

Per suggestion. Also /user/locale/bin/

I got this error message trying to run dologmsg:

/usr/local/bin/dologmsg: connect: No route to host
/usr/local/bin/dologmsg: line 21: /dev/tcp/wm-bot2.wm-bot.eqiad.wmflabs/64834: No route to host

I got this error message trying to run dologmsg:

/usr/local/bin/dologmsg: connect: No route to host
/usr/local/bin/dologmsg: line 21: /dev/tcp/wm-bot2.wm-bot.eqiad.wmflabs/64834: No route to host

Should be updated to /dev/tcp/wm-bot.wm-bot.wmcloud.org/64834 per what is on toolforge

Mentioned in SAL (#wikimedia-cloud) [2020-03-09T13:16:40Z] <wm-bot> <lokal-profil> Update dologmsg script to new server name (T157439)

Left to do is:

  • Something like deploy-to-toollabs.sh mentioned above (with caveats from previous comments)
  • Cron job to do the same automatically(?)