CARTAvis / ICD-RxJS

This is the carta-backend ICD tests based on the RxJS library
1 stars 0 forks source link

Mylin/#6 annotation region #12

Closed acdo2002 closed 1 year ago

acdo2002 commented 1 year ago

Because the text annotation backend has been merged to the dev branch. The current ICD-RxJS may failed with three region-related tests:

src/test/CASA_REGION_IMPORT_EXPORT.test.ts src/test/DS9_REGION_IMPORT_EXCEPTION.test.ts src/test/DS9_REGION_IMPORT_EXPORT.test.ts

Please note I have updated one region ds9 file, please download the updated region ds9 file to run the test.

This PR just fixes the current conflict, the text annotation ICD tests still under design phase.

ajm-ska commented 1 year ago

@acdo2002 Unfortunately there seems to be a problem with src/test/CASA_REGION_IMPORT_EXPORT.test.ts on RHEL9 (build #209)

    Import "M17_SWex_testRegions_pix_export_to_pix.crtf" from set_QA/tmp
      ✕ IMPORT_REGION_ACK should return within 500ms (502ms)
      ✕ IMPORT_REGION_ACK.success = true (2ms)
      ✕ Length of IMPORT_REGION_ACK.regions = 10 (1ms)
      ✕ IMPORT_REGION_ACK.regions[10].region_id = 30 (1ms)

It causes the carta_backend to crash:

[2023-03-27 01:39:12.170] [CARTA] [info] Writing to the log file: /root/.carta/log/carta.log [2023-03-27 01:39:12.171] [CARTA] [debug] Using command-line settings [2023-03-27 01:39:12.171] [CARTA] [info] /mount/build99/carta_backend: Version 3.0.0 [2023-03-27 01:39:12.172] [CARTA] [info] Listening on port 3333 with top level folder /images, starting folder /images, and 4 OpenMP worker threads [2023-03-27 01:39:23.375] [CARTA] [info] 0x61900001cc80 ::Session (3489792652:1) [2023-03-27 01:39:23.375] [CARTA] [info] Session 3489792652 [10.11.12.1] Connected. Num sessions: 1 [2023-03-27 01:39:23.653] [CARTA] [debug] The compression ratio for tile (layer:0, x:0, y:0) is 8.048. [2023-03-27 01:39:23.674] [CARTA] [debug] Session 3489792652: annulus not supported.

/builddir/build/BUILD/gcc-11.2.1-20220127/obj-x86_64-redhat-linux/x86_64-redhat-linux/libstdc++-v3/include/bits/basic_string.h:1115: std::cxx11::basic_string<_CharT, _Traits, _Alloc>::reference std::cxx11::basic_string<_CharT, _Traits, _Alloc>::front() [with _CharT = char; _Traits = std::char_traits; _Alloc = std::allocator; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::reference = char&]: Assertion '!empty()' failed. Aborted (core dumped)

It shouldn't be due to the wrong files because the RHEL9 Docker container runs on the same server as the Ubuntu 20.04 Docker container and so they share the same files.

If it is any help, the set_QA/tmp/M17_SWex_testRegions_pix_export_to_pix.crtf file that it tries to open is attached (I have just added the .txt extension to the end so that I can attach it here) M17_SWex_testRegions_pix_export_to_pix.crtf.txt