Page MenuHomePhabricator

StrikerComponent
ActivePublic

Members (15)

Watchers (6)

Details

Description

This project is about toolsadmin.wikimedia.org, for admin.toolforge.org see Tool-admin.


Striker is a web application for managing information related to Toolforge tools and user accounts.

Features

  • Associate an LDAP user account with a Wikimedia SUL account and a Phabricator account
  • Create git repositories in GitLab associated with a tool
  • Create Phabricator projects associated with a tool
  • Create LDAP user account
  • Request Toolforge project membership
  • Create Toolforge Tool account
  • Edit toolinfo.json metadata for a Tool

See also


(project image is The Forge by Francisco Goya and reused as a public domain art reproduction.)

Recent Activity

Yesterday

taavi created T363320: Searching for "tools" in Striker does not work.
Wed, Apr 24, 12:15 PM · Striker

Tue, Apr 23

ABran-WMF closed T360149: Create a database for Striker test instance as Resolved.

I'm closing this @taavi, feel free to ping me if you run in any trouble!

Tue, Apr 23, 7:27 AM · Data-Persistence-Backup, Patch-For-Review, DBA, cloud-services-team, Striker
ABran-WMF closed T360149: Create a database for Striker test instance, a subtask of T360025: Deploy Striker instance for toolsbeta, as Resolved.
Tue, Apr 23, 7:26 AM · Patch-For-Review, cloud-services-team, Striker

Sun, Apr 21

Aklapper triaged T362909: Diffusion mirrors of GitLab repos failing to be created by Striker as High priority.
Sun, Apr 21, 3:24 PM · Phabricator, Striker
Aklapper moved T362909: Diffusion mirrors of GitLab repos failing to be created by Striker from To Triage to Misc on the Phabricator board.
Sun, Apr 21, 3:24 PM · Phabricator, Striker

Fri, Apr 19

ABran-WMF moved T360149: Create a database for Striker test instance from Refine to Blocked on the DBA board.
Fri, Apr 19, 6:50 AM · Data-Persistence-Backup, Patch-For-Review, DBA, cloud-services-team, Striker

Thu, Apr 18

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
Aklapper 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, 6:00 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
dcaro created T362889: Tool created following initial name validation failure is missing toolinfo record and having other problems with GitLab repositories.
Thu, Apr 18, 1:45 PM · Striker
gerritbot added a comment to T360149: Create a database for Striker test instance.

Change #1021407 merged by Majavah:

[operations/puppet@production] hieradata: Update striker_toolsbeta database name

https://gerrit.wikimedia.org/r/1021407

Thu, Apr 18, 9:25 AM · Data-Persistence-Backup, Patch-For-Review, DBA, cloud-services-team, Striker
gerritbot added a comment to T360149: Create a database for Striker test instance.

Change #1021407 had a related patch set uploaded (by Majavah; author: Majavah):

[operations/puppet@production] hieradata: Update striker_toolsbeta database name

https://gerrit.wikimedia.org/r/1021407

Thu, Apr 18, 9:22 AM · Data-Persistence-Backup, Patch-For-Review, DBA, cloud-services-team, Striker

Wed, Apr 17

ABran-WMF added a comment to T360149: Create a database for Striker test instance.

@taavi you can replace all occurrences of striker_toolsbeta by strikertoolsbeta (i.e. striker_toolsbeta_adminstrikertoolsbeta_admin). I've also updated credentials in the previous location
@jcrespo database has been properly renamed, good catch!

Wed, Apr 17, 10:44 AM · Data-Persistence-Backup, Patch-For-Review, DBA, cloud-services-team, Striker
gerritbot added a comment to T360149: Create a database for Striker test instance.

Change #1020709 had a related patch set uploaded (by Arnaudb; author: Arnaudb):

[operations/puppet@production] mariadb: removes underscore on striker database name

https://gerrit.wikimedia.org/r/1020709

Wed, Apr 17, 9:33 AM · Data-Persistence-Backup, Patch-For-Review, DBA, cloud-services-team, Striker

Tue, Apr 16

Marostegui added a comment to T360149: Create a database for Striker test instance.

@taavi would you be OK to drop & recreate that db so we discard the underscore?

Tue, Apr 16, 9:07 AM · Data-Persistence-Backup, Patch-For-Review, DBA, cloud-services-team, Striker
taavi added a comment to T360149: Create a database for Striker test instance.

