Ticket #667 (closed defect: fixed)

Opened 6 years ago

Last modified 5 years ago

Fix DSage on Solaris 10

Reported by: mabshoff Owned by: Yi
Priority: minor Milestone: sage-3.1
Component: doctest coverage Keywords: DSage, Solaris
Cc: Work issues:
Report Upstream: Reviewers:
Authors: Merged in:
Dependencies: Stopgaps:

Description

Hello,

on my Solaris 10 box I have the following failure during the DSage test:

sage.dsage.twisted.tests.test_remote
  ClientRemoteCallsTest
    testremoteSubmitBadJob ...                                             [OK]
    testremoteSubmitJob ...                                                [OK]
  MonitorRemoteCallsTest
    testget_killed_jobs_list ...                                        [ERROR]
                                       [ERROR]
    testremote_get_job ...                                              [ERROR]
                                             [ERROR]
    testremote_job_done ...                                             [ERROR]
                                            [ERROR]
    testremote_job_failed ...                                           [ERROR]
                                          [ERROR]

===============================================================================
[ERROR]: sage.dsage.twisted.tests.test_remote.MonitorRemoteCallsTest.testget_killed_jobs_list

Traceback from remote host -- Traceback unavailable
===============================================================================
[ERROR]: sage.dsage.twisted.tests.test_remote.MonitorRemoteCallsTest.testget_killed_jobs_list

Traceback (most recent call last):
  File "/export/home/mabshoff/sage-2.8.4.2/local/lib/python2.5/site-packages/sage/dsage/twisted/pb.py", line 412, in requestAvatar
    avatar.attached(avatar, mind)
  File "/export/home/mabshoff/sage-2.8.4.2/local/lib/python2.5/site-packages/sage/dsage/twisted/pb.py", line 258, in attached
    self.DSageServer.monitordb.add_monitor(self.host_info)
  File "/export/home/mabshoff/sage-2.8.4.2/local/lib/python2.5/site-packages/sage/dsage/database/monitordb.py", line 113, in add_monitor
    hostname = host_info['hostname']
exceptions.KeyError: 'hostname'
===============================================================================
[ERROR]: sage.dsage.twisted.tests.test_remote.MonitorRemoteCallsTest.testremote_get_job

Traceback from remote host -- Traceback unavailable
===============================================================================
[ERROR]: sage.dsage.twisted.tests.test_remote.MonitorRemoteCallsTest.testremote_get_job

Traceback (most recent call last):
  File "/export/home/mabshoff/sage-2.8.4.2/local/lib/python2.5/site-packages/sage/dsage/twisted/pb.py", line 412, in requestAvatar
    avatar.attached(avatar, mind)
  File "/export/home/mabshoff/sage-2.8.4.2/local/lib/python2.5/site-packages/sage/dsage/twisted/pb.py", line 258, in attached
    self.DSageServer.monitordb.add_monitor(self.host_info)
  File "/export/home/mabshoff/sage-2.8.4.2/local/lib/python2.5/site-packages/sage/dsage/database/monitordb.py", line 113, in add_monitor
    hostname = host_info['hostname']
exceptions.KeyError: 'hostname'
===============================================================================
[ERROR]: sage.dsage.twisted.tests.test_remote.MonitorRemoteCallsTest.testremote_job_done

Traceback from remote host -- Traceback unavailable
===============================================================================
[ERROR]: sage.dsage.twisted.tests.test_remote.MonitorRemoteCallsTest.testremote_job_done

Traceback (most recent call last):
  File "/export/home/mabshoff/sage-2.8.4.2/local/lib/python2.5/site-packages/sage/dsage/twisted/pb.py", line 412, in requestAvatar
    avatar.attached(avatar, mind)
  File "/export/home/mabshoff/sage-2.8.4.2/local/lib/python2.5/site-packages/sage/dsage/twisted/pb.py", line 258, in attached
    self.DSageServer.monitordb.add_monitor(self.host_info)
  File "/export/home/mabshoff/sage-2.8.4.2/local/lib/python2.5/site-packages/sage/dsage/database/monitordb.py", line 113, in add_monitor
    hostname = host_info['hostname']
exceptions.KeyError: 'hostname'
===============================================================================
[ERROR]: sage.dsage.twisted.tests.test_remote.MonitorRemoteCallsTest.testremote_job_failed

Traceback from remote host -- Traceback unavailable
===============================================================================
[ERROR]: sage.dsage.twisted.tests.test_remote.MonitorRemoteCallsTest.testremote_job_failed

Traceback (most recent call last):
  File "/export/home/mabshoff/sage-2.8.4.2/local/lib/python2.5/site-packages/sage/dsage/twisted/pb.py", line 412, in requestAvatar
    avatar.attached(avatar, mind)
  File "/export/home/mabshoff/sage-2.8.4.2/local/lib/python2.5/site-packages/sage/dsage/twisted/pb.py", line 258, in attached
    self.DSageServer.monitordb.add_monitor(self.host_info)
  File "/export/home/mabshoff/sage-2.8.4.2/local/lib/python2.5/site-packages/sage/dsage/database/monitordb.py", line 113, in add_monitor
    hostname = host_info['hostname']
