view · edit · sidebar · attach · print · history

20110415-testcases-oddb_org-view-swissmedic_cat_rb-dataformat_rb-hospitallist_rb-model-search_result_rb

<< | Index | >>


  1. Check update_medwin_package
  2. Update testcases

Goal/Estimate/Evaluation
  • Testcases / 83% / 83.31%
Milestones
  • Update testcases
    1. Check order of meddata testcases 8:30
    2. src/view/ajax/swissmedic_cat.rb (coverage: 100%) 9:00
    3. src/view/dataformat.rb (coverage: 100%) 11:30
    4. src/model/search_result.rb (coverage: 97.96) 15:00
    5. src/view/hospitals/hospitallist.rb (coverage: 100%)
    6. src/view/drugs/register_download.rb (coverage: 76.39%)
    7. src/view/admin/address_suggestion.rb (coverage: 86.62%)
Summary
Commits

Check update_medwin_package

Problem

Plugin: ODDB::MedwinPackagePlugin
Error: Timeout::Error
Message: execution expired
Backtrace:
(druby://localhost:10006) /usr/lib64/ruby/1.8/timeout.rb:54:in `rbuf_fill'
(druby://localhost:10006) /usr/lib64/ruby/1.8/timeout.rb:56:in `timeout'
(druby://localhost:10006) /usr/lib64/ruby/1.8/timeout.rb:76:in `timeout'
(druby://localhost:10006) /usr/lib64/ruby/1.8/net/protocol.rb:132:in `rbuf_fill'
(druby://localhost:10006) /usr/lib64/ruby/1.8/net/protocol.rb:116:in `readuntil'
(druby://localhost:10006) /usr/lib64/ruby/1.8/net/protocol.rb:126:in `readline'
(druby://localhost:10006) /usr/lib64/ruby/1.8/net/http.rb:2029:in `read_status_line'
(druby://localhost:10006) /usr/lib64/ruby/1.8/net/http.rb:2018:in `read_new'
(druby://localhost:10006) /usr/lib64/ruby/1.8/net/http.rb:1059:in `request'
(druby://localhost:10006) /usr/lib64/ruby/1.8/net/http.rb:1046:in `request'
(druby://localhost:10006) /usr/lib64/ruby/1.8/net/http.rb:547:in `start'
(druby://localhost:10006) /usr/lib64/ruby/1.8/net/http.rb:1044:in `request'
(druby://localhost:10006) /usr/lib64/ruby/1.8/net/http.rb:854:in `post'
(druby://localhost:10006) /var/www/oddb.org/src/util/http.rb:72:in `post'
(druby://localhost:10006) /var/www/oddb.org/ext/meddata/src/session.rb:97:in `get_result_list'
(druby://localhost:10006) /var/www/oddb.org/ext/meddata/src/drbsession.rb:31:in `search'
(druby://localhost:10000) /var/www/oddb.org/src/plugin/medwin.rb:192:in `update_package'
(druby://localhost:10000) /var/www/oddb.org/src/plugin/medwin.rb:160:in `update'
(druby://localhost:10000) /var/www/oddb.org/src/model/sequence.rb:139:in `each'
(druby://localhost:10000) /var/www/oddb.org/src/model/sequence.rb:139:in `each_package'
(druby://localhost:10000) /usr/lib64/ruby/site_ruby/1.8/odba/stub.rb:112:in `send'
(druby://localhost:10000) /usr/lib64/ruby/site_ruby/1.8/odba/stub.rb:112:in `method_missing'
(druby://localhost:10000) /var/www/oddb.org/src/model/registration.rb:106:in `each_package'
(druby://localhost:10000) /usr/lib64/ruby/site_ruby/1.8/odba/stub.rb:112:in `each_value'
(druby://localhost:10000) /usr/lib64/ruby/site_ruby/1.8/odba/stub.rb:112:in `send'
(druby://localhost:10000) /usr/lib64/ruby/site_ruby/1.8/odba/stub.rb:112:in `method_missing'
(druby://localhost:10000) /var/www/oddb.org/src/model/registration.rb:105:in `each_package'
(druby://localhost:10000) /usr/lib64/ruby/site_ruby/1.8/odba/stub.rb:112:in `send'
(druby://localhost:10000) /usr/lib64/ruby/site_ruby/1.8/odba/stub.rb:112:in `method_missing'
(druby://localhost:10000) /var/www/oddb.org/src/util/oddbapp.rb:605:in `each_package'
(druby://localhost:10000) /var/www/oddb.org/src/util/oddbapp.rb:604:in `each_value'
(druby://localhost:10000) /var/www/oddb.org/src/util/oddbapp.rb:604:in `each_package'
(druby://localhost:10000) /var/www/oddb.org/src/plugin/medwin.rb:156:in `update'
(druby://localhost:10000) /usr/lib64/ruby/1.8/drb/drb.rb:1555:in `call'
(druby://localhost:10006) /usr/lib64/ruby/1.8/drb/invokemethod.rb:10:in `block_yield'
(druby://localhost:10006) /usr/lib64/ruby/1.8/drb/invokemethod.rb:17:in `perform_with_block'
(druby://localhost:10006) /var/www/oddb.org/ext/meddata/src/meddata.rb:15:in `session'
/var/www/oddb.org/src/plugin/medwin.rb:155:in `update'
/var/www/oddb.org/src/util/updater.rb:494:in `send'
/var/www/oddb.org/src/util/updater.rb:494:in `update_simple'
/var/www/oddb.org/src/util/updater.rb:461:in `call'
/var/www/oddb.org/src/util/updater.rb:461:in `wrap_update'
/var/www/oddb.org/src/util/updater.rb:492:in `update_simple'
/var/www/oddb.org/src/util/updater.rb:308:in `update_medwin_packages'
/var/www/oddb.org/src/util/updater.rb:353:in `update_swissmedic_followers'
(eval):1:in `_admin'
/var/www/oddb.org/src/util/failsafe.rb:9:in `call'
/var/www/oddb.org/src/util/failsafe.rb:9:in `failsafe'
/var/www/oddb.org/src/util/oddbapp.rb:1425:in `_admin'
/var/www/oddb.org/src/util/oddbapp.rb:1423:in `initialize'
/var/www/oddb.org/src/util/oddbapp.rb:1423:in `new'
/var/www/oddb.org/src/util/oddbapp.rb:1423:in `_admin'
/usr/lib64/ruby/1.8/drb/drb.rb:1555:in `__send__'
/usr/lib64/ruby/1.8/drb/drb.rb:1555:in `perform_without_block'
/usr/lib64/ruby/1.8/drb/drb.rb:1515:in `perform'
/usr/lib64/ruby/1.8/drb/drb.rb:1589:in `main_loop'
/usr/lib64/ruby/1.8/drb/drb.rb:1585:in `loop'
/usr/lib64/ruby/1.8/drb/drb.rb:1585:in `main_loop'
/usr/lib64/ruby/1.8/drb/drb.rb:1581:in `start'
/usr/lib64/ruby/1.8/drb/drb.rb:1581:in `main_loop'
/usr/lib64/ruby/1.8/drb/drb.rb:1430:in `run'
/usr/lib64/ruby/1.8/drb/drb.rb:1427:in `start'
/usr/lib64/ruby/1.8/drb/drb.rb:1427:in `run'
/usr/lib64/ruby/1.8/drb/drb.rb:1347:in `initialize'
/usr/lib64/ruby/1.8/drb/drb.rb:1627:in `new'
/usr/lib64/ruby/1.8/drb/drb.rb:1627:in `start_service'
/var/www/oddb.org/bin/oddbd:38

Check the process

    def update
      MEDDATA_SERVER.session(:product) { |meddata|
        @app.each_package { |pack|

 p pack.barcode.to_s

          @checked += 1
          unless pack.out_of_trade
            @found += 1
            update_package(meddata, pack)
          end
        }
        nil # return nil across DRb
      }
    end

Run update_medwin_package

 $ bin/admin
 ch.oddb> Updater.new(self).update_medwin_packages

Result

view · edit · sidebar · attach · print · history
Page last modified on April 15, 2011, at 04:39 PM