fiftysevendegreesofrad / sdna_plus

Fully open release with all advanced sDNA+ features
Other
10 stars 1 forks source link

Regression when compiled using Zig/Clang. test_diff_[correctout_prep.txt] #65

Open JamesParrott opened 3 months ago

JamesParrott commented 3 months ago

This one could be the same link subsystems being outputted in different orders again, or a different link (with different id) being selected from that subsystem

E               AssertionError: Error on line num i: 20.  This line (and up to the 9 previous ones):
E                 Expected: 'Reading features from prep_crash_shapefile\\shapefilepreparecrash'
E                 '  sDNA is running in 64-bit mode'
E                 '  Fixing near miss connections'
E                 '  Fixing duplicate links'
E                 '  Checking for isolated systems'
E                 '  Largest system contains 21523 links'
E                 '7-link subsystem contains link with id = 8285'
E                 '6-link subsystem contains link with id = 9654'
E                 '4-link subsystem contains link with id = 8028'
E                 '3-link subsystem contains link with id = 9920',
E
E                  Actual: 'Reading features from prep_crash_shapefile\\shapefilepreparecrash'
E                 '  sDNA is running in 64-bit mode'
E                 '  Fixing near miss connections'
E                 '  Fixing duplicate links'
E                 '  Checking for isolated systems'
E                 '  Largest system contains 21523 links'
E                 '7-link subsystem contains link with id = 8285'
E                 '6-link subsystem contains link with id = 9654'
E                 '4-link subsystem contains link with id = 8028'
E                 '3-link subsystem contains link with id = 7162'

The good news is the other 5 tests pass:

======================================================= PASSES ========================================================
____________________________________________ test_diff_[correctout3d.txt] _____________________________________________
------------------------------------------------ Captured stdout call -------------------------------------------------
Passed! Num of equal expected & actual lines": 102. (Num lines skipped: 0 exc debug etc.)
_________________________________________ test_diff_[correctout_partial.txt] __________________________________________
------------------------------------------------ Captured stdout call -------------------------------------------------
Passed! Num of equal expected & actual lines": 1828. (Num lines skipped: 0 exc debug etc.)
__________________________________________ test_diff_[correctout_learn.txt] ___________________________________________
------------------------------------------------ Captured stdout call -------------------------------------------------
Passed! Num of equal expected & actual lines": 73. (Num lines skipped: 0 exc debug etc.)
__________________________________________ test_diff_[correctout_table.txt] ___________________________________________
------------------------------------------------ Captured stdout call -------------------------------------------------
Passed! Num of equal expected & actual lines": 121. (Num lines skipped: 1 exc debug etc.)
____________________________________________ test_diff_[correctout_od.txt] ____________________________________________
------------------------------------------------ Captured stdout call -------------------------------------------------
Passed! Num of equal expected & actual lines": 396. (Num lines skipped: 0 exc debug etc.)
=============================================== short test summary info ===============================================
PASSED test_gathering_windows_command_line_tests.py::test_diff_[correctout3d.txt]
PASSED test_gathering_windows_command_line_tests.py::test_diff_[correctout_partial.txt]
PASSED test_gathering_windows_command_line_tests.py::test_diff_[correctout_learn.txt]
PASSED test_gathering_windows_command_line_tests.py::test_diff_[correctout_table.txt]
PASSED test_gathering_windows_command_line_tests.py::test_diff_[correctout_od.txt]
JamesParrott commented 3 months ago

On Linux, the same issue occurs, but with a different link ID:

FAILED test_gathering_windows_command_line_tests.py::test_diff_[correctout_prep.txt] - AssertionError: Error on line num i: 19.  This line (and up to the 9 previous ones):
  Expected: 'Reading features from prep_crash_shapefile/shapefilepreparecrash'
  'Reading features from prep_crash_shapefile/shapefilepreparecrash'
  '  sDNA is running in 64-bit mode'
  '  Fixing near miss connections'
  '  Fixing duplicate links'
  '  Checking for isolated systems'
  '  Largest system contains 21523 links'
  '7-link subsystem contains link with id = 8285'
  '6-link subsystem contains link with id = 9654'
  '4-link subsystem contains link with id = 8028', 

   Actual: 'Reading features from prep_crash_shapefile/shapefilepreparecrash'
  'Reading features from prep_crash_shapefile/shapefilepreparecrash'
  '  sDNA is running in 64-bit mode'
  '  Fixing near miss connections'
  '  Fixing duplicate links'
  '  Checking for isolated systems'
  '  Largest system contains 21523 links'
  '7-link subsystem contains link with id = 8285'
  '6-link subsystem contains link with id = 9654'
  '4-link subsystem contains link with id = 12290'

E.g. https://github.com/fiftysevendegreesofrad/sdna_plus/actions/runs/9584485547/job/26428551575