exceptions.KeyError: 'hostname'
-------------------------------------------------------------------------------
Ran 50 tests in 8.508s

Interestingly enough that doctest works perfectly fine on Solaris 9

Cheers,

Michael

Change History

comment:1 Changed 6 years ago by mabshoff

  • Component changed from packages to doctest

comment:2 Changed 6 years ago by mabshoff

-bash-3.00$ python
Python 2.5.1 (r251:54863, Sep 17 2007, 01:21:26)
[GCC 4.2.1] on sunos5
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> print sys.platform
sunos5

comment:3 Changed 6 years ago by yi

  • Priority changed from major to minor

I'm changing the priority of this bug since the Solaris port is not even ready yet.

comment:4 Changed 5 years ago by mabshoff

  • Status changed from new to closed
  • Resolution set to fixed
  • Milestone changed from sage-3.1.1 to sage-3.1

The DSage unit tests now work on Solaris 10:

-bash-3.00$ uname -a
SunOS fulvia 5.10 Generic_127128-11 i86pc i386 i86pc
-bash-3.00$ \sage-dsage-trial
dsage-trial tmp directory doesn't exist - creating ...
This script will run the unit tests for DSage
sage.dsage.database.tests.test_client
  ClientTestCase
    testGetPublicKey ...                                                   [OK]
    testGetUsername ...                                                    [OK]
    testInitClient ...                                                     [OK]
    testSetConnected ...                                                   [OK]
    testSetEnabled ...                                                     [OK]
sage.dsage.database.tests.test_clientdb
  ClientDatabaseSQLiteTestCase
    testadd_client ...                                                     [OK]
    testdel_client ...                                                     [OK]
    testset_enabled ...                                                    [OK]
    testupdate_login_time ...                                              [OK]
sage.dsage.database.tests.test_job
  JobTestCase
    testcreate_job ...                                                     [OK]
    testjobCreationTime ...                                                [OK]
    testjobFailures ...                                                    [OK]
    testjobFile ...                                                        [OK]
    testjobFinishTime ...                                                  [OK]
    testjobKilled ...                                                      [OK]
    testjobResult ...                                                      [OK]
    testjobStatus ...                                                      [OK]
    testjobUpdateTime ...                                                  [OK]
    testjob_id ...                                                         [OK]
sage.dsage.database.tests.test_jobdb
  JobDatabaseSATestCase
    testget_job ...                                                        [OK]
    teststore_jdict ...                                                    [OK]
  JobDatabaseSQLiteTestCase
    testcreate_jdict ...                                                   [OK]
    testget_job ...                                                        [OK]
    testget_job_by_id ...                                                  [OK]
    testget_killed_jobs_list ...                                           [OK]
    testhas_job ...                                                        [OK]
    teststore_jdict ...                                                    [OK]
sage.dsage.database.tests.test_workerdb
  WorkerDatabaseSATestCase
    testget_worker ...                                                     [OK]
    testget_worker_count ...                                               [OK]
    testinitial_sate ...                                                   [OK]
    testset_connected ...                                                  [OK]
sage.dsage.server.tests.test_server
  DSageServerTestCase
    testget_active_clients_list ...                                        [OK]
    testget_active_jobs ...                                                [OK]
    testget_all_jobs ...                                                   [OK]
    testget_job ...                                                        [OK]
    testget_job_by_id ...                                                  [OK]
    testget_job_result_by_id ...                                           [OK]
    testget_jobs_by_username ...                                           [OK]
    testget_killed_jobs_list ...                                           [OK]
    testjob_done ...                                                       [OK]
    testjob_failed ...                                                     [OK]
    testkill_job ...                                                       [OK]
    testsubmit_job ...                                                     [OK]
sage.dsage.twisted.tests.test_pubkeyauth
  PublicKeyCredentialsCheckerTest
    testanonymous_login ...                                                [OK]
    testget_pubkey_string ...                                              [OK]
    testrequestAvatarId ...                                                [OK]
sage.dsage.twisted.tests.test_remote
  ClientRemoteCallsTest
    testremoteSubmitBadJob ...                                             [OK]
    testremoteSubmitJob ...                                                [OK]
  WorkerRemoteCallsTest
    testget_killed_jobs_list ...                                           [OK]
    testremote_get_job ...                                                 [OK]
    testremote_job_done ...                                                [OK]
    testremote_job_failed ...                                              [OK]

-------------------------------------------------------------------------------
Ran 52 tests in 15.493s

PASSED (successes=52)
Note: See TracTickets for help on using tickets.