Page MenuHomePhabricator

bd808 (Bryan Davis)
Principal Software EngineerAdministrator

Today

  • Clear sailing ahead.

Tomorrow

  • Clear sailing ahead.

Sunday

  • Clear sailing ahead.

User Details

User Since
Oct 3 2014, 2:36 PM (499 w, 1 h)
Roles
Administrator
Availability
Available
IRC Nick
bd808
LDAP User
BryanDavis
MediaWiki User
BDavis (WMF) [ Global Accounts ]

I'm BDavis (WMF) on wiki, bd808 on irc & GitLab, and BryanDavis on Gerrit & Wikitech.

I've got a thing for 🦄s. Don't judge.

I work for or provide services to the Wikimedia Foundation, but this is my only Phabricator account. Edits, statements, or other contributions made from this account are my own, and may not reflect the views of the Foundation.

Recent Activity

Today

Titore awarded T305487: Bridgebot freaks out and sends double messages from IRC to Telegram a Yellow Medal token.
Fri, Apr 26, 10:20 AM · User-bd808, Upstream, Tool-bridgebot
bd808 added a comment to T305487: Bridgebot freaks out and sends double messages from IRC to Telegram.
[02:04]  wm-bb (~wm-bridge@wikimedia/bot/wm-bridgebot) left IRC (Quit: Bouncer quit)
[02:04]  wm-bb (~wm-bridge@wikimedia/bot/wm-bridgebot) joined the channel
[02:04] ChanServ sets mode +v wm-bb
[02:05]  <    bd808> I just cycled wm-bb connection. Double messages to telegram now or ?
[02:06]  <    wm-bb> <bd808> omg! single message
Fri, Apr 26, 2:07 AM · User-bd808, Upstream, Tool-bridgebot

Yesterday

bd808 closed T363028: Replace custom deployment with build service and job service as Resolved.

I will also make a new task about trying to find a linter to validate the toml files to add to CI.

T363529: Add toml linter for config files

Thu, Apr 25, 11:29 PM · User-bd808, Tool-bridgebot
bd808 closed T363028: Replace custom deployment with build service and job service, a subtask of T305487: Bridgebot freaks out and sends double messages from IRC to Telegram, as Resolved.
Thu, Apr 25, 11:28 PM · User-bd808, Upstream, Tool-bridgebot
bd808 added a comment to T363028: Replace custom deployment with build service and job service.

Such doc updates! Much wow! https://wikitech.wikimedia.org/w/index.php?title=Tool%3ABridgebot&diff=2172216&oldid=2169061

Thu, Apr 25, 11:25 PM · User-bd808, Tool-bridgebot
bd808 closed T353559: Figure out how to deploy ZNC using buildpacks as Resolved.
Thu, Apr 25, 9:51 PM · User-bd808, Tool-bridgebot
bd808 added a comment to T353559: Figure out how to deploy ZNC using buildpacks.

This work actually got done as part of T357729: wikibugs having a hard time staying connected to libera.chat IRC network. https://gitlab.wikimedia.org/toolforge-repos/wikibugs2-znc is now being used by Bridgebot as well.

Thu, Apr 25, 9:51 PM · User-bd808, Tool-bridgebot
bd808 added a parent task for T353559: Figure out how to deploy ZNC using buildpacks: T363028: Replace custom deployment with build service and job service.
Thu, Apr 25, 9:50 PM · User-bd808, Tool-bridgebot
bd808 added a subtask for T363028: Replace custom deployment with build service and job service: T353559: Figure out how to deploy ZNC using buildpacks.
Thu, Apr 25, 9:50 PM · User-bd808, Tool-bridgebot
bd808 created T363529: Add toml linter for config files.
Thu, Apr 25, 9:46 PM · Tool-bridgebot
bd808 added a comment to T363028: Replace custom deployment with build service and job service.

The main problem in the deploy was that there was a cut-and-paste error in the bridgebot.toml config file. Once that was spotted and fixed things came up as hoped.

Thu, Apr 25, 9:45 PM · User-bd808, Tool-bridgebot
bd808 renamed T363452: Striker/Horizon are running in Blubber built containers with a runtime UID that does not exist on the host machine from Striker/Horizon are running with a non-existing user to Striker/Horizon are running in Blubber built containers with a runtime UID that does not exist on the host machine.
Thu, Apr 25, 8:52 PM · Horizon, Striker, cloud-services-team
bd808 added a comment to T363296: toolforge: explore options to introduce egress network quotas.

in your opinion, should we decline this task and focus on the other angle you mention?

Thu, Apr 25, 6:50 PM · User-aborrero, cloud-services-team, Toolforge
bd808 added a comment to T363028: Replace custom deployment with build service and job service.

The code and config are ready to try switching everything over. I don't want to do this in my evening however due to the possibility of exciting new failure modes cropping up after running for a little while.

Thu, Apr 25, 3:22 AM · User-bd808, Tool-bridgebot

Wed, Apr 24

bd808 added a comment to T363028: Replace custom deployment with build service and job service.

I have seen one crash on startup in testing but it was not repeatable. It looks like it was triggered by something the irc client saw in scrollback when attaching:

