Skip Menu |
 

This queue is for tickets about the CHI CPAN distribution.

Report information
The Basics
Id: 79100
Status: resolved
Priority: 0/
Queue: CHI

People
Owner: Nobody in particular
Requestors: NHORNE [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.55
Fixed in: (no value)



Subject: CHI::Test
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 257
Download (untitled) / with headers
text/plain 257b
The tests in CHI::Test don't clean up after themselves. Is there a way to say "I've finished testing now delete all resources I used?" Perhaps at least calling clear() on each namespace used during the tests would be start, though not a complete solution.
From swartz [...] pobox.com Mon Aug 20 07: 18:11 2012
MIME-Version: 1.0 (Apple Message framework v1278)
X-Spam-Status: No, score=-5.234 tagged_above=-99.9 required=10 tests=[AWL=0.887, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_HI=-5, SPF_NEUTRAL=0.779] autolearn=ham
In-Reply-To: <rt-3.8.HEAD-2185-1345449694-1177.79100-4-0 [...] rt.cpan.org>
X-Mailer: Apple Mail (2.1278)
X-Spam-Flag: NO
References: <RT-Ticket-79100 [...] rt.cpan.org> <rt-3.8.HEAD-2185-1345449694-1177.79100-4-0 [...] rt.cpan.org>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
Content-Type: text/plain; charset="utf-8"
Message-ID: <C8B43F03-22D0-45E4-B17B-F2E2ECBDDDCA [...] pobox.com>
X-Sasl-Enc: tnDeID3VeWlX/POmphHQqRWuO7KwWC/I0ZDeVxw3Oir+ 1345461480
X-RT-Original-Encoding: utf-8
X-Spam-Score: -5.234
Authentication-Results: hipster.bestpractical.com (amavisd-new); dkim=pass header.i= [...] messagingengine.com
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id B1A0424064A for <cpan-bug+CHI [...] hipster.bestpractical.com>; Mon, 20 Aug 2012 07:18:11 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id e9hoy6sV2jIt for <cpan-bug+CHI [...] hipster.bestpractical.com>; Mon, 20 Aug 2012 07:18:09 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 6C6102405CD for <bug-CHI [...] rt.cpan.org>; Mon, 20 Aug 2012 07:18:09 -0400 (EDT)
Received: (qmail 6568 invoked by uid 103); 20 Aug 2012 11:18:08 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 20 Aug 2012 11:18:08 -0000
Received: from out5-smtp.messagingengine.com (HELO out5-smtp.messagingengine.com) (66.111.4.29) by 16.mx.develooper.com (qpsmtpd/0.80/v0.80-19-gf52d165) with ESMTP; Mon, 20 Aug 2012 04:18:04 -0700
Received: from compute3.internal (compute3.nyi.mail.srv.osa [10.202.2.43]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id B0CB020A25 for <bug-CHI [...] rt.cpan.org>; Mon, 20 Aug 2012 07:18:00 -0400 (EDT)
Received: from frontend1.nyi.mail.srv.osa ([10.202.2.160]) by compute3.internal (MEProxy); Mon, 20 Aug 2012 07:18:00 -0400
Received: from [10.0.1.12] (unknown [71.202.172.196]) by mail.messagingengine.com (Postfix) with ESMTPA id 4A58C8E0212 for <bug-CHI [...] rt.cpan.org>; Mon, 20 Aug 2012 07:18:00 -0400 (EDT)
Delivered-To: cpan-bug+CHI [...] hipster.bestpractical.com
Subject: Re: [rt.cpan.org #79100] CHI::Test
Return-Path: <swartz [...] pobox.com>
Dkim-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-type:mime-version:subject:from :in-reply-to:date:content-transfer-encoding:message-id :references:to; s=smtpout; bh=RJN/HRp4FpyF71k2Jiszp387MZ4=; b=qL 642GL5eWQEpGI1UayJZoP4Z9q6/+Mr++uar/qKnyRDeIeB/50yCYmf5aK4Ib0mC5 hu96Owg9o4EHnK9PgPkovsxgdfQmZbIjLsQJh9TyRg6eDk4HlXe/YzscJbtyrBtd AOdaAlwYiqCeFdQ/kJg9/hNh+Z97HqmI4WSDVCwb8=
X-Spam-Check-BY: 16.mx.develooper.com
X-Original-To: cpan-bug+CHI [...] hipster.bestpractical.com
X-RT-Mail-Extension: chi
Date: Mon, 20 Aug 2012 04:17:58 -0700
X-Spam-Level:
To: bug-CHI [...] rt.cpan.org
Content-Transfer-Encoding: quoted-printable
From: Jonathan Swartz <swartz [...] pobox.com>
RT-Message-ID: <rt-3.8.HEAD-22450-1345461492-550.79100-0-0 [...] rt.cpan.org>
Content-Length: 1194
Download (untitled) / with headers
text/plain 1.1k
CHI::t::Driver::{File,FastMmap,CacheCache,DBI,BerkeleyDB} make use of tempdir() to clean themselves itself up when the process dies. And of course CHI::t::Driver::{Memory,RawMemory} need no cleanup. So I think the only backend whose test doesn't clean itself up is Memcached. It reads and writes from a running port, when it should probably start up memcached on a new port and kill it when done. So is your concern limited to Memcached, or is there another driver that I'm thinking of? (Or a driver that you are implementing)? Thanks Jon On Aug 20, 2012, at 1:01 AM, Nigel Horne via RT wrote: Show quoted text
> Mon Aug 20 04:01:34 2012: Request 79100 was acted upon. > Transaction: Ticket created by NHORNE > Queue: CHI > Subject: CHI::Test > Broken in: 0.55 > Severity: Normal > Owner: Nobody > Requestors: NHORNE@cpan.org > Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=79100 > > > > The tests in CHI::Test don't clean up after themselves. Is there a way > to say "I've finished testing now delete all resources I used?" Perhaps > at least calling clear() on each namespace used during the tests would > be start, though not a complete solution.
From njh [...] bandsman.co.uk Mon Aug 20 08: 13:20 2012
MIME-Version: 1.0
X-Spam-Status: No, score=-7.861 tagged_above=-99.9 required=10 tests=[AWL=-0.961, BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5] autolearn=ham
In-Reply-To: <rt-3.8.HEAD-22450-1345461492-1552.79100-6-0 [...] rt.cpan.org>
X-Spam-Flag: NO
X-CM-Score: 0.00
References: <RT-Ticket-79100 [...] rt.cpan.org> <rt-3.8.HEAD-2185-1345449694-1177.79100-4-0 [...] rt.cpan.org> <C8B43F03-22D0-45E4-B17B-F2E2ECBDDDCA [...] pobox.com> <rt-3.8.HEAD-22450-1345461492-1552.79100-6-0 [...] rt.cpan.org>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
Message-ID: <503229D5.8030504 [...] bandsman.co.uk>
Content-Type: text/plain; charset="utf-8"; format="flowed"
Organization: http://www.bandsman.co.uk
X-RT-Original-Encoding: utf-8
X-Spam-Score: -7.861
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id DA09A24064A for <cpan-bug+chi [...] hipster.bestpractical.com>; Mon, 20 Aug 2012 08:13:20 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bzqyP9OGx4+P for <cpan-bug+chi [...] hipster.bestpractical.com>; Mon, 20 Aug 2012 08:13:19 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 321642405CD for <bug-chi [...] rt.cpan.org>; Mon, 20 Aug 2012 08:13:18 -0400 (EDT)
Received: (qmail 10045 invoked by uid 103); 20 Aug 2012 12:13:18 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 20 Aug 2012 12:13:18 -0000
Received: from avasout05.plus.net (HELO avasout05.plus.net) (84.93.230.250) by 16.mx.develooper.com (qpsmtpd/0.80/v0.80-19-gf52d165) with ESMTP; Mon, 20 Aug 2012 05:13:14 -0700
Received: from bandsman.co.uk ([212.159.106.41]) by avasout05 with smtp id p0D91j0090tcut8010DA5D; Mon, 20 Aug 2012 13:13:10 +0100
Received: from [192.168.1.15] (packard [192.168.1.15]) (authenticated bits=0) by bandsman.co.uk (8.14.4/8.14.4/Debian-2.1) with ESMTP id q7KCD9Jb012089 for <bug-CHI [...] rt.cpan.org>; Mon, 20 Aug 2012 13:13:09 +0100
Delivered-To: cpan-bug+chi [...] hipster.bestpractical.com
X-CNFS-Analysis: v=2.0 cv=FYC1NeC6 c=1 sm=1 a=nttwQJltqK1sxTkOuIdPZw==:17 a=RrGJ57Ld49sA:10 a=y0HxHq68VoAA:10 a=AC4b6R8PCdgA:10 a=xk0GNUe6QusA:10 a=8nJEP1OIZ-IA:10 a=UquIs0DwmqYA:10 a=eNcD7ojaAAAA:8 a=F00cuOMFAAAA:8 a=fmlrgJMLokNOvta6-gMA:9 a=wPNLvfGTeEIA:10 a=nttwQJltqK1sxTkOuIdPZw==:117
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.6esrpre) Gecko/20120817 Icedove/10.0.6
Subject: Re: [rt.cpan.org #79100] CHI::Test
Return-Path: <njh [...] bandsman.co.uk>
X-Spam-Check-BY: 16.mx.develooper.com
X-Original-To: cpan-bug+chi [...] hipster.bestpractical.com
X-RT-Mail-Extension: chi
Date: Mon, 20 Aug 2012 13:13:09 +0100
X-Spam-Level:
To: bug-CHI [...] rt.cpan.org
Content-Transfer-Encoding: 7bit
From: Nigel Horne <njh [...] bandsman.co.uk>
RT-Message-ID: <rt-3.8.HEAD-320-1345464801-565.79100-0-0 [...] rt.cpan.org>
Content-Length: 629
Download (untitled) / with headers
text/plain 629b
On 20/08/12 12:18, Jonathan Swartz via RT wrote: Show quoted text
> > CHI::t::Driver::{File,FastMmap,CacheCache,DBI,BerkeleyDB} make use of tempdir() to clean themselves itself up when the process dies. And of course CHI::t::Driver::{Memory,RawMemory} need no cleanup. > > So I think the only backend whose test doesn't clean itself up is Memcached. It reads and writes from a running port, when it should probably start up memcached on a new port and kill it when done. > > So is your concern limited to Memcached, or is there another driver that I'm thinking of? (Or a driver that you are implementing)?
It's a driver I've implemented. -Nigel
From swartz [...] pobox.com Mon Aug 20 10: 22:26 2012
MIME-Version: 1.0 (Apple Message framework v1278)
X-Spam-Status: No, score=-5.252 tagged_above=-99.9 required=10 tests=[AWL=0.869, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_HI=-5, SPF_NEUTRAL=0.779] autolearn=ham
In-Reply-To: <rt-3.8.HEAD-320-1345464801-1505.79100-5-0 [...] rt.cpan.org>
X-Mailer: Apple Mail (2.1278)
X-Spam-Flag: NO
References: <RT-Ticket-79100 [...] rt.cpan.org> <rt-3.8.HEAD-2185-1345449694-1177.79100-4-0 [...] rt.cpan.org> <C8B43F03-22D0-45E4-B17B-F2E2ECBDDDCA [...] pobox.com> <rt-3.8.HEAD-22450-1345461492-1552.79100-6-0 [...] rt.cpan.org> <503229D5.8030504 [...] bandsman.co.uk> <rt-3.8.HEAD-320-1345464801-1505.79100-5-0 [...] rt.cpan.org>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
Content-Type: text/plain; charset="utf-8"
Message-ID: <F47870F3-87CB-4CF0-B7ED-5FAA51CB96D1 [...] pobox.com>
X-Sasl-Enc: XyHvhNSLokpDcVEGp+TGrO5nVWVaK3P2f3RbXrFqsLFU 1345472530
X-RT-Original-Encoding: utf-8
X-Spam-Score: -5.252
Authentication-Results: hipster.bestpractical.com (amavisd-new); dkim=pass header.i= [...] messagingengine.com
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 98CC72405CD for <cpan-bug+CHI [...] hipster.bestpractical.com>; Mon, 20 Aug 2012 10:22:26 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wlX+IELcbMlk for <cpan-bug+CHI [...] hipster.bestpractical.com>; Mon, 20 Aug 2012 10:22:21 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 096F0240549 for <bug-CHI [...] rt.cpan.org>; Mon, 20 Aug 2012 10:22:20 -0400 (EDT)
Received: (qmail 19652 invoked by uid 103); 20 Aug 2012 14:22:20 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 20 Aug 2012 14:22:20 -0000
Received: from out5-smtp.messagingengine.com (HELO out5-smtp.messagingengine.com) (66.111.4.29) by 16.mx.develooper.com (qpsmtpd/0.80/v0.80-19-gf52d165) with ESMTP; Mon, 20 Aug 2012 07:22:15 -0700
Received: from compute5.internal (compute5.nyi.mail.srv.osa [10.202.2.45]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id F3ABF20315 for <bug-CHI [...] rt.cpan.org>; Mon, 20 Aug 2012 10:22:10 -0400 (EDT)
Received: from frontend1.nyi.mail.srv.osa ([10.202.2.160]) by compute5.internal (MEProxy); Mon, 20 Aug 2012 10:22:10 -0400
Received: from [10.0.1.12] (unknown [71.202.172.196]) by mail.messagingengine.com (Postfix) with ESMTPA id 9782B8E021C for <bug-CHI [...] rt.cpan.org>; Mon, 20 Aug 2012 10:22:10 -0400 (EDT)
Delivered-To: cpan-bug+CHI [...] hipster.bestpractical.com
Subject: Re: [rt.cpan.org #79100] CHI::Test
Return-Path: <swartz [...] pobox.com>
Dkim-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-type:mime-version:subject:from :in-reply-to:date:content-transfer-encoding:message-id :references:to; s=smtpout; bh=9QUMiAF++ZGMjdKSoQg6HrxeLdE=; b=V9 zbt8Wkb2hEvPfW+wHCB/1tExhOFxNBCn8i6XkbfHHvG9RkcbgcVldyGYrmjKyjAH JG3CmbtoksgYdiM9G07sZYaTke0bhN1YNPK8UQCcX1LzPCvN4oaeU89EF2g+lG9e qVM3Z7zwVz4xmfoOTnralHah1HWBY1n59nYjZ2Doc=
X-Spam-Check-BY: 16.mx.develooper.com
X-Original-To: cpan-bug+CHI [...] hipster.bestpractical.com
X-RT-Mail-Extension: chi
Date: Mon, 20 Aug 2012 07:22:09 -0700
X-Spam-Level:
To: bug-CHI [...] rt.cpan.org
Content-Transfer-Encoding: quoted-printable
From: Jonathan Swartz <swartz [...] pobox.com>
RT-Message-ID: <rt-3.8.HEAD-22204-1345472547-389.79100-0-0 [...] rt.cpan.org>
Content-Length: 1022
Download (untitled) / with headers
text/plain 1022b
On Aug 20, 2012, at 5:13 AM, njh@bandsman.co.uk via RT wrote: Show quoted text
> Queue: CHI > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=79100 > > > On 20/08/12 12:18, Jonathan Swartz via RT wrote:
>> >> CHI::t::Driver::{File,FastMmap,CacheCache,DBI,BerkeleyDB} make use of tempdir() to clean themselves itself up when the process dies. And of course CHI::t::Driver::{Memory,RawMemory} need no cleanup. >> >> So I think the only backend whose test doesn't clean itself up is Memcached. It reads and writes from a running port, when it should probably start up memcached on a new port and kill it when done. >> >> So is your concern limited to Memcached, or is there another driver that I'm thinking of? (Or a driver that you are implementing)?
> > It's a driver I've implemented. > -Nigel >
Ok, could you be more specific about your driver? Is there a way that the cleanup could be built into the backend itself (the way we do with tempdir()), rather than trying to go through and clear all namespaces, etc.?
From njh [...] bandsman.co.uk Mon Aug 20 10: 26:26 2012
MIME-Version: 1.0
X-Spam-Status: No, score=-7.808 tagged_above=-99.9 required=10 tests=[AWL=-0.908, BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5] autolearn=ham
In-Reply-To: <rt-3.8.HEAD-22204-1345472547-1464.79100-6-0 [...] rt.cpan.org>
X-Spam-Flag: NO
X-CM-Score: 0.00
References: <RT-Ticket-79100 [...] rt.cpan.org> <rt-3.8.HEAD-2185-1345449694-1177.79100-4-0 [...] rt.cpan.org> <C8B43F03-22D0-45E4-B17B-F2E2ECBDDDCA [...] pobox.com> <rt-3.8.HEAD-22450-1345461492-1552.79100-6-0 [...] rt.cpan.org> <503229D5.8030504 [...] bandsman.co.uk> <rt-3.8.HEAD-320-1345464801-1505.79100-5-0 [...] rt.cpan.org> <F47870F3-87CB-4CF0-B7ED-5FAA51CB96D1 [...] pobox.com> <rt-3.8.HEAD-22204-1345472547-1464.79100-6-0 [...] rt.cpan.org>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
Message-ID: <50324908.7020709 [...] bandsman.co.uk>
Content-Type: text/plain; charset=UTF-8; format=flowed
Organization: http://www.bandsman.co.uk
X-RT-Original-Encoding: utf-8
X-Spam-Score: -7.808
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 18A752405CD for <cpan-bug+chi [...] hipster.bestpractical.com>; Mon, 20 Aug 2012 10:26:26 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qlb+xogN1E8Q for <cpan-bug+chi [...] hipster.bestpractical.com>; Mon, 20 Aug 2012 10:26:25 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id B779E240549 for <bug-chi [...] rt.cpan.org>; Mon, 20 Aug 2012 10:26:24 -0400 (EDT)
Received: (qmail 19897 invoked by uid 103); 20 Aug 2012 14:26:24 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 20 Aug 2012 14:26:24 -0000
Received: from avasout04.plus.net (HELO avasout04.plus.net) (212.159.14.19) by 16.mx.develooper.com (qpsmtpd/0.80/v0.80-19-gf52d165) with ESMTP; Mon, 20 Aug 2012 07:26:21 -0700
Received: from bandsman.co.uk ([212.159.106.41]) by avasout04 with smtp id p2SG1j0080tcut8012SHdy; Mon, 20 Aug 2012 15:26:17 +0100
Received: from [192.168.1.15] (packard [192.168.1.15]) (authenticated bits=0) by bandsman.co.uk (8.14.4/8.14.4/Debian-2.1) with ESMTP id q7KEQGkJ004918 for <bug-CHI [...] rt.cpan.org>; Mon, 20 Aug 2012 15:26:16 +0100
Delivered-To: cpan-bug+chi [...] hipster.bestpractical.com
X-CNFS-Analysis: v=2.0 cv=T/4Ovo2Q c=1 sm=1 a=nttwQJltqK1sxTkOuIdPZw==:17 a=RrGJ57Ld49sA:10 a=y0HxHq68VoAA:10 a=AC4b6R8PCdgA:10 a=xk0GNUe6QusA:10 a=IkcTkHD0fZMA:10 a=UquIs0DwmqYA:10 a=eNcD7ojaAAAA:8 a=F00cuOMFAAAA:8 a=ZgDH1nZLrH0Bs_p1KS4A:9 a=QEXdDO2ut3YA:10 a=nttwQJltqK1sxTkOuIdPZw==:117
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.6esrpre) Gecko/20120817 Icedove/10.0.6
Subject: Re: [rt.cpan.org #79100] CHI::Test
Return-Path: <njh [...] bandsman.co.uk>
X-Spam-Check-BY: 16.mx.develooper.com
X-Original-To: cpan-bug+chi [...] hipster.bestpractical.com
X-RT-Mail-Extension: chi
Date: Mon, 20 Aug 2012 15:26:16 +0100
X-Spam-Level:
To: bug-CHI [...] rt.cpan.org
Content-Transfer-Encoding: 7bit
From: Nigel Horne <njh [...] bandsman.co.uk>
RT-Message-ID: <rt-3.8.HEAD-22724-1345472786-1014.79100-0-0 [...] rt.cpan.org>
Content-Length: 279
Download (untitled) / with headers
text/plain 279b
Show quoted text
> Ok, could you be more specific about your driver? Is there a way that the cleanup could be built into the backend itself (the way we do with tempdir()), rather than trying to go through and clear all namespaces, etc.?
See CHI::Driver::SharedMem for more information. -Nigel
From swartz [...] pobox.com Mon Aug 20 13: 11:49 2012
MIME-Version: 1.0 (Apple Message framework v1278)
X-Spam-Status: No, score=-5.196 tagged_above=-99.9 required=10 tests=[AWL=0.925, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_HI=-5, SPF_NEUTRAL=0.779] autolearn=ham
In-Reply-To: <rt-3.8.HEAD-22724-1345472786-342.79100-5-0 [...] rt.cpan.org>
X-Mailer: Apple Mail (2.1278)
X-Spam-Flag: NO
References: <RT-Ticket-79100 [...] rt.cpan.org> <rt-3.8.HEAD-2185-1345449694-1177.79100-4-0 [...] rt.cpan.org> <C8B43F03-22D0-45E4-B17B-F2E2ECBDDDCA [...] pobox.com> <rt-3.8.HEAD-22450-1345461492-1552.79100-6-0 [...] rt.cpan.org> <503229D5.8030504 [...] bandsman.co.uk> <rt-3.8.HEAD-320-1345464801-1505.79100-5-0 [...] rt.cpan.org> <F47870F3-87CB-4CF0-B7ED-5FAA51CB96D1 [...] pobox.com> <rt-3.8.HEAD-22204-1345472547-1464.79100-6-0 [...] rt.cpan.org> <50324908.7020709 [...] bandsman.co.uk> <rt-3.8.HEAD-22724-1345472786-342.79100-5-0 [...] rt.cpan.org>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
Content-Type: text/plain; charset="utf-8"
Message-ID: <A3ED5798-CA05-4140-9230-4DCE44E57A01 [...] pobox.com>
X-Sasl-Enc: nEM4ay7OAYPq0Q0JEgRQZ2SooqKV46/wqEVDK8GK8tP4 1345482697
X-RT-Original-Encoding: utf-8
X-Spam-Score: -5.196
Authentication-Results: hipster.bestpractical.com (amavisd-new); dkim=pass header.i= [...] messagingengine.com
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 082742406C2 for <cpan-bug+CHI [...] hipster.bestpractical.com>; Mon, 20 Aug 2012 13:11:49 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RxuNanSBzTI1 for <cpan-bug+CHI [...] hipster.bestpractical.com>; Mon, 20 Aug 2012 13:11:46 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 68E4D2405CD for <bug-CHI [...] rt.cpan.org>; Mon, 20 Aug 2012 13:11:46 -0400 (EDT)
Received: (qmail 1042 invoked by uid 103); 20 Aug 2012 17:11:45 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 20 Aug 2012 17:11:45 -0000
Received: from out5-smtp.messagingengine.com (HELO out5-smtp.messagingengine.com) (66.111.4.29) by 16.mx.develooper.com (qpsmtpd/0.80/v0.80-19-gf52d165) with ESMTP; Mon, 20 Aug 2012 10:11:40 -0700
Received: from compute5.internal (compute5.nyi.mail.srv.osa [10.202.2.45]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id E2A862007B for <bug-CHI [...] rt.cpan.org>; Mon, 20 Aug 2012 13:11:37 -0400 (EDT)
Received: from frontend1.nyi.mail.srv.osa ([10.202.2.160]) by compute5.internal (MEProxy); Mon, 20 Aug 2012 13:11:37 -0400
Received: from [10.197.12.66] (unknown [206.15.64.222]) by mail.messagingengine.com (Postfix) with ESMTPA id 928B68E029F for <bug-CHI [...] rt.cpan.org>; Mon, 20 Aug 2012 13:11:37 -0400 (EDT)
Delivered-To: cpan-bug+CHI [...] hipster.bestpractical.com
Subject: Re: [rt.cpan.org #79100] CHI::Test
Return-Path: <swartz [...] pobox.com>
Dkim-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-type:mime-version:subject:from :in-reply-to:date:content-transfer-encoding:message-id :references:to; s=smtpout; bh=3Df0xC/11onBW3L638YCPMkGvs0=; b=EX 9Es9n/GAS/zWXd5HE/BY6bp67IiiChsOkhSIJ3a3UOJl7OBC5Z7SWH0Kn7nX9wRi RsKTT1wQF7vjZsxlhrpgw3H9vzeZ8YKTmJJ/BRL5ksAv/MrneKb62668vYS/tlkj yx5B5YoiXErDgmjgPkoTW8UV716TUEV0FaX9pqCRU=
X-Spam-Check-BY: 16.mx.develooper.com
X-Original-To: cpan-bug+CHI [...] hipster.bestpractical.com
X-RT-Mail-Extension: chi
Date: Mon, 20 Aug 2012 10:11:36 -0700
X-Spam-Level:
To: bug-CHI [...] rt.cpan.org
Content-Transfer-Encoding: quoted-printable
From: Jonathan Swartz <swartz [...] pobox.com>
RT-Message-ID: <rt-3.8.HEAD-30805-1345482709-29.79100-0-0 [...] rt.cpan.org>
Content-Length: 1501
Download (untitled) / with headers
text/plain 1.4k
On Aug 20, 2012, at 7:26 AM, njh@bandsman.co.uk via RT wrote: Show quoted text
> Queue: CHI > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=79100 > > >
>> Ok, could you be more specific about your driver? Is there a way that the cleanup could be built into the backend itself (the way we do with tempdir()), rather than trying to go through and clear all namespaces, etc.?
> > See CHI::Driver::SharedMem for more information. >
Ok. So I think you want to do the equivalent of what the other modules do with tempdir(), that is, create a shared memory segment that is guaranteed to be cleaned up at the end of the process. I don't know much about shared memory but maybe something like: END { IPC::SharedMem->new(12344321, …)->remove(); } Of course there's nothing you can do in case of a kill -9, server crash, etc. I will add something to CHI::Driver::Development about how each driver test is responsible for cleaning up its backend. IMO arranging things so that the backend can be cleaned up in one go is much more likely to succeed than trying to remove all the namespaces and keys that were touched during the tests. Unrelated note: In your docs, looks like you need to format this section for code: Number of bytes in the cache [ int ] 'cache' => { 'namespace1' => { 'key1' => 'value1', 'key2' -> 'value2', ... } 'namespace2' => { 'key1' => 'value3', 'key3' => 'value2', ... } … } e.g. see how it displays on https://metacpan.org/module/CHI::Driver::SharedMem Best Jon
From njh [...] bandsman.co.uk Mon Aug 20 13: 16:21 2012
MIME-Version: 1.0
X-Spam-Status: No, score=-7.76 tagged_above=-99.9 required=10 tests=[AWL=-0.860, BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5] autolearn=ham
In-Reply-To: <rt-3.8.HEAD-30805-1345482710-1317.79100-6-0 [...] rt.cpan.org>
X-Spam-Flag: NO
X-CM-Score: 0.00
References: <RT-Ticket-79100 [...] rt.cpan.org> <rt-3.8.HEAD-2185-1345449694-1177.79100-4-0 [...] rt.cpan.org> <C8B43F03-22D0-45E4-B17B-F2E2ECBDDDCA [...] pobox.com> <rt-3.8.HEAD-22450-1345461492-1552.79100-6-0 [...] rt.cpan.org> <rt-3.8.HEAD-320-1345464801-1505.79100-5-0 [...] rt.cpan.org> <F47870F3-87CB-4CF0-B7ED-5FAA51CB96D1 [...] pobox.com> <rt-3.8.HEAD-22204-1345472547-1464.79100-6-0 [...] rt.cpan.org> <50324908.7020709 [...] bandsman.co.uk> <rt-3.8.HEAD-22724-1345472786-342.79100-5-0 [...] rt.cpan.org> <A3ED5798-CA05-4140-9230-4DCE44E57A01 [...] pobox.com> <rt-3.8.HEAD-30805-1345482710-1317.79100-6-0 [...] rt.cpan.org>
X-Virus-Checked: Checked by ClamAV on 16.mx.develooper.com
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
Message-ID: <503270D6.3020606 [...] bandsman.co.uk>
Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha1; boundary="------------ms060000080709070904080304"
Organization: NJH Music
X-Spam-Score: -7.76
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 1D8BB2405CD for <cpan-bug+chi [...] hipster.bestpractical.com>; Mon, 20 Aug 2012 13:16:21 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id iZb3TNLXtXgt for <cpan-bug+chi [...] hipster.bestpractical.com>; Mon, 20 Aug 2012 13:16:19 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 241822405BE for <bug-chi [...] rt.cpan.org>; Mon, 20 Aug 2012 13:16:18 -0400 (EDT)
Received: (qmail 1318 invoked by uid 103); 20 Aug 2012 17:16:18 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 20 Aug 2012 17:16:18 -0000
Received: from avasout05.plus.net (HELO avasout05.plus.net) (84.93.230.250) by 16.mx.develooper.com (qpsmtpd/0.80/v0.80-19-gf52d165) with ESMTP; Mon, 20 Aug 2012 10:16:12 -0700
Received: from bandsman.co.uk ([212.159.106.41]) by avasout05 with smtp id p5G71j0060tcut8015G8ox; Mon, 20 Aug 2012 18:16:09 +0100
Received: from philips.bandsman.co.uk (philips.bandsman.co.uk [192.168.1.8]) by bandsman.co.uk (8.14.4/8.14.4/Debian-2.1) with ESMTP id q7KHG75N001591 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NOT) for <bug-CHI [...] rt.cpan.org>; Mon, 20 Aug 2012 18:16:07 +0100
Delivered-To: cpan-bug+chi [...] hipster.bestpractical.com
X-CNFS-Analysis: v=2.0 cv=FYC1NeC6 c=1 sm=1 a=nttwQJltqK1sxTkOuIdPZw==:17 a=Q4q64CP9WR8A:10 a=y0HxHq68VoAA:10 a=AC4b6R8PCdgA:10 a=xk0GNUe6QusA:10 a=UquIs0DwmqYA:10 a=eNcD7ojaAAAA:8 a=F00cuOMFAAAA:8 a=wyjpycHzAAAA:8 a=l7aBgIL3qmQL9-Y6CLgA:9 a=QEXdDO2ut3YA:10 a=mA-gV274Qc5y82lK:21 a=EWG_YCZ18SkVQybK:21 a=24k34misAAAA:8 a=S1QtCh9HhWLINandhUgA:9 a=ZVk8-NSrHBgA:10 a=cQpvnWx6c2HAXZmY:21 a=nttwQJltqK1sxTkOuIdPZw==:117
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:10.0.6esrpre) Gecko/20120817 Icedove/10.0.6
Subject: Re: [rt.cpan.org #79100] CHI::Test
Return-Path: <njh [...] bandsman.co.uk>
X-Spam-Check-BY: 16.mx.develooper.com
X-Original-To: cpan-bug+chi [...] hipster.bestpractical.com
X-RT-Mail-Extension: chi
Date: Mon, 20 Aug 2012 18:16:06 +0100
X-Spam-Level:
To: bug-CHI [...] rt.cpan.org
From: Nigel Horne <njh [...] bandsman.co.uk>
RT-Message-ID: <rt-3.8.HEAD-2185-1345482981-989.79100-0-0 [...] rt.cpan.org>
Content-Length: 0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: quoted-printable
X-RT-Original-Encoding: utf-8
Content-Length: 1278
Download (untitled) / with headers
text/plain 1.2k
On 20/08/12 18:11, Jonathan Swartz via RT wrote: Show quoted text
> > Ok. So I think you want to do the equivalent of what the other modules do with tempdir(), that is, create a shared memory segment that is guaranteed to be cleaned up at the end of the process. I don't know much about shared memory but maybe something like: > > END { IPC::SharedMem->new(12344321, …)->remove(); } > > Of course there's nothing you can do in case of a kill -9, server crash, etc. > > I will add something to CHI::Driver::Development about how each driver test is responsible for cleaning up its backend.
Great - that would help a lot thanks. Show quoted text
> > IMO arranging things so that the backend can be cleaned up in one go is much more likely to succeed than trying to remove all the namespaces and keys that were touched during the tests. > > Unrelated note: In your docs, looks like you need to format this section for code: > > Number of bytes in the cache [ int ] 'cache' => { 'namespace1' => { 'key1' => 'value1', 'key2' -> 'value2', ... } 'namespace2' => { 'key1' => 'value3', 'key3' => 'value2', ... } … } > > e.g. see how it displays on https://metacpan.org/module/CHI::Driver::SharedMem
Yes - I did know that, I've already made a note in a FIXME note in the source. Show quoted text
> > Best > Jon >
Content-Description: S/MIME Cryptographic Signature
content-type: application/pkcs7-signature; name="smime.p7s"
content-disposition: attachment; filename="smime.p7s"
Content-Transfer-Encoding: base64
Content-Length: 4459
Download smime.p7s
application/pkcs7-signature 4.3k

Message body not shown because it is not plain text.



This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.