[Asterisk-code-review] app_queue: check for leaking Stasis subscriptions after Redirect() (testsuite[16])
lvl
asteriskteam at digium.com
Thu Apr 30 04:42:58 CDT 2020
lvl has posted comments on this change. ( https://gerrit.asterisk.org/c/testsuite/+/14210 )
Change subject: app_queue: check for leaking Stasis subscriptions after Redirect()
......................................................................
Patch Set 2:
> Patch Set 2: Code-Review-1
>
> (5 comments)
>
> > Patch Set 2:
> >
> > > Patch Set 2: Code-Review-1
> > >
> > > (3 comments)
> > >
> > > The concern that comes to mind is the test becoming fragile in the future if we use taskprocessors in other ways, thus having to continue to update and tweak the test condition. Thoughts Richard and Kevin?
> >
> > Anything that processes Asterisk CLI output is going to be fragile. The CLI output is not intended to be stable. It is targeted for human consumption. The output of "core show taskprocessors" has changed several times as new things are tracked. The task processor names have changed a few times too. The "outsess" task processor name series has changed from its original naming as internal organization changed.
>
> I agree it is somewhat fragile, but I think most, if not all the test conditions scrape the CLI. Also as long as the screen column order doesn't change (which I don't think it has in a while if at all) then that fragility is lessened except ....for the hard-coded named "outsess".
>
> Not really sure of a good way around this. It can be moved to a configurable list, but then that'd potentially have to change.
>
> I'm fine allowing this for now though. Hopefully taskprocessors, and their names are fairly stabilized for now. If it becomes a problem we can reassess later.
FWIW, I borrowed most of this code from the existing filedescriptor test condition, which operates in the same way, with a "core show fd". I agree that parsing CLI output is not ideal, but I couldn't find any other interface that exposes this problem, and think this is definitely better than nothing.
--
To view, visit https://gerrit.asterisk.org/c/testsuite/+/14210
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings
Gerrit-Project: testsuite
Gerrit-Branch: 16
Gerrit-Change-Id: I90451cca574e2fa7d825b4cdc0bab03e331c0e9b
Gerrit-Change-Number: 14210
Gerrit-PatchSet: 2
Gerrit-Owner: lvl <digium at lvlconsultancy.nl>
Gerrit-Reviewer: Friendly Automation
Gerrit-Reviewer: Joshua Colp <jcolp at sangoma.com>
Gerrit-Reviewer: Kevin Harwell <kharwell at digium.com>
Gerrit-Reviewer: Richard Mudgett <rmudgett at digium.com>
Gerrit-Comment-Date: Thu, 30 Apr 2020 09:42:58 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20200430/0db21878/attachment-0001.html>
More information about the asterisk-code-review
mailing list