[0005] DEBUG irc:          (/layers/heroku_go/go_deps/cache/gitlab.wikimedia.org
/toolforge-repos/bridgebot-matterbridge@v0.0.0-20240424042617-38c64944bf1d/bridge/irc/handlers.go:117: github.com/42wim/matterbridge/bridge/irc.(*Birc).handleJoinPart) handle girc.Event{Source:(*girc.Source)(0xc0001f5fb0), Tags:girc.Tags{"time":"2024-04-24T23:19:17.667Z"}, Timestamp:time.Date(2024, time.April, 24, 23, 19, 17, 667000000, time.Local), Command:"JOIN", Params:[]string{"#wikimedia-cloud"}, Sensitive:false, Echo:false}
panic: runtime error: invalid memory address or nil pointer dereference         
[signal SIGSEGV: segmentation violation code=0x1 addr=0x28 pc=0xb36c66]
Wed, Apr 24, 11:31 PM · User-bd808, Tool-bridgebot
bd808 added a comment to T363290: Gerrit reviewer bot should add reviewers as CC instead of actual reviewers.

I feel like people mostly use it for notifications, and don't intend to actually review all changes they signed up for.

Wed, Apr 24, 10:46 PM · Wikimedia-Hackathon-2024, Gerrit, Tools
bd808 added a comment to T363417: Golang and Procfile buildpacks not working together as expected.

Adding tiny shell wrappers for the Procfile to call seems to work around the issue.

Wed, Apr 24, 9:57 PM · Toolforge
bd808 added a comment to T363028: Replace custom deployment with build service and job service.
$ ssh login.toolforge.org
$ become bridgebot
$ webservice buildservice shell --mount all -m 2G -c 1
$ /layers/heroku_go/go_target/bin/bridgebot -conf /app/etc/testing.toml
[0000]  INFO router:       (/layers/heroku_go/go_deps/cache/gitlab.wikimedia.org/toolforge-repos/bridgebot-matterbridge@v0.0.0-20240424042617-38c64944bf1d/gateway/router.go:66: github.com/42wim/matterbridge/gateway.(*Router).Start) Parsing gateway testing-irc-telegram
[0000]  INFO router:       (/layers/heroku_go/go_deps/cache/gitlab.wikimedia.org/toolforge-repos/bridgebot-matterbridge@v0.0.0-20240424042617-38c64944bf1d/gateway/router.go:75: github.com/42wim/matterbridge/gateway.(*Router).Start) Starting bridge: irc.testing
...
[21:07]  <    wm-bb> Does it work now?
[21:07]  <    bd808> omg, it did work!

Screenshot 2024-04-24 at 15.18.48.png (208×1 px, 45 KB)

The only thing that didn't seem to work is loading the remotenickformat.tengo script which I assumed was searched for relative to the config file. It looks like it is loaded relative to cwd instead so I will need to update a bit of config.

Wed, Apr 24, 9:27 PM · User-bd808, Tool-bridgebot
bd808 added a comment to T363417: Golang and Procfile buildpacks not working together as expected.

We are a few versions behind on https://github.com/heroku/buildpacks-go, but I don't see anything in the commits or CHANGELOG that looks directly Procfile related. The latest tagged release also may not be compatible with pack (https://github.com/heroku/buildpacks-go/commit/111bb19806bb838c457ef1778a30487dc50f1cb0).

Wed, Apr 24, 9:16 PM · Toolforge
bd808 created T363417: Golang and Procfile buildpacks not working together as expected.
Wed, Apr 24, 9:11 PM · Toolforge
bd808 changed the status of T363028: Replace custom deployment with build service and job service from Open to In Progress.
Wed, Apr 24, 4:40 PM · User-bd808, Tool-bridgebot
bd808 added a parent task for T363028: Replace custom deployment with build service and job service: T305487: Bridgebot freaks out and sends double messages from IRC to Telegram.
Wed, Apr 24, 4:40 PM · User-bd808, Tool-bridgebot
bd808 added a subtask for T305487: Bridgebot freaks out and sends double messages from IRC to Telegram: T363028: Replace custom deployment with build service and job service.
Wed, Apr 24, 4:40 PM · User-bd808, Upstream, Tool-bridgebot
bd808 added a comment to T363296: toolforge: explore options to introduce egress network quotas.

I love the idea of attempting to create a more equitable resource distribution for networking in Toolforge. I'm not sure yet however how this would actually work as hoped in practice unless there was deep integration with the Kubernetes scheduler.

Wed, Apr 24, 4:23 PM · User-aborrero, cloud-services-team, Toolforge
bd808 added a comment to T329327: Frequent `429 Client Error: Too Many Requests for url: https://stream.wikimedia.org/v2/stream/recentchange` errors in SULWatcher.

I confirm this is not the case. The destination address of stream.wikimedia.org, as seen from within Toolforge, is exempt from the egress NAT on Cloud VPS. This means EventStreams gets to see the source IP address of the Toolforge kubernetes worker node.

However, there could be multiple pods within the same Toolforge k8s worker node connecting to the same endpoint, thus consuming the available slots.

This already happened, see T363296: toolforge: explore options to introduce egress network quotas.

Wed, Apr 24, 4:11 PM · Toolforge, Tools, EventStreams, Data-Engineering, Event-Platform, stewardbots

Tue, Apr 23

