See <http://yast.suse.de:3334/job/webyast-service-head-i586/639/changes> Changes: [Josef Reidinger] language: migrate to BaseModel and various fix migrate language to BaseModel remove onliners views check permissions before checking argument to have same behavior as others clean code temporaly remove available languages caching (need measure before dirtying code) unify naming of current language [Stefan Schubert] handle PackageKit errors (bnc #559233) [Stefan Schubert] Merge branch 'master' of git@git.opensuse.org:projects/yast/rest-service [Ladislav Slezak] - read avaliable patches in a separate thread (in background) - initial commit [Ladislav Slezak] added inxed.xml?background parameter for reading patches in background [Ladislav Slezak] do not cache background progress result cache only the real patches status, not the background progress [Ladislav Slezak] don't use background mode if cache_classes = false - static class members are lost on class reloading - increased patch cache validity to 15 minutes (libzypp refreshes the cache only after 10 minutes anyway) [Ladislav Slezak] use a Mutex for accessing the shared variables make the code thread safe using a Mutex object for accesing the shared variables [Ladislav Slezak] patch.rb - added comments [Ladislav Slezak] cache ResourcesController#index action speeds up the call about 4x, in absolute numbers it saves just about 10ms, but that's not bad for just one line patch [Ladislav Slezak] cache PermissionsController#show result [Ladislav Slezak] optionally read system status at background [Ladislav Slezak] Fixed reading patches in background read patches in a separate process, do not use threads in this case - ruby-dbus is NOT thread safe added a callback to BackgroundStatus class [Ladislav Slezak] background_status.rb has been moved to the base package so it can be used in other plugins (the status plugin currently) [Ladislav Slezak] patches and status - moved the shared background code to BackgroundManager module (for thread safe acess and better readability) [Ladislav Slezak] subprogress: use -1 instead of nil as the default value nil.to_i => 0, after deserialization from XML it was not possible to distinguish between 0% and no subprogress [Ladislav Slezak] pass also the requested patch ID to the subscript [Ladislav Slezak] change BackgroundManager module to a singleton object [Ladislav Slezak] BackgroundManager - fixed returning values from critical sections BackgroundStatus - code clean up [Ladislav Slezak] code cleanup [Ladislav Slezak] use -1 instead of nil for unknown (sub)progress [Ladislav Slezak] BackgroundStatus - use Observable design pattern for reporting changes in progress [Ladislav Slezak] added BackgroundManager testsuite [Ladislav Slezak] added BackgroundStatus test suite [Ladislav Slezak] testsuite update [Ladislav Slezak] use constants instead of variables in tests [Ladislav Slezak] updated patches test case [Ladislav Slezak] do not raise PackageKit exception inside a DBus signal handler it hangs the service (bnc#565930) [Ladislav Slezak] handle exceptions in the helper script [Ladislav Slezak] patch model - accept exceptions from the subprocess [Stefan Schubert] cleanup code; bring metrix to the level of status [Stefan Schubert] Merge branch 'master' of git@git.opensuse.org:projects/yast/rest-service [Stefan Schubert] code cleanup [Stefan Schubert] added graph configuration file; some changes due Josefs comments, thanks :-) [Stefan Schubert] cleanuped exceptions [Stefan Schubert] cleanup continued; added new controller for graphs [Ladislav Slezak] patch - properly return background result updated testsuite, moved helper script outputs to separate files [Ladislav Slezak] status controller - 'stop' parameter is required in background mode at least 'stop' parameter must be present if background mode is used, it is needed for identifying the request when polling for the result updated testsuite [Stefan Schubert] added testcase for Graph; changed code for testcase in order to stup [Stefan Schubert] Merge branch 'master' of git@gitorious.org:opensuse/yast-rest-service [Stefan Schubert] correct array in xml [Ladislav Slezak] updated .changes [Ladislav Slezak] updated .changes [Ladislav Slezak] reverted back development mode config changes these changes are needed to test background mode changes (which works only in "production"), they should not have been committed to the master [Ladislav Slezak] added restdoc cotroller for accessing REST service documentation (bnc#547216) - added a simple 'main' layout for HTML responses [Ladislav Slezak] enable 'rake restdoc' call for all plugins needed for testing restdoc index feature (bnc#547216) when running directly from GIT repository [Josef Reidinger] finally find workaround for strange error with missing to_xml method, but solution is not ideal (TODO ask and show to Karel when they come there). [Stefan Schubert] fixes in order to enable ActiveResource for reading the returned data [Stefan Schubert] Merge branch 'master' of git@gitorious.org:opensuse/yast-rest-service [Stefan Schubert] new standard configuration [Josef Reidinger] improve fix of problem with problematic loading of serializers now it is fast in production and in development it force load of serializers [Stefan Schubert] typo [Stefan Schubert] Merge branch 'master' of git@gitorious.org:opensuse/yast-rest-service [Stefan Schubert] evaluate data in the controller in order to handle exceptions correctly [Stefan Schubert] checking limits in the controller framework in order to handle exceptions correctly [Stefan Schubert] make ActiveResource happy [Josef Reidinger] add example to BaseModel documentation ------------------------------------------ Started by an SCM change Checkout Cloning git://gitorious.org/opensuse/yast-rest-service.git $ git clone git://gitorious.org/opensuse/yast-rest-service.git <http://yast.suse.de:3334/job/webyast-service-head-i586/ws/> Initialized empty Git repository in <http://yast.suse.de:3334/job/webyast-service-head-i586/ws/.git/> [workspace] $ git fetch Checking out origin/master [workspace] $ git checkout -f origin/master Note: moving to "origin/master" which isn't a local branch If you want to create a new branch from this checkout, you may do so (now or later) by using -b with the checkout command again. Example: git checkout -b <new_branch_name> HEAD is now at c594847... add example to BaseModel documentation [workspace] $ git rev-parse origin/master [workspace] $ git log --numstat -M --summary --pretty=raw d7761e7f9931cba8267c3f77406337ec6a5d7c86..c5948474b72efed143f6bd823d568fdc40e87073 [locks-and-latches] Checking to see if we really have the locks [locks-and-latches] Have all the locks, build can start [workspace] $ /bin/sh -xe /tmp/hudson7986354884069466027.sh + sudo -E /data/hudson/bin/build-chroot.sh webyast rest-service head-i586 SCRIPT ID: I am /data/hudson/bin/build-chroot.sh at <http://yast.suse.de:3334/job/webyast-service-head-i586/ws/> ..copying source code <http://yast.suse.de:3334/job/webyast-service-head-i586/ws/*> /data/hudson/HUDSON-CHROOT/webyast-head-i586/src/rest-service ..copying make script to /data/hudson/HUDSON-CHROOT/webyast-head-i586/root ... mounting sys ... mounting proc ... mounting pts mount: special device none does not exist Can't mount devpts /data/hudson/HUDSON-CHROOT/webyast-head-i586/dev/pts ... switching to chroot and starting build SCRIPT ID: I am /root/make-zypp.sh at / hostname: Host name lookup failure /root/make-zypp.sh: line 83: icecc: command not found ??,????????'????????,????,????????'????????,????,????????'????????,????,????????'????????,????,????????'????????,?? + echo webyast-rest-service webyast-rest-service + case "${MODULE}" in + SUBDIR=webservice + cd /src/rest-service + echo /src/rest-service /src/rest-service + ls INSTALL Makefile README Rakefile index.html.template plugins policy-tools rpam ruby-polkit webservice webservice-tasks + [[ rest-service == \r\e\s\t\-\s\e\r\v\i\c\e ]] + echo 'start dbus..' start dbus.. + /etc/init.d/dbus start /root/make-zypp.sh: line 583: /etc/init.d/dbus: No such file or directory ++ error_exit 127 ++ echo 'ERROR: detected exit code 127' ERROR: detected exit code 127 ++ footer_and_exit 1 ++ '[' -z 1 ']' ++ MYEXIT=1 ++ '[' 1 == 0 ']' ++ ascii_failed ++ cat ( ) ( ) ( ) _ ) ( \_ _(_\ \)__ (____\___)) build failed ++ echo 'stopping dbus..' stopping dbus.. ++ /etc/init.d/dbus stop /root/make-zypp.sh: line 110: /etc/init.d/dbus: No such file or directory ++ exit 1 ... unmounting sys ... unmounting proc ... unmounting pts umount: /data/hudson/HUDSON-CHROOT/webyast-head-i586/dev/pts: not mounted Can't unmount devpts /data/hudson/HUDSON-CHROOT/webyast-head-i586/dev/pts [locks-and-latches] Releasing all the locks [locks-and-latches] All the locks released Publishing Javadoc Archiving artifacts Build wasn't successful, skipping saikuro coverage report Publishing rails stats report... [workspace] $ rake --silent stats Failed to send e-mail to Stefan Schubert because no e-mail address is known, and no default e-mail domain is configured -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org