Sure, just let me know what the new name is so I can update the app config.

Tue, Apr 16, 9:06 AM · Data-Persistence-Backup, Patch-For-Review, DBA, cloud-services-team, Striker
ABran-WMF reopened T360149: Create a database for Striker test instance as "Open".

@taavi would you be OK to drop & recreate that db so we discard the underscore?

Tue, Apr 16, 9:02 AM · Data-Persistence-Backup, Patch-For-Review, DBA, cloud-services-team, Striker
ABran-WMF reopened T360149: Create a database for Striker test instance, a subtask of T360025: Deploy Striker instance for toolsbeta, as Open.
Tue, Apr 16, 9:02 AM · Patch-For-Review, cloud-services-team, Striker
ABran-WMF closed T360149: Create a database for Striker test instance as Resolved.
Tue, Apr 16, 8:22 AM · Data-Persistence-Backup, Patch-For-Review, DBA, cloud-services-team, Striker
ABran-WMF closed T360149: Create a database for Striker test instance, a subtask of T360025: Deploy Striker instance for toolsbeta, as Resolved.
Tue, Apr 16, 8:22 AM · Patch-For-Review, cloud-services-team, Striker

Fri, Apr 12

taavi closed T254598: Put "Dev Environment Warning" on striker.wmflabs.org as Resolved.

There is now support for configuring a banner, and the demo server is currently down (T329687).

Fri, Apr 12, 8:41 AM · Patch-For-Review, Striker
taavi closed T360025: Deploy Striker instance for toolsbeta as Resolved.
Fri, Apr 12, 8:38 AM · Patch-For-Review, cloud-services-team, Striker
gerritbot added a comment to T360025: Deploy Striker instance for toolsbeta.

Change #1018656 merged by Majavah:

[operations/dns@master] Add toolsadmin-toolsbeta

https://gerrit.wikimedia.org/r/1018656

Fri, Apr 12, 8:13 AM · Patch-For-Review, cloud-services-team, Striker

Thu, Apr 11

jcrespo added a comment to T360149: Create a database for Striker test instance.

No need. I just wanted to warn the DBAs- althought you may find it interesting, as the last issue was with wikireplicas. No need to change anything at the moment (actual data and name), but the current grants providing access.

Thu, Apr 11, 4:06 PM · Data-Persistence-Backup, Patch-For-Review, DBA, cloud-services-team, Striker
taavi added a comment to T360149: Create a database for Striker test instance.

Oops - sorry about that. If you prefer a version without underscores, from my side it's totally fine to rename the database or just drop it and re-create the tables with a new name. Up to you.

Thu, Apr 11, 4:04 PM · Data-Persistence-Backup, Patch-For-Review, DBA, cloud-services-team, Striker
jcrespo reassigned T360149: Create a database for Striker test instance from jcrespo to ABran-WMF.

Please see my last comment. Other than that, my work is done.

Thu, Apr 11, 3:52 PM · Data-Persistence-Backup, Patch-For-Review, DBA, cloud-services-team, Striker
jcrespo moved T360149: Create a database for Striker test instance from Done to Refine on the DBA board.
Thu, Apr 11, 3:51 PM · Data-Persistence-Backup, Patch-For-Review, DBA, cloud-services-team, Striker
gerritbot added a comment to T360149: Create a database for Striker test instance.

Change #1019069 merged by Jcrespo:

[operations/puppet@production] dbbackups: Add striker_toolsbeta to the list of m5 backups

https://gerrit.wikimedia.org/r/1019069

Thu, Apr 11, 3:48 PM · Data-Persistence-Backup, Patch-For-Review, DBA, cloud-services-team, Striker
jcrespo added a comment to T360149: Create a database for Striker test instance.

There is some issues on the already provided user grants. I don't think we should create databases with underscores or percentage signs on the name- but if we have to do it, let's use the proper escaping on grants to avoid things like this:

Thu, Apr 11, 3:42 PM · Data-Persistence-Backup, Patch-For-Review, DBA, cloud-services-team, Striker
gerritbot added a comment to T360149: Create a database for Striker test instance.

Change #1019069 had a related patch set uploaded (by Jcrespo; author: Jcrespo):