bd808 added projects to T329327: Frequent `429 Client Error: Too Many Requests for url: https://stream.wikimedia.org/v2/stream/recentchange` errors in SULWatcher: Tools, Toolforge.
Tue, Apr 23, 10:44 PM · Toolforge, Tools, EventStreams, Data-Engineering, Event-Platform, stewardbots
bd808 updated subscribers of T329327: Frequent `429 Client Error: Too Many Requests for url: https://stream.wikimedia.org/v2/stream/recentchange` errors in SULWatcher.

This happpens when an IP opens up too many simultaneous connections to the service. The client IP is passed on to the eventstreams service from the Varnish frontend http servers, and then a running count of connections per eventstreams application instance is kept. If too many connections are made to that application instance, a 429 is returned. The current limit is connections 2 per application instance, of which there are 8 in each DC. So you should be able to open a total of 16 connections from your IP to a single DC (you will be routed to one of the two automatically based on your location). If you get this error, and are opening fewer than 16 connections, I'd expect a reconnect to route eventually route you to an application instance where you have fewer than 2 connections open.

I suppose, the more connections you have open at once, the more likely this is to happen.

Tue, Apr 23, 10:44 PM · Toolforge, Tools, EventStreams, Data-Engineering, Event-Platform, stewardbots
bd808 added a comment to T363033: [builds-builder] Support using custom buildpacks.

Adding a buildpack like https://github.com/kr/heroku-buildpack-inline to our stack might be an interesting way to implement this feature request. That solution would not readily support the use cases that use an existing buildpack, but it would provide tool maintainers with maximum flexibility with minimal overhead for building their own tools.

Tue, Apr 23, 3:28 AM · Toolforge
bd808 closed T363114: Is the Phabricator webhook sink broken? as Resolved.

Sorry for the mess @taavi. Thank you for noticing the problem and reporting it.

Tue, Apr 23, 2:06 AM · User-bd808, GitLab (Integrations)
bd808 added a comment to T363114: Is the Phabricator webhook sink broken?.
reprocess.py
import logging
logging.basicConfig(level=logging.DEBUG)
logging.captureWarnings(True)
Tue, Apr 23, 2:04 AM · User-bd808, GitLab (Integrations)
bd808 added a comment to T363028: Replace custom deployment with build service and job service.

I recently learned that matterbridge uses the https://github.com/spf13/viper library and its AutomaticEnv feature when processing the config file. This allows envvars like MATTERBRIDGE_IRC_LIBERA_BRIDGEBOT_PASSWORD to be used to set secret values at runtime. This is hoped to make conversion to a custom container image a bit simpler by removing the need for a custom interpolation system for the config file.

Tue, Apr 23, 1:14 AM · User-bd808, Tool-bridgebot
bd808 added a comment to T363114: Is the Phabricator webhook sink broken?.

https://gitlab.wikimedia.org/repos/releng/gitlab-webhooks/-/merge_requests/29 looks to have fixed the unintended regression.

Tue, Apr 23, 12:32 AM · User-bd808, GitLab (Integrations)

Mon, Apr 22

bd808 added a comment to T363114: Is the Phabricator webhook sink broken?.

I can assert that webhook inputs were received by the running tool for both https://gitlab.wikimedia.org/repos/ci-tools/banana-checker/-/merge_requests/10 and https://gitlab.wikimedia.org/repos/ci-tools/libup/-/merge_requests/37

Mon, Apr 22, 5:15 PM · User-bd808, GitLab (Integrations)
bd808 claimed T363114: Is the Phabricator webhook sink broken?.
Mon, Apr 22, 5:01 PM · User-bd808, GitLab (Integrations)
bd808 created T363114: Is the Phabricator webhook sink broken?.
Mon, Apr 22, 5:01 PM · User-bd808, GitLab (Integrations)
bd808 closed T363092: Account recovery help needed for Developer account RLuts as Resolved.
$ sudo ls -lh /home/rluts/2fa-reset-request.txt
-rw------- 1 rluts wikidev 42 Apr 22 11:57 /home/rluts/2fa-reset-request.txt
$ sudo cat /home/rluts/2fa-reset-request.txt
https://phabricator.wikimedia.org/T363092
$ mwscript extensions/OATHAuth/maintenance/disableOATHAuthForUser.php --wiki=labswiki 'RLuts'
Two-factor authentication disabled for RLuts.
Mon, Apr 22, 4:29 PM · User-bd808, wikitech.wikimedia.org, Trust-and-Safety, cloud-services-team
bd808 added a comment to T362958: Buildservice "network is unreachable" error.

The root problem here seems to be:

[step-build] 2024-04-19T08:31:50.877313171Z          Cannot initiate the connection to archive.ubuntu.com:80 (2620:2d:4000:1::19). - connect (101: Network is unreachable)

For currently unexplained reasons, the DNS resolver used by the builder process resolved archive.ubuntu.com to an IPv6 address. The network in Cloud VPS & Toolforge is IPv4 only, so this in turn led to nothing working.

Mon, Apr 22, 12:15 AM · Toolforge
bd808 edited projects for T362958: Buildservice "network is unreachable" error, added: Toolforge; removed Toolforge Build Service.
Mon, Apr 22, 12:09 AM · Toolforge

Sun, Apr 21

bd808 added a comment to T362940: Automate setup of comment, pipeline, and job webhooks for all GitLab projects .

I guess my other thought about a home for this is that it could live in gitlab-settings/configure-projects - a script which really does very little, and could be a lot smarter about what it does do, but does already iterate over projects and change some settings.

