See http://yast.suse.de:3334/job/webyast-service-11.1-i586/687/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 ------------------------------------------ [...truncated 1047 lines...] 0 tests, 0 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications *** registering plugins *** /usr/bin/ruby -I"lib:test" "/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb" (in /src/rest-service/plugins/securities) /usr/bin/ruby -I"lib:test" "/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb" /usr/bin/ruby -I"lib:test" "/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb" Loaded suite /usr/bin/rake Started Finished in 9.0e-05 seconds. 0 tests, 0 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications *** registering plugins *** /usr/bin/ruby -I"lib:test" "/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb" "test/unit/language_test.rb" (in /src/rest-service/plugins/language) *** registering plugins *** Loaded suite /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader Started .... Finished in 0.588835 seconds. 4 tests, 8 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications /usr/bin/ruby -I"lib:test" "/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb" "test/functional/language_controller_test.rb" *** registering plugins *** Loaded suite /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader Started ....... Finished in 0.726232 seconds. 7 tests, 16 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications /usr/bin/ruby -I"lib:test" "/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb" Loaded suite /usr/bin/rake Started Finished in 8.4e-05 seconds. 0 tests, 0 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications *** registering plugins *** /usr/bin/ruby -I"lib:test" "/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb" "test/unit/services_test.rb" (in /src/rest-service/plugins/services) *** registering plugins *** Loaded suite /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader Started ........ Finished in 0.344222 seconds. 8 tests, 9 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications /usr/bin/ruby -I"lib:test" "/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb" "test/functional/services_controller_test.rb" *** registering plugins *** Loaded suite /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader Started ... Finished in 0.446374 seconds. 3 tests, 3 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications /usr/bin/ruby -I"lib:test" "/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb" Loaded suite /usr/bin/rake Started Finished in 8.6e-05 seconds. 0 tests, 0 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications *** registering plugins *** /usr/bin/ruby -I"lib:test" "/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb" "test/unit/license_test.rb" (in /src/rest-service/plugins/eulas) *** registering plugins *** Loaded suite /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader Started./test/unit/license_test.rb:11: warning: already initialized constant RESOURCES_DIR ./test/unit/license_test.rb:12: warning: already initialized constant VAR_DIR ../test/unit/license_test.rb:11: warning: already initialized constant RESOURCES_DIR ./test/unit/license_test.rb:12: warning: already initialized constant VAR_DIR ../test/unit/license_test.rb:11: warning: already initialized constant RESOURCES_DIR ./test/unit/license_test.rb:12: warning: already initialized constant VAR_DIR ../test/unit/license_test.rb:11: warning: already initialized constant RESOURCES_DIR ./test/unit/license_test.rb:12: warning: already initialized constant VAR_DIR ../test/unit/license_test.rb:11: warning: already initialized constant RESOURCES_DIR ./test/unit/license_test.rb:12: warning: already initialized constant VAR_DIR ../test/unit/license_test.rb:11: warning: already initialized constant RESOURCES_DIR ./test/unit/license_test.rb:12: warning: already initialized constant VAR_DIR . Finished in 0.472908 seconds. 6 tests, 17 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications /usr/bin/ruby -I"lib:test" "/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb" "test/functional/eulas_controller_test.rb" *** registering plugins *** Loaded suite /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader Started./test/functional/eulas_controller_test.rb:22: warning: already initialized constant RESOURCES_DIR ./test/functional/eulas_controller_test.rb:23: warning: already initialized constant VAR_DIR ../test/functional/eulas_controller_test.rb:22: warning: already initialized constant RESOURCES_DIR ./test/functional/eulas_controller_test.rb:23: warning: already initialized constant VAR_DIR ../test/functional/eulas_controller_test.rb:22: warning: already initialized constant RESOURCES_DIR ./test/functional/eulas_controller_test.rb:23: warning: already initialized constant VAR_DIR . Finished in 0.738402 seconds. 3 tests, 7 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications /usr/bin/ruby -I"lib:test" "/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb" Loaded suite /usr/bin/rake Started Finished in 8.8e-05 seconds. 0 tests, 0 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications *** registering plugins *** /usr/bin/ruby -I"lib:test" "/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb" "test/unit/ntp_test.rb" (in /src/rest-service/plugins/ntp) *** registering plugins *** Loaded suite /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader Started .... Finished in 0.499221 seconds. 4 tests, 12 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications /usr/bin/ruby -I"lib:test" "/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb" "test/functional/ntp_controller_test.rb" *** registering plugins *** Loaded suite /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader Started ... Finished in 0.536855 seconds. 3 tests, 6 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications /usr/bin/ruby -I"lib:test" "/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb" Loaded suite /usr/bin/rake Started Finished in 8.8e-05 seconds. 0 tests, 0 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications *** registering plugins *** /usr/bin/ruby -I"lib:test" "/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb" "test/unit/graph_test.rb" "test/unit/metric_test.rb" "test/unit/status_test.rb" (in /src/rest-service/plugins/status) *** registering plugins *** Loaded suite /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader Started E.E..E...... Finished in 0.459574 seconds. 1) Error: test_check_limits_and_xml(GraphTest): NoMethodError: undefined method `size' for #Graph:0xf6da5c2c /test/unit/graph_test.rb:64:in `test_check_limits_and_xml' activesupport (2.3.5) lib/active_support/testing/setup_and_teardown.rb:62:in `__send__' activesupport (2.3.5) lib/active_support/testing/setup_and_teardown.rb:62:in `run' 2) Error: test_finders(GraphTest): NoMethodError: undefined method `size' for #Graph:0xf6d96164 /test/unit/graph_test.rb:38:in `test_finders' activesupport (2.3.5) lib/active_support/testing/setup_and_teardown.rb:62:in `__send__' activesupport (2.3.5) lib/active_support/testing/setup_and_teardown.rb:62:in `run' 3) Error: test_parse_rrdtool_output(MetricTest): NoMethodError: You have a nil object when you didn't expect it! You might have expected an instance of ActiveRecord::Base. The error occurred while evaluating nil.[] ./plugins/status/app/models/metric.rb:260:in `to_xml' activesupport (2.3.5) lib/active_support/vendor/builder-2.1.2/builder/xmlbase.rb:134:in `call' activesupport (2.3.5) lib/active_support/vendor/builder-2.1.2/builder/xmlbase.rb:134:in `_nested_structures' activesupport (2.3.5) lib/active_support/vendor/builder-2.1.2/builder/xmlbase.rb:58:in `method_missing' ./plugins/status/app/models/metric.rb:236:in `to_xml' /test/unit/metric_test.rb:127:in `test_parse_rrdtool_output' activesupport (2.3.5) lib/active_support/testing/setup_and_teardown.rb:62:in `__send__' activesupport (2.3.5) lib/active_support/testing/setup_and_teardown.rb:62:in `run' 12 tests, 40 assertions, 0 failures, 3 errors, 0 pendings, 0 omissions, 0 notifications /usr/bin/ruby -I"lib:test" "/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb" "test/functional/status_controller_test.rb" *** registering plugins *** Loaded suite /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader Started ....... Finished in 0.563863 seconds. 7 tests, 4 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications /usr/bin/ruby -I"lib:test" "/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb" Errors running test:units! rake aborted! Error on execute '/usr/bin/rake test' inside plugins/status/ /src/rest-service/Rakefile:29 (See full trace by running task with --trace) ++ error_exit 1 ++ echo 'ERROR: detected exit code 1' ERROR: detected exit code 1 ++ 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 Shutting down D-Bus daemon..done ++ exit 1 ... unmounting sys ... unmounting proc ... unmounting pts umount: /data/hudson/HUDSON-CHROOT/webyast-11.1-i586/dev/pts: not mounted Can't unmount devpts /data/hudson/HUDSON-CHROOT/webyast-11.1-i586/dev/pts [locks-and-latches] Releasing all the locks [locks-and-latches] All the locks released 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