Modify

Opened 6 years ago

Closed 6 years ago

#3050 closed defect (fixed)

TimingAndEstimationPlugin post-commit hook is not finding any command groups

Reported by: rnmixon@… Owned by: bobbysmith007
Priority: normal Component: TimingAndEstimationPlugin
Severity: normal Keywords: post-commit hook
Cc: rnmixon@… Trac Release: 0.11

Description

My standard Trac post-commit hook is working fine. I am using a Trac version 0.11dev-r6306 running on a JEOS version of Ubuntu 710. Installed the 0.11 version of the plugin and all is working, but had not put the new post-commit hook in place.

I put the hook in place but it did not appear to be working. I modified the logging and am getting the following out:

Begin Log
self.msg:(In [69]) Test for adding hours to an issue (ignore for this ticket). References #43 (2).
cmd_groups:[]

Here is what I get when I try and re-run the post-commit manually from the command line:

svn@dsbgdev:~/svnDSBG/hooks$ env - /home/svn/svnDSBG/hooks/post-commit /home/svn/svnDSBG 71
23:52:12 Trac[loader] DEBUG: Adding plugin timingandestimationplugin 0.6.5 from /usr/lib/python2.5/site-packages/timingandestimationplugin-0.6.5-py2.5.egg
23:52:12 Trac[loader] DEBUG: Loading trac.ticket.web_ui from /usr/lib/python2.5/site-packages/Trac-0.11dev_r6306-py2.5.egg
23:52:12 Trac[loader] DEBUG: Loading trac.mimeview.php from /usr/lib/python2.5/site-packages/Trac-0.11dev_r6306-py2.5.egg
23:52:12 Trac[loader] DEBUG: Loading trac.ticket.query from /usr/lib/python2.5/site-packages/Trac-0.11dev_r6306-py2.5.egg
23:52:12 Trac[loader] DEBUG: Loading trac.attachment from /usr/lib/python2.5/site-packages/Trac-0.11dev_r6306-py2.5.egg
23:52:12 Trac[loader] DEBUG: Loading trac.versioncontrol.svn_fs from /usr/lib/python2.5/site-packages/Trac-0.11dev_r6306-py2.5.egg
23:52:12 Trac[loader] DEBUG: Loading trac.mimeview.patch from /usr/lib/python2.5/site-packages/Trac-0.11dev_r6306-py2.5.egg
23:52:12 Trac[loader] DEBUG: Loading trac.mimeview.txtl from /usr/lib/python2.5/site-packages/Trac-0.11dev_r6306-py2.5.egg
23:52:12 Trac[loader] WARNING: Skipping "trac.mimeview.txtl = trac.mimeview.txtl [textile]": ("textile>=2.0" not found)
23:52:12 Trac[loader] DEBUG: Loading trac.admin.web_ui from /usr/lib/python2.5/site-packages/Trac-0.11dev_r6306-py2.5.egg
23:52:12 Trac[loader] DEBUG: Loading trac.ticket.admin from /usr/lib/python2.5/site-packages/Trac-0.11dev_r6306-py2.5.egg
23:52:12 Trac[loader] DEBUG: Loading trac.mimeview.rst from /usr/lib/python2.5/site-packages/Trac-0.11dev_r6306-py2.5.egg
23:52:12 Trac[loader] WARNING: Skipping "trac.mimeview.rst = trac.mimeview.rst [rest]": ("docutils>=0.3" not found)
23:52:12 Trac[loader] DEBUG: Loading trac.db.postgres from /usr/lib/python2.5/site-packages/Trac-0.11dev_r6306-py2.5.egg
23:52:12 Trac[loader] DEBUG: Loading trac.versioncontrol.web_ui from /usr/lib/python2.5/site-packages/Trac-0.11dev_r6306-py2.5.egg
23:52:12 Trac[loader] DEBUG: Loading trac.timeline from /usr/lib/python2.5/site-packages/Trac-0.11dev_r6306-py2.5.egg
23:52:12 Trac[loader] DEBUG: Loading trac.mimeview.pygments from /usr/lib/python2.5/site-packages/Trac-0.11dev_r6306-py2.5.egg
23:52:12 Trac[loader] DEBUG: Loading trac.about from /usr/lib/python2.5/site-packages/Trac-0.11dev_r6306-py2.5.egg
23:52:12 Trac[loader] DEBUG: Loading trac.ticket.roadmap from /usr/lib/python2.5/site-packages/Trac-0.11dev_r6306-py2.5.egg
23:52:12 Trac[loader] DEBUG: Loading trac.mimeview.silvercity from /usr/lib/python2.5/site-packages/Trac-0.11dev_r6306-py2.5.egg
23:52:12 Trac[loader] WARNING: Skipping "trac.mimeview.silvercity = trac.mimeview.silvercity [silvercity]": ("SilverCity>=0.9.4" not found)
23:52:12 Trac[loader] DEBUG: Loading trac.wiki.macros from /usr/lib/python2.5/site-packages/Trac-0.11dev_r6306-py2.5.egg
23:52:12 Trac[loader] DEBUG: Loading trac.db.sqlite from /usr/lib/python2.5/site-packages/Trac-0.11dev_r6306-py2.5.egg
23:52:12 Trac[loader] DEBUG: Loading trac.wiki.web_ui from /usr/lib/python2.5/site-packages/Trac-0.11dev_r6306-py2.5.egg
23:52:12 Trac[loader] DEBUG: Loading trac.mimeview.enscript from /usr/lib/python2.5/site-packages/Trac-0.11dev_r6306-py2.5.egg
23:52:12 Trac[loader] DEBUG: Loading trac.web.auth from /usr/lib/python2.5/site-packages/Trac-0.11dev_r6306-py2.5.egg
23:52:12 Trac[loader] DEBUG: Loading trac.admin.console from /usr/lib/python2.5/site-packages/Trac-0.11dev_r6306-py2.5.egg
23:52:12 Trac[loader] DEBUG: Loading trac.db.mysql from /usr/lib/python2.5/site-packages/Trac-0.11dev_r6306-py2.5.egg
23:52:12 Trac[loader] DEBUG: Loading trac.search from /usr/lib/python2.5/site-packages/Trac-0.11dev_r6306-py2.5.egg
23:52:12 Trac[loader] DEBUG: Loading trac.prefs from /usr/lib/python2.5/site-packages/Trac-0.11dev_r6306-py2.5.egg
23:52:12 Trac[loader] DEBUG: Loading trac.ticket.report from /usr/lib/python2.5/site-packages/Trac-0.11dev_r6306-py2.5.egg
23:52:12 Trac[loader] DEBUG: Loading timingandestimationplugin from /usr/lib/python2.5/site-packages/timingandestimationplugin-0.6.5-py2.5.egg
23:52:13 Trac[default_workflow] DEBUG: Workflow actions at initialization: {'leave': {'operations': [u'leave_status'], 'name': 'leave', 'default': 1, 'newstate': u'*', 'oldstates': [u'*'], 'permissions': []}, 'reopen': {'operations': [u'del_resolution'], 'name': 'reopen', 'default': 0, 'newstate': u'reopened', 'oldstates': [u'closed'], 'permissions': [u'TICKET_CREATE']}, 'resolve': {'operations': [u'set_resolution'], 'name': 'resolve', 'default': 0, 'newstate': u'closed', 'oldstates': [u'new', u'assigned', u'accepted', u'reopened'], 'permissions': [u'TICKET_MODIFY']}, 'accept': {'operations': [u'set_owner_to_self'], 'name': 'accept', 'default': 0, 'newstate': u'accepted', 'oldstates': [u'new', u'assigned', u'accepted', u'reopened'], 'permissions': [u'TICKET_MODIFY']}, 'reassign': {'operations': [u'set_owner'], 'name': 'reassign', 'default': 0, 'newstate': u'assigned', 'oldstates': [u'new', u'assigned', u'accepted', u'reopened'], 'permissions': [u'TICKET_MODIFY']}}