Sun, Apr 21, 10:15 PM · Wikibugs, GitLab (Integrations)

Fri, Apr 19

bd808 created T363033: [builds-builder] Support using custom buildpacks.
Fri, Apr 19, 11:50 PM · Toolforge
bd808 closed T75771: Inform developer community of potential librarization projects as Declined.
Fri, Apr 19, 11:32 PM · Developer-notice, Librarization
bd808 closed T226537: Follow up on past WMCS #wikimedia-incident tasks as Declined.

There aren't any open tasks in the search, so somehow this came to fruition.

Fri, Apr 19, 11:29 PM · cloud-services-team, Epic
bd808 added a comment to T241807: Investigate replacing lighttpd with nginx in Toolforge.

Build service probably makes this investigation and implementation obsolete in that we are actively directing folks away from the shared containers and towards building their own.

Fri, Apr 19, 11:27 PM · cloud-services-team, Toolforge
bd808 added a comment to T329798: Secret storage for CI jobs.

GitLab EE has mechanisms for jobs to authenticate to a Hashicorp Vault service and fetch secrets. It is not completely clear from reading https://docs.gitlab.com/ee/ci/secrets/ if there is really any support for this in CE or not.

Fri, Apr 19, 11:23 PM · GitLab (CI & Job Runners)
bd808 renamed T363027: [builds-builder] Support adding repositories for Apt buildpack from [builds] Support adding repositories for Apt buildpack to [builds-builder] Support adding repositories for Apt buildpack.
Fri, Apr 19, 11:11 PM · Toolforge
bd808 updated subscribers of T363027: [builds-builder] Support adding repositories for Apt buildpack.

One concrete use case for this feature would be installing toolforge-*-cli packages in a buildservice managed container. This is an idea that @Anomie and I have discussed as a potential partial solution for T356377: [toolforge] simplify calling the different toolforge apis from within the containers / T321919: Figure out and document how to call the Kubernetes API as your tool user from inside a pod.

Fri, Apr 19, 10:47 PM · Toolforge
bd808 created T363028: Replace custom deployment with build service and job service.
Fri, Apr 19, 10:43 PM · User-bd808, Tool-bridgebot
bd808 created T363027: [builds-builder] Support adding repositories for Apt buildpack.
Fri, Apr 19, 10:31 PM · Toolforge

Thu, Apr 18

bd808 triaged T362940: Automate setup of comment, pipeline, and job webhooks for all GitLab projects as Medium priority.
Thu, Apr 18, 10:37 PM · Wikibugs, GitLab (Integrations)
bd808 created T362940: Automate setup of comment, pipeline, and job webhooks for all GitLab projects .
Thu, Apr 18, 10:36 PM · Wikibugs, GitLab (Integrations)
bd808 closed T362288: [gitlab-webhooks] Provide a server-sent events API for rebroadcast of GitLab webhook data as Resolved.

Play around with it via curl --no-buffer -H 'Accept: text/event-stream' 'https://gitlab-webhooks.toolforge.org/sse/'

Thu, Apr 18, 10:28 PM · User-bd808, GitLab (Integrations)
bd808 closed T362288: [gitlab-webhooks] Provide a server-sent events API for rebroadcast of GitLab webhook data, a subtask of T288381: Connect WikiBugs IRC bot to Wikimedia GitLab, as Resolved.
Thu, Apr 18, 10:28 PM · User-bd808, Release-Engineering-Team (Priority Backlog 📥), GitLab (Integrations), Wikibugs
bd808 added a comment to T362909: Diffusion mirrors of GitLab repos failing to be created by Striker.

@bd808: Does this error still appear after 2024-04-16 15:30UTC? If not, then this is likely a duplicate of T355644 (which reverted T352530 which I ideally would have never merged but lots of undocumented custom changes make it hard to foresee unwanted breakage).

Thu, Apr 18, 7:34 PM · Phabricator, Striker
bd808 renamed T362889: Tool created following initial name validation failure is missing toolinfo record and having other problems with GitLab repositories from [striker] error when creating tool to Tool created following initial name validation failure is missing toolinfo record and having other problems with GitLab repositories.
Thu, Apr 18, 5:35 PM · Striker
bd808 added a parent task for T317345: Mirror Striker managed GitLab repos in Diffusion: T362909: Diffusion mirrors of GitLab repos failing to be created by Striker.
Thu, Apr 18, 5:32 PM · User-bd808, Striker
bd808 added a subtask for T362909: Diffusion mirrors of GitLab repos failing to be created by Striker: T317345: Mirror Striker managed GitLab repos in Diffusion.
Thu, Apr 18, 5:32 PM · Phabricator, Striker
bd808 added a comment to T362909: Diffusion mirrors of GitLab repos failing to be created by Striker.

I was able to create R3385 bd808-testing-T362909 via the Phabricator UI. Is it only the Conduit API that is failing? Are the failures intermittent?

Thu, Apr 18, 5:12 PM · Phabricator, Striker
bd808 created T362909: Diffusion mirrors of GitLab repos failing to be created by Striker.
Thu, Apr 18, 5:03 PM · Phabricator, Striker
bd808 updated subscribers of T362313: Archive Phabricator project tags for disabled tools.

