Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 306439 - (new package) app-portage/portage-jobsmon - parallel emerge log watcher
Summary: (new package) app-portage/portage-jobsmon - parallel emerge log watcher
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Default Assignee for New Packages
URL: http://proj.mgorny.alt.pl/misc/#porta...
Whiteboard: [sunrise-overlay]
Keywords: EBUILD, InOverlay
Depends on:
Blocks:
 
Reported: 2010-02-22 20:41 UTC by Michał Górny
Modified: 2016-06-08 16:01 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
The ebuild as suggested to Sunrise (portage-jobsmon-0.1.ebuild,905 bytes, text/plain)
2010-02-22 23:24 UTC, Michał Górny
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2010-02-22 20:41:06 UTC
portage-jobsmon is a Python script to track currently running emerges and display their logs on a split-screen basis. Due to use of inotify, it can update them quickly while keeping CPU usage low.
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2010-02-22 23:24:20 UTC
Created attachment 220779 [details]
The ebuild as suggested to Sunrise
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2010-02-23 12:38:35 UTC
The ebuild has been commited to Sunrise overlay. After review, it'll be available at:

http://overlays.gentoo.org/proj/sunrise/browser/reviewed/app-portage/portage-
jobsmon/
Comment 3 Florian Klink 2011-12-26 07:11:18 UTC
Hi,

thanks for your script Michał, bit very often I get a "IndexError: list index out of range" when monitoring for example emerge -uavDN -j3 world.

I simply let portage-jobsmon run for some minutes, and then it crashes with the following:


Traceback (most recent call last):
  File "/usr/bin/portage-jobsmon", line 544, in <module>
    sys.exit(main(sys.argv))
  File "/usr/bin/portage-jobsmon", line 539, in main
    curses.wrapper(cursesmain, opts, args)
  File "/usr/lib64/python2.7/curses/wrapper.py", line 43, in wrapper
    return func(stdscr, *args, **kwds)
  File "/usr/bin/portage-jobsmon", line 498, in cursesmain
    n.loop(callback = timeriter)
  File "/usr/lib64/python2.7/site-packages/pyinotify.py", line 1437, in loop
    if (callback is not None) and (callback(self) is True):
  File "/usr/bin/portage-jobsmon", line 487, in timeriter
    find_locks(ts)
  File "/usr/bin/portage-jobsmon", line 430, in find_locks
    w = window_add(dir)
  File "/usr/bin/portage-jobsmon", line 410, in window_add
    w.watchd = list(wm.add_watch(fn, pyinotify.IN_MODIFY).values())[0]
IndexError: list index out of range


Do you have any idea what causes this one?
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2011-12-26 10:34:34 UTC
The script is currently unmaintained and won't work fine with current Portage and its IPC reopening and closing the files faster than inotify could handle it.

I intend to rewrite it at some point. It needs a lot of love to work neatly nowadays, and support all the various cases which can occur.

In the meantime, I think we ought to mask this package for removal from sunrise.