Page MenuHomePhabricator

PatchDemoBot wiki deletion comments sometimes contain a malformed/nonexistent link
Closed, ResolvedPublic2 Estimated Story PointsBUG REPORT

Description

E.g., T290324#11474918 — there should presumably be a URL in the space after the first double-open-square brackets:

Test wiki on [[  | Patch demo ]]  by MolecularPilot using patch(es) linked to this task was **deleted**:

Ctrl+F for [[ | on @PatchDemoBot's profile page can be used to find more examples of this happening (e.g. T405515#11448636, T393510#11360364, T407087#11359852).

Details

Related Changes in GitLab:
TitleReferenceAuthorSource BranchDest Branch
Fix Announcement URL issue.repos/test-platform/catalyst/patchdemo!236ebomaniT413188main
Customize query in GitLab

Event Timeline

thcipriani subscribed.

Looks like $serverUri is not getting passed in some instances. We'll need to fix that up!

thcipriani set the point value for this task to 2.
thcipriani moved this task from Backlog to Ready on the Catalyst (Luka Ijo Pimeja Jan) board.

Investigating this right now. One main issue I am facing with triage is that the failure is not consistent. From my testing locally, on staging, and on production, the link is malformation is intermittent. The one thing that is clear is that it is happening with catalyst backend environments only. The following examples illustrate this:

Case 1: Deletion announcement happens twice; once with the broken link, and the second time with it functioning. - Oct 2025

Screenshot 2026-01-20 at 3.03.02 PM.png (2,722×944 px, 286 KB)

Case 2: Multiple environments' deletion links broken but the last one is functioning. (all Catalyst back-end) - Oct 2025

Screenshot 2026-01-20 at 3.08.02 PM.png (2,688×980 px, 250 KB)

Case 3: Random link breakage after other Catalyst back-end announcements worked right before it and then following ones being resolved again. - Sep 2025

Screenshot 2026-01-20 at 3.03.53 PM.png (2,698×1,802 px, 488 KB)

Case 4: Link previously working but then break and then resolve afterwards (and did not happen again after) - Jan 2026

Screenshot 2026-01-20 at 3.05.01 PM.png (2,726×952 px, 249 KB)

My theory was initially about issues fetching ServerURI after a long break between API calls to the PatchDemoBot but due to the failures that happen after successful calls and cease immediately after, this does not seem to hold a lot of water. I will continue to investigate this and seek a solution that prevents it from happening and update this task with findings along the way.

Hrm, looks like a heisenbug, let's add some logging inside the announce_deleted_tasks function and get a debug_backtrace.

@EBomani updated the code path that was causing these, so hopefully we don't see any more!