This is basically a missing integration with the system that @Andrew built for T170355: Figure out process for deleting an unused tool (wikitech docs). There is also nothing currently deleting or otherwise marking GitLab projects and their associated Diffusion mirrors as abandoned or archived when the tool that created them is deleted.

Thu, Apr 18, 4:50 PM · Striker
bd808 added a comment to T362889: Tool created following initial name validation failure is missing toolinfo record and having other problems with GitLab repositories.

The tool in question is https://toolsadmin.wikimedia.org/tools/id/api-docs. Things are definitely goofy here with there being no toolinfo record. There are several related log events in logstash, and they seem to start with this error that seems to echo the name validation failure.

Traceback (most recent call last):
  File "/srv/app/striker/tools/views/tool.py", line 83, in create
    tool = utils.create_tool(form.cleaned_data["name"], req.user)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/app/striker/tools/utils.py", line 86, in create_tool
    sudoers.save()
  File "/opt/lib/poetry/striker-2uZo5AhP-py3.11/lib/python3.11/site-packages/django/db/models/base.py", line 743, in save
    self.save_base(using=using, force_insert=force_insert,
  File "/opt/lib/poetry/striker-2uZo5AhP-py3.11/lib/python3.11/site-packages/django/db/models/base.py", line 780, in save_base
    updated = self._save_table(
              ^^^^^^^^^^^^^^^^^
  File "/opt/lib/poetry/striker-2uZo5AhP-py3.11/lib/python3.11/site-packages/ldapdb/models/base.py", line 120, in _save_table
    connection.add_s(new_dn, new_values)
  File "/opt/lib/poetry/striker-2uZo5AhP-py3.11/lib/python3.11/site-packages/ldapdb/backends/ldap/base.py", line 317, in add_s
    return cursor.connection.add_s(dn, modlist)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/lib/poetry/striker-2uZo5AhP-py3.11/lib/python3.11/site-packages/ldap/ldapobject.py", line 236, in add_s
    return self.add_ext_s(dn,modlist,None,None)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/lib/poetry/striker-2uZo5AhP-py3.11/lib/python3.11/site-packages/ldap/ldapobject.py", line 1012, in add_ext_s
    return self._apply_method_s(SimpleLDAPObject.add_ext_s,*args,**kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/lib/poetry/striker-2uZo5AhP-py3.11/lib/python3.11/site-packages/ldap/ldapobject.py", line 972, in _apply_method_s
    return func(self,*args,**kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/lib/poetry/striker-2uZo5AhP-py3.11/lib/python3.11/site-packages/ldap/ldapobject.py", line 222, in add_ext_s
    resp_type, resp_data, resp_msgid, resp_ctrls = self.result3(msgid,all=1,timeout=self.timeout)
                                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/lib/poetry/striker-2uZo5AhP-py3.11/lib/python3.11/site-packages/ldap/ldapobject.py", line 543, in result3
    resp_type, resp_data, resp_msgid, decoded_resp_ctrls, retoid, retval = self.result4(
                                                                           ^^^^^^^^^^^^^
  File "/opt/lib/poetry/striker-2uZo5AhP-py3.11/lib/python3.11/site-packages/ldap/ldapobject.py", line 553, in result4
    ldap_result = self._ldap_call(self._l.result4,msgid,all,timeout,add_ctrls,add_intermediates,add_extop)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/lib/poetry/striker-2uZo5AhP-py3.11/lib/python3.11/site-packages/ldap/ldapobject.py", line 128, in _ldap_call
    result = func(*args,**kwargs)
             ^^^^^^^^^^^^^^^^^^^^
ldap.ALREADY_EXISTS: {'msgtype': 105, 'msgid': 17, 'result': 68, 'desc': 'Already exists', 'ctrls': []}
Thu, Apr 18, 4:42 PM · Striker
bd808 updated the task description for T205856: Retire udp2log: onboard its producers and consumers to the logging pipeline.
Thu, Apr 18, 4:04 PM · Data-Engineering-Icebox, Observability-Logging, observability, Analytics-Radar, Wikimedia-Logstash, SRE
bd808 closed T362899: Wikimedia Cloud Services Wiki Replicas replication lag in wikidata as Declined.

Current lag is very likely caused by T352010: Gradually drop old pagelinks columns as shown on https://wikitech.wikimedia.org/wiki/Map_of_database_maintenance which is linked to by https://replag.toolforge.org/ prominently.

Thu, Apr 18, 3:23 PM · Data-Services

Wed, Apr 17

bd808 created T362836: Provide a simple list of the built container images for a given tool (`toolforge build list` subset).
Wed, Apr 17, 11:14 PM · Toolforge
bd808 added a comment to T362834: [builds-builder] Add support for specifying multiple buildpacks to run against a repo.

As explained briefly in the irc snippet, I have a use case where Tool-bridgebot uses a 3rd party golang component (matterbridge) which expects to read configuration from a static file. I want to move this tool from a legacy hand built deployment to a modern stack of a toolforge jobs managed deployment using a toolforge build generated image. To do so I need to replace the current chmod 0600 config file in the tool's $HOME with configuration that uses toolforge envvars for transmitting secrets into the running container.

Wed, Apr 17, 10:44 PM · Toolforge
bd808 created T362834: [builds-builder] Add support for specifying multiple buildpacks to run against a repo.
Wed, Apr 17, 10:43 PM · Toolforge
bd808 added a comment to T360488: Missing Perl packages on dev.toolforge.org for anomiebot workflows.

Dropping this into the "needs discussion" column for cloud-services-team as a blocker to decommissioning the remaining Buster bastions.

I see that, despite this, the main bastion at login.toolforge.org has been "updated" today and my scripts are now broken. 🙁

Wed, Apr 17, 10:12 PM · cloud-services-team, Toolforge (Software install/update)
bd808 closed T169695: Run non-interactive commands on Toolforge kubernetes webservices as Resolved.

https://wikitech.wikimedia.org/wiki/Help:Toolforge/Jobs_framework does this work now.

Wed, Apr 17, 10:08 PM · User-bd808, Toolforge

Tue, Apr 16

bd808 added a comment to T360353: Hashar does not like grey foreground color for distinguishing closed status events .

I'm not the biggest fan of the strike though as it makes the text harder to read (probably worse than the grey, but that might be a personal preference, at least with formatting in the lounge).

Tue, Apr 16, 4:09 PM · User-bd808, Wikibugs

Mon, Apr 15

bd808 added a comment to T361018: Requesting GitLab account activation for safan41.

I was doing some other cleanup of pending GitLab accounts and I think I rejected the https://gitlab.wikimedia.org/safan41 account. Logging in to GitLab again will restore the account to pending status.

Mon, Apr 15, 11:44 PM · GitLab (Account Approval), Release-Engineering-Team
bd808 added a comment to T353857: Correct and then approve https://gitlab.wikimedia.org/sethabathaba.

I was doing some other cleanup of pending GitLab accounts and I think I may have rejected the https://gitlab.wikimedia.org/sethabathaba account. Attempting to login again will restore the account to pending status.

Mon, Apr 15, 11:41 PM · GitLab (Account Approval)
bd808 closed T360353: Hashar does not like grey foreground color for distinguishing closed status events as Resolved.
Mon, Apr 15, 9:13 PM · User-bd808, Wikibugs
bd808 added a comment to T360353: Hashar does not like grey foreground color for distinguishing closed status events .

Rendering of T1152#9715566 via https://web.libera.chat/. Note that this client does not render the strikethrough style, but it also does not show any strange formatting characters:

Screenshot 2024-04-15 at 15.01.40.png (158×1 px, 51 KB)

Mon, Apr 15, 9:05 PM · User-bd808, Wikibugs
bd808 added a comment to T1152: wikibugs test bug.

another closed task comment

Mon, Apr 15, 9:01 PM · Wikibugs
bd808 added a comment to T360353: Hashar does not like grey foreground color for distinguishing closed status events .

Rendering of T1152#9715558 in my Textual client with some additional styling triggered by my irc nick being part of the the message:

Screenshot 2024-04-15 at 14.56.58.png (70×1 px, 64 KB)

Mon, Apr 15, 9:00 PM · User-bd808, Wikibugs
bd808 updated subscribers of T1152: wikibugs test bug.

test comment on closed task

Mon, Apr 15, 8:56 PM · Wikibugs
bd808 changed the status of T360353: Hashar does not like grey foreground color for distinguishing closed status events from Open to In Progress.

I'm going to switch the formatting from grey foreground to strikethrough text style. The strikethrough will only be visible to some IRC clients, but is expected to be more intuitive as it matches the Phabricator styling for closed tasks. HexChat, IRCCloud, The Lounge, & Textual are explicitly listed at https://defs.ircdocs.horse/info/formatting as supporting the strikethrough style.

Mon, Apr 15, 8:45 PM · User-bd808, Wikibugs
bd808 added a comment to T140448: Make OAuth session persistent in Phabricator.
Mon, Apr 15, 8:07 PM · Wikimedia-Phabricator-Extensions, Phabricator
bd808 renamed T361943: Decide on a Software Bill of Materials (SBOM) format for MediaWiki from Decide on a SBOM format for MediaWiki to Decide on a Software Bill of Materials (SBOM) format for MediaWiki.
Mon, Apr 15, 4:51 PM · SecTeam-Processed, Security-Team, Security
bd808 renamed T359634: Adopt Software Bill of Materials (SBOM) for MediaWiki from Adopt SBOMs for MediaWiki to Adopt Software Bill of Materials (SBOM) for MediaWiki.
Mon, Apr 15, 4:50 PM · SecTeam-Processed, Security-Team, Security
bd808 added a comment to T361435: Find a modern hostname for tools-static.wmflabs.org.

I've secretly been hoping that the current iteration of tools-static would go away at some point in favour of some object storage based service.

Mon, Apr 15, 3:57 PM · cloud-services-team, Toolforge
bd808 updated the task description for T358496: [toolforge,storage] Provide per-tool access to cloud-vps object storage.
Mon, Apr 15, 3:52 PM · cloud-services-team, Toolforge
bd808 updated subscribers of T305487: Bridgebot freaks out and sends double messages from IRC to Telegram.

I really need to work on this again. The bot breaks a lot and @LucasWerkmeister is amazing for noticing and restarting it. This really just needs me to take a little time to understand the golang build chain used in the upstream project so I can easily iterate on a fix like the one @Platonides proposed years ago in T305487#7915998.

Mon, Apr 15, 3:35 PM · User-bd808, Upstream, Tool-bridgebot
bd808 closed T296046: Allow build time control of effective UID/GID for runtime in Blubber generated Dockerfile as Resolved.

The open and assigned task nag script has complained that I haven't closed this task, so whatever it is closed now. Maybe someday I'll write up the reasons I added this feature to blubber. :shrug:

Mon, Apr 15, 3:05 PM · User-dduvall, User-bd808, Toolhub, Release Pipeline (Blubber)
bd808 closed T296046: Allow build time control of effective UID/GID for runtime in Blubber generated Dockerfile, a subtask of T295823: Failures updating python packages in dev environment following Linux Docker improvements, as Resolved.
Mon, Apr 15, 3:05 PM · User-bd808, Toolhub
bd808 added a comment to T288381: Connect WikiBugs IRC bot to Wikimedia GitLab.

Getting comment, pipeline, and job events out of GitLab would be a nice addition to the data that is currently collected by gitlab-webhooks using the system hooks integration. Unfortunately these are not as easy for us to manage centrally as they must be configured at the project level in GitLab CE. Group level integration for these events is only possible with a paid subscription.

Mon, Apr 15, 3:33 AM · User-bd808, Release-Engineering-Team (Priority Backlog 📥), GitLab (Integrations), Wikibugs
bd808 added a comment to T362500: Report GitLab merge request events to IRC.

Quick mockup using jq of data likely to be used in building messages:

$ grep '"object_kind": "merge_request"' events.log | grep "bd808" | jq '{"action": .object_attributes.action, "user": .user.username, "message": .object_attributes.title, "repo": .object_attributes.target.path_with_namespace, "branch": .object_attributes.target_branch, "url": .object_attributes.url, "owner": .object_attributes.author_id, "state": .object_attributes.state }'
{
  "action": "open",
  "user": "bd808",
  "message": "Relicense under GPL-3.0-or-later",
  "repo": "toolforge-repos/wikibugs2",
  "branch": "main",
  "url": "https://gitlab.wikimedia.org/toolforge-repos/wikibugs2/-/merge_request
s/22",
  "owner": 14,
  "state": "opened"
}
{
  "action": "approved",
  "user": "bd808",
  "message": "Relicense under GPL-3.0-or-later",
  "repo": "toolforge-repos/wikibugs2",
  "branch": "main",
  "url": "https://gitlab.wikimedia.org/toolforge-repos/wikibugs2/-/merge_requests/22",
  "owner": 14,
  "state": "opened"
}
{
  "action": "merge",
  "user": "bd808",
  "message": "Relicense under GPL-3.0-or-later",
  "repo": "toolforge-repos/wikibugs2",
  "branch": "main",
  "url": "https://gitlab.wikimedia.org/toolforge-repos/wikibugs2/-/merge_requests/22",
  "owner": 14,
  "state": "merged"
}
Mon, Apr 15, 3:15 AM · Wikibugs
bd808 changed the subtype of T288381: Connect WikiBugs IRC bot to Wikimedia GitLab from "Feature Request" to "Goal".
Mon, Apr 15, 2:20 AM · User-bd808, Release-Engineering-Team (Priority Backlog 📥), GitLab (Integrations), Wikibugs
bd808 created T362500: Report GitLab merge request events to IRC.
Mon, Apr 15, 2:19 AM · Wikibugs

Fri, Apr 12

bd808 added a comment to P4469 IBrokeWikipediaList.

The 2014-04-08 scap triggered outage that "earned" me the shirt (and my Chaos Monkey badge):

my-crash.png (500×1 px, 27 KB)

Fri, Apr 12, 11:02 PM
bd808 added a comment to P4469 IBrokeWikipediaList.

In 2016 I started making a sticker version because 1) easier to carry places, 2) no worries about not having the correct size, 3) cheaper.

I broke wikipedia sticker.png (196×196 px, 169 KB)

Fri, Apr 12, 10:43 PM
bd808 added a comment to P4469 IBrokeWikipediaList.

So bd808 made one: http://oi61.tinypic.com/2ryj5kz.jpg

tinypic.com has been lost to the sands of time. That photo was:

i-broke-wikipedia.jpg (287×300 px, 20 KB)

Fri, Apr 12, 10:41 PM
bd808 added a comment to P4469 IBrokeWikipediaList.

The photo of the just arrived shirts that I posted to twitter on 2014-09-15:

original-ibrokewikipedia-shirts.jpg (450×600 px, 48 KB)

Fri, Apr 12, 10:31 PM
bd808 added a comment to T90594: Wikibugs testing task.

test

Fri, Apr 12, 9:35 PM · User-bd808, Wikibugs
bd808 moved T362288: [gitlab-webhooks] Provide a server-sent events API for rebroadcast of GitLab webhook data from In Dev/Progress to Needs Review/Feedback on the User-bd808 board.
Fri, Apr 12, 8:37 PM · User-bd808, GitLab (Integrations)

Thu, Apr 11

bd808 added a comment to T361519: [infra,builds-builder] "failed to create fsnotify watcher: too many open files".

3rd retry (4th call overall) worked.

Thu, Apr 11, 6:09 PM · Toolforge (Toolforge iteration 08), Patch-For-Review
bd808 added a comment to T361519: [infra,builds-builder] "failed to create fsnotify watcher: too many open files".
tools.wikibugs-testing@tools-bastion-12:~$ toolforge build start --ref work/bd808/expect-phorge-api-errors https://gitlab.wikimedia.org/toolforge-repos/wikibugs2
Waiting for the logs... if the build just started this might take a minute
[place-tools] 2024-04-11T17:49:59.348045941Z 2024/04/11 17:49:59 Copied /ko-app/entrypoint to /tekton/bin/entrypoint
[place-tools] failed to create fsnotify watcher: too many open files
[step-init] 2024-04-11T17:49:59.913177243Z 2024/04/11 17:49:59 Setup /step directories
[step-init] failed to create fsnotify watcher: too many open files
[place-scripts] 2024-04-11T17:50:01.125871795Z 2024/04/11 17:50:01 Decoded script /tekton/scripts/script-0-vmtp5
[place-scripts] 2024-04-11T17:50:01.150840971Z 2024/04/11 17:50:01 Decoded script /tekton/scripts/script-2-wldbl
[place-scripts] 2024-04-11T17:50:01.187348966Z 2024/04/11 17:50:01 Decoded script /tekton/scripts/script-3-l5vh7
[place-scripts] 2024-04-11T17:50:01.214228628Z 2024/04/11 17:50:01 Decoded script /tekton/scripts/script-9-s6s4t
[place-scripts] 2024-04-11T17:50:01.237079271Z 2024/04/11 17:50:01 Decoded script /tekton/scripts/script-10-6th52
[place-scripts] 2024-04-11T17:50:01.270148540Z 2024/04/11 17:50:01 Decoded script /tekton/scripts/script-11-zcrvx
[place-scripts] 2024-04-11T17:50:01.304439329Z 2024/04/11 17:50:01 Decoded script /tekton/scripts/script-12-4gvkt
[place-scripts] failed to create fsnotify watcher: too many open files
[step-clone] failed to create fsnotify watcher: too many open files
[step-copy-builder-to-tmp] 2024-04-11T17:50:02.407982038Z 2024/04/11 17:50:02 warning: unsuccessful cred copy: ".docker" from "/tekton/creds" to "/tekton/home": unable to open destination: open /tekton/home/.docker/config.json: permission denied
[step-copy-builder-to-tmp] failed to create fsnotify watcher: too many open files
[step-prepare] failed to create fsnotify watcher: too many open files
[step-inject-buildpacks] failed to create fsnotify watcher: too many open files
[step-copy-stack-toml] 2024-04-11T17:50:03.342859273Z 2024/04/11 17:50:03 warning: unsuccessful cred copy: ".docker" from "/tekton/creds" to "/tekton/home": unable to open destination: open /tekton/home/.docker/config.json: permission denied
[step-copy-stack-toml] failed to create fsnotify watcher: too many open files
[step-detect] failed to create fsnotify watcher: too many open files
[step-analyze] 2024-04-11T17:50:04.254967516Z 2024/04/11 17:50:04 warning: unsuccessful cred copy: ".docker" from "/tekton/creds" to "/tekton/home": unable to open destination: open /tekton/home/.docker/config.json: permission denied
[step-analyze] failed to create fsnotify watcher: too many open files
[step-restore] 2024-04-11T17:50:04.688674016Z 2024/04/11 17:50:04 warning: unsuccessful cred copy: ".docker" from "/tekton/creds" to "/tekton/home": unable to open destination: open /tekton/home/.docker/config.json: permission denied
[step-restore] failed to create fsnotify watcher: too many open files
[step-build] failed to create fsnotify watcher: too many open files
[step-fix-nested-procfile-launcher] failed to create fsnotify watcher: too many open files
[step-fix-permissions] failed to create fsnotify watcher: too many open files
[step-export] 2024-04-11T17:50:06.064284001Z 2024/04/11 17:50:06 warning: unsuccessful cred copy: ".docker" from "/tekton/creds" to "/tekton/home": unable to open destination: open /tekton/home/.docker/config.json: permission denied
[step-export] failed to create fsnotify watcher: too many open files
[step-results] failed to create fsnotify watcher: too many open files

Retry worked.

Thu, Apr 11, 5:57 PM · Toolforge (Toolforge iteration 08), Patch-For-Review
bd808 added a comment to T361277: gitlab: enforce 2fa for admins.

I thought that was part of {T316419}, but apparently I was mistaken. +1 from me.

Thu, Apr 11, 5:47 PM · Patch-For-Review, GitLab (Administration, Settings & Policy), User-brennen, Release-Engineering-Team, collaboration-services

Wed, Apr 10

bd808 changed the status of T362288: [gitlab-webhooks] Provide a server-sent events API for rebroadcast of GitLab webhook data from Open to In Progress.
Wed, Apr 10, 9:56 PM · User-bd808, GitLab (Integrations)
bd808 changed the status of T362288: [gitlab-webhooks] Provide a server-sent events API for rebroadcast of GitLab webhook data, a subtask of T288381: Connect WikiBugs IRC bot to Wikimedia GitLab, from Open to In Progress.
Wed, Apr 10, 9:55 PM · User-bd808, Release-Engineering-Team (Priority Backlog 📥), GitLab (Integrations), Wikibugs
bd808 created T362288: [gitlab-webhooks] Provide a server-sent events API for rebroadcast of GitLab webhook data.
Wed, Apr 10, 9:55 PM · User-bd808, GitLab (Integrations)