23:52:13 Trac[api] DEBUG: NEEDS UP?: sys:False, rep:False, stats:False, fields:False, man:False
23:52:13 Trac[svn_fs] DEBUG: Subversion bindings imported
svn@dsbgdev:~/svnDSBG/hooks$

Any pointers are appreciated.

Attachments (0)

Change History (5)

comment:1 Changed 6 years ago by bobbysmith007

  • Resolution set to fixed
  • Status changed from new to closed

I think that you may have fat fingered the revision in which case you may have meant r3606 (which is a bit closer to an actual revision). Very recently I changed those regular expressions to be case insensitive (previously they only worked with lowercase). I am guessing that this is the problem affecting you.

Hope this helps, feel free to reopen if not
Russ

ps. See #3035

comment:2 Changed 6 years ago by anonymous

  • Resolution fixed deleted
  • Status changed from closed to reopened

Sorry, I'm probably being dense and not understanding what revision you are referring to.

I tried the following instead and it does not appear to be an improvement.

svn@dsbgdev:~/svnDSBG/hooks$ env - /home/svn/svnDSBG/hooks/post-commit /home/svn/svnDSBG r69
svn: Invalid revision number supplied
svn: Invalid revision number supplied
07:14:13 Trac[loader] DEBUG: Adding plugin timingandestimationplugin 0.6.5 from /usr/lib/python2.5/site-packages/timingandestimationplugin-0.6.5-py2.5.egg
07:14:13 Trac[loader] DEBUG: Loading trac.ticket.web_ui from /usr/lib/python2.5/site-packages/Trac-0.11dev_r6306-py2.5.egg
07:14:13 Trac[loader] DEBUG: Loading trac.mimeview.php from /usr/lib/python2.5/site-packages/Trac-0.11dev_r6306-py2.5.egg
...

comment:3 Changed 6 years ago by anonymous

NEVER MIND. I should never work on something before having my coffee in the morning. Apologies for the dump use of "r".

I downloaded the latest change to the script that you pointed me to and it now works. THANK YOU!

comment:4 Changed 6 years ago by bobbysmith007

Glad to help

Russ

comment:5 Changed 6 years ago by bobbysmith007

  • Resolution set to fixed
  • Status changed from reopened to closed

Add Comment

Modify Ticket

Action
as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from bobbysmith007. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.