Page MenuHomePhabricator

Train blockers task throws exceptions on strange version numbers
Closed, DeclinedPublicBUG REPORT

Description

We have a custom phabricator extension to handle train blocker tasks.

Entering a non-conforming task number causes an exception see code in ReleaseDetailsCustomField.php

Details

Related Changes in GitLab:
TitleReferenceAuthorSource BranchDest Branch
Refactor handling of version ranges by ReleaseDetailsCustomFieldrepos/phabricator/extensions!25dduvallreview/T304540wmf/stable
Customize query in GitLab

Event Timeline

Mentioned in SAL (#wikimedia-releng) [2022-03-23T17:35:25Z] <brennen> restarting phabricator for T304540, brief downtime expected

Cyaj8 claimed this task.
Dylsss removed Cyaj8 as the assignee of this task.
Dylsss added a subscriber: Cyaj8.

@dduvall: Would you be willing and have time to transfer your patch in D1200 into a MR in https://gitlab.wikimedia.org/repos/phabricator/extensions ?
It's the last open patch we have in Differential which we'd like to switch off per T330797. If not I can do so - just don't want to steal credits from you. :) TIA!
(However does so in the end, please do abandon the patch in D1200 afterwards. Thanks.)

brennen claimed this task.

Will deploy tomorrow, 2024-04-16.

Aklapper edited projects, added Phabricator; removed Phabricator (2024-04-16).

Reopening due to revert in T362689

Aklapper moved this task from To Triage to Misc on the Phabricator board.

Entering a non-conforming task number causes an exception see code in ReleaseDetailsCustomField.php

Did you mean version string (usually sth like 1.99.99-wmf.99) instead of task number?

Does anyone have an exception text / stacktrace?

I assume this is much less likely to happen after rPHEXce33d8fa9ca8582a428fcfa58ad6f99ad5bc3b89.

Aklapper changed the task status from Open to Stalled.Jun 2 2025, 8:11 AM

No reply; closing for now as there is no exception stacktrace and per my last comment.

Please reopen once there are clearer steps to reproduce, a stacktrace, and if this still happens.

PS: Also, if anyone ever wanted to experience the variety of random stuff put into the Release Version freetext field,
SELECT CONCAT('T',t.id), ff.rawCorpus FROM phabricator_maniphest.maniphest_task_ffield ff INNER JOIN phabricator_maniphest.maniphest_task_fdocument fd ON fd.id = ff.documentId INNER JOIN phabricator_maniphest.maniphest_task t ON t.phid = fd.objectPHID WHERE ff.fieldKey = "!jdY";
provides some great inspiration.