[operations/puppet@production] dbbackups: Add striker_toolsbeta to the list of m5 backups

https://gerrit.wikimedia.org/r/1019069

Thu, Apr 11, 3:38 PM · Data-Persistence-Backup, Patch-For-Review, DBA, cloud-services-team, Striker
ABran-WMF reopened T360149: Create a database for Striker test instance as "Open".
Thu, Apr 11, 2:42 PM · Data-Persistence-Backup, Patch-For-Review, DBA, cloud-services-team, Striker
ABran-WMF reopened T360149: Create a database for Striker test instance, a subtask of T360025: Deploy Striker instance for toolsbeta, as Open.
Thu, Apr 11, 2:41 PM · Patch-For-Review, cloud-services-team, Striker
SLyngshede-WMF moved T347631: Unable to apply for Toolforge access from Backlog to Resolved on the Bitu board.
Thu, Apr 11, 10:46 AM · cloud-services-team, Bitu, Infrastructure-Foundations, Striker
taavi created T362318: Add Bitu container to Striker development environment.
Thu, Apr 11, 10:45 AM · Striker
taavi created T362313: Archive Phabricator project tags for disabled tools.
Thu, Apr 11, 10:15 AM · Striker
gerritbot added a comment to T360025: Deploy Striker instance for toolsbeta.

Change #1018665 merged by Majavah:

[operations/puppet@production] hieradata: Add CDN config for toolsadmin-toolsbeta.wikimedia.org

https://gerrit.wikimedia.org/r/1018665

Thu, Apr 11, 9:31 AM · Patch-For-Review, cloud-services-team, Striker

Wed, Apr 10

bd808 added a comment to T362237: Make it easier to apply Striker schema changes in production.

I have a hacky script for this kind of stuff at cloudweb1003:/home/bd808/projects/striker/debug-striker.sh. It was inspired by the hacky script I had to make to manage Toolhub.

debug-striker.sh
#!/usr/bin/env bash
# Run the Striker container locally.
# Typical usage:
#   ./debug-striker.sh -it --entrypoint=/bin/bash
set -euxo pipefail
Wed, Apr 10, 3:07 PM · Striker
gerritbot added a comment to T360025: Deploy Striker instance for toolsbeta.

Change #1018730 merged by Majavah:

[operations/puppet@production] hieradata: Update striker container to add staging env warning

https://gerrit.wikimedia.org/r/1018730

Wed, Apr 10, 3:04 PM · Patch-For-Review, cloud-services-team, Striker
gerritbot added a comment to T254598: Put "Dev Environment Warning" on striker.wmflabs.org.

Change #1018730 merged by Majavah:

[operations/puppet@production] hieradata: Update striker container to add staging env warning

https://gerrit.wikimedia.org/r/1018730

Wed, Apr 10, 3:04 PM · Patch-For-Review, Striker
gerritbot added a comment to T360025: Deploy Striker instance for toolsbeta.

Change #1018730 had a related patch set uploaded (by Majavah; author: Majavah):

[operations/puppet@production] hieradata: Update striker container to add staging env warning

https://gerrit.wikimedia.org/r/1018730

Wed, Apr 10, 3:03 PM · Patch-For-Review, cloud-services-team, Striker
gerritbot added a comment to T254598: Put "Dev Environment Warning" on striker.wmflabs.org.

Change #1018730 had a related patch set uploaded (by Majavah; author: Majavah):

[operations/puppet@production] hieradata: Update striker container to add staging env warning

https://gerrit.wikimedia.org/r/1018730

Wed, Apr 10, 3:03 PM · Patch-For-Review, Striker
taavi created T362237: Make it easier to apply Striker schema changes in production.
Wed, Apr 10, 3:00 PM · Striker
gerritbot added a comment to T254598: Put "Dev Environment Warning" on striker.wmflabs.org.

Change #1018720 merged by jenkins-bot:

[labs/striker@master] Add option to show a environment-specific banner

https://gerrit.wikimedia.org/r/1018720

Wed, Apr 10, 2:58 PM · Patch-For-Review, Striker
Maintenance_bot moved T360149: Create a database for Striker test instance from In progress to Done on the DBA board.
Wed, Apr 10, 2:29 PM · Data-Persistence-Backup, Patch-For-Review, DBA, cloud-services-team, Striker