Uploaded image for project: 'PBS Pro'
  1. PP-1331

test should ignore 'last_state_change_time' item when comparing pbsnodes status in pbs_cray_vode_per_numa.py

    Details

    • Type: Bug
    • Status: Open
    • Priority: Low
    • Resolution: Unresolved
    • Affects versions: None
    • Fix versions: None
    • Components: PTL Tests
    • Labels:
      None
    • Sprint:
    • Story Points:
      1
    • Acceptance Criteria:
      Hide
      test_cray_login_node in pbs_basil_support.py and test_settings in pbs_cray_vode_per_numa.py test fail on Kachina because of comparing 'last_state_change_time' item in the pbsnodes status.

      Suggested fix is to ignore this field when doing comparisons as the timestamp is dynamic.

      ===
      1) test_cray_login_node in pbs_basil_support.py
      2018-04-20 14:12:42,562 INFO Traceback (most recent call last):
        File "/tmp/ptl/tests/functional/pbs_basil_support.py", line 308, in test_cray_login_node
          (mom_id, rsc, val, rsc, rval))
      AssertionError: vnode1 : pbs node has last_state_change_time=Fri Apr 20 14:12:02 2018 but login node has last_state_change_time=Fri Apr 20 14:11:45 2018

      2) test_settings in pbs_cray_vode_per_numa.py (I added debug logs for this test to figure out that the differing item was the 'last_state_change_time'.)

      2018-04-20 13:34:29,148 INFO pbsnodes outputs are equal in length.
      2018-04-20 13:34:29,148 ERROR ERROR vnode vnode1 has differing element.
      2018-04-20 13:34:29,148 INFO FAILED
      2018-04-20 13:34:29,149 INFO ======================================
      2018-04-20 13:34:29,149 INFO Entered TestVnodePerNumaNode tearDown
      2018-04-20 13:34:29,149 INFO ======================================
      2018-04-20 13:34:29,149 INFO =======================================
      2018-04-20 13:34:29,149 INFO Completed TestVnodePerNumaNode tearDown
      2018-04-20 13:34:29,149 INFO =======================================
      2018-04-20 13:34:29,150 INFO
      2018-04-20 13:34:29,150 INFO ======================================================================
      2018-04-20 13:34:29,150 INFO FAILED: test_settings (tests.functional.pbs_cray_vnode_per_numa.TestVnodePerNumaNode)
      2018-04-20 13:34:29,150 INFO ___m_oo_m___
      2018-04-20 13:34:29,150 INFO Traceback (most recent call last):
        File "/tmp/ptl/tests/functional/pbs_cray_vnode_per_numa.py", line 181, in test_settings
          self.assertTrue(False)
      AssertionError: False is not true
      Show
      test_cray_login_node in pbs_basil_support.py and test_settings in pbs_cray_vode_per_numa.py test fail on Kachina because of comparing 'last_state_change_time' item in the pbsnodes status. Suggested fix is to ignore this field when doing comparisons as the timestamp is dynamic. === 1) test_cray_login_node in pbs_basil_support.py 2018-04-20 14:12:42,562 INFO Traceback (most recent call last):   File "/tmp/ptl/tests/functional/pbs_basil_support.py", line 308, in test_cray_login_node     (mom_id, rsc, val, rsc, rval)) AssertionError: vnode1 : pbs node has last_state_change_time=Fri Apr 20 14:12:02 2018 but login node has last_state_change_time=Fri Apr 20 14:11:45 2018 2) test_settings in pbs_cray_vode_per_numa.py (I added debug logs for this test to figure out that the differing item was the 'last_state_change_time'.) 2018-04-20 13:34:29,148 INFO pbsnodes outputs are equal in length. 2018-04-20 13:34:29,148 ERROR ERROR vnode vnode1 has differing element. 2018-04-20 13:34:29,148 INFO FAILED 2018-04-20 13:34:29,149 INFO ====================================== 2018-04-20 13:34:29,149 INFO Entered TestVnodePerNumaNode tearDown 2018-04-20 13:34:29,149 INFO ====================================== 2018-04-20 13:34:29,149 INFO ======================================= 2018-04-20 13:34:29,149 INFO Completed TestVnodePerNumaNode tearDown 2018-04-20 13:34:29,149 INFO ======================================= 2018-04-20 13:34:29,150 INFO 2018-04-20 13:34:29,150 INFO ====================================================================== 2018-04-20 13:34:29,150 INFO FAILED: test_settings (tests.functional.pbs_cray_vnode_per_numa.TestVnodePerNumaNode) 2018-04-20 13:34:29,150 INFO ___m_oo_m___ 2018-04-20 13:34:29,150 INFO Traceback (most recent call last):   File "/tmp/ptl/tests/functional/pbs_cray_vnode_per_numa.py", line 181, in test_settings     self.assertTrue(False) AssertionError: False is not true

      Attachments

        Activity

          People

          • Assignee:
            Unassigned
            Reporter:
            Shilpa.kodli Shilpa Kodli
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: