Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test failure in collection listing with baton 4.3.1 #319

Open
kjsanger opened this issue Sep 25, 2024 · 1 comment
Open

Test failure in collection listing with baton 4.3.1 #319

kjsanger opened this issue Sep 25, 2024 · 1 comment
Labels

Comments

@kjsanger
Copy link
Member

#   Failed test 'collection_checksums died (The returned path spec did not have a "contents" key: {"collection":"/testZone/home/irods/iRODSTest.48815.10/irods","error":{"code":-317000,"message":"Failed to get the checksum of '/testZone/home/irods/iRODSTest.48815.10/irods' as it is not a data object"}} at inline delegation in WTSI::NPG::iRODS::Communicator for logger->logconfess (attribute declared in /home/runner/perl5npg/lib/perl5/WTSI/DNAP/Utilities/Loggable.pm at line 28) line 18.
# 	WTSI::NPG::iRODS::Communicator::logconfess(WTSI::NPG::iRODS::BatonClient=HASH(0x559d88311b80), "The returned path spec did not have ", "a \"contents\" key: ", "{\"collection\":\"/testZone/home/irods/iRODSTest.48815.10/irods\""...) called at /home/runner/work/perl-irods-wrap/perl-irods-wrap/blib/lib/WTSI/NPG/iRODS/BatonClient.pm line 931
# 	WTSI::NPG::iRODS::BatonClient::_list_collection(WTSI::NPG::iRODS::BatonClient=HASH(0x559d88311b80), "/testZone/home/irods/iRODSTest.48815.10/irods", HASH(0x559d88319460)) called at /home/runner/work/perl-irods-wrap/perl-irods-wrap/blib/lib/WTSI/NPG/iRODS/BatonClient.pm line 252
# 	WTSI::NPG::iRODS::BatonClient::list_collection_checksums(WTSI::NPG::iRODS::BatonClient=HASH(0x559d88311b80), "/testZone/home/irods/iRODSTest.48815.10/irods", undef) called at /home/runner/work/perl-irods-wrap/perl-irods-wrap/blib/lib/WTSI/NPG/iRODS.pm line 2133
# 	WTSI::NPG::iRODS::collection_checksums(WTSI::NPG::iRODS=HASH(0x559d88312438), "/testZone/home/irods/iRODSTest.48815.10/irods") called at t/lib/WTSI/NPG/iRODSTest.pm line 552
# 	WTSI::NPG::iRODSTest::collection_checksums(WTSI::NPG::iRODSTest=HASH(0x559d8829e758)) called at /home/runner/perl5/lib/perl5/Test/Class.pm line 293
# 	Test::Class::try {...} () called at /home/runner/perl5/lib/perl5/Try/Tiny.pm line 100
# 	eval {...} called at /home/runner/perl5/lib/perl5/Try/Tiny.pm line 93
# 	Try::Tiny::try(CODE(0x559d882e2df8), Try::Tiny::Catch=REF(0x559d883078d0)) called at /home/runner/perl5/lib/perl5/Test/Class.pm line 293
# 	Test::Class::_run_method(WTSI::NPG::iRODSTest=HASH(0x559d8829e758), "collection_checksums", ARRAY(0x559d85b008d8)) called at /home/runner/perl5/lib/perl5/Test/Class.pm line 402
# 	Test::Class::runtests("WTSI::NPG::iRODSTest") called at t/lib/WTSI/NPG/iRODS/Test.pm line 26
# 	WTSI::NPG::iRODS::Test::runtests("WTSI::NPG::iRODSTest") called at t/irods.t line 7)'
#   at t/lib/WTSI/NPG/iRODS/Test.pm line 26.
#   (in WTSI::NPG::iRODSTest->collection_checksums)

#   Failed test '(WTSI::NPG::iRODSTest::collection_checksums returned before plan complete)'
#   at t/lib/WTSI/NPG/iRODS/Test.pm line 26.
#   (in WTSI::NPG::iRODSTest->collection_checksums)

#   Failed test '(WTSI::NPG::iRODSTest::collection_checksums returned before plan complete)'
#   at t/lib/WTSI/NPG/iRODS/Test.pm line 26.
#   (in WTSI::NPG::iRODSTest->collection_checksums)
# Looks like you failed 3 tests of 316.
t/irods.t .................. 
Dubious, test returned 3 (wstat 768, 0x300)
Failed 3/316 subtests 
	(less 5 skipped subtests: 308 okay)

#   Failed test 'get_contents died (The returned path spec did not have a "contents" key: {"collection":"/testZone/home/irods/CollectionTest.169366.5/path/test_dir/contents","error":{"message":"Failed to get the checksum of '/testZone/home/irods/CollectionTest.169366.5/path/test_dir/contents' as it is not a data object","code":-317000}} at inline delegation in WTSI::NPG::iRODS::Communicator for logger->logconfess (attribute declared in /home/runner/perl5npg/lib/perl5/WTSI/DNAP/Utilities/Loggable.pm at line 28) line 18.
# 	WTSI::NPG::iRODS::Communicator::logconfess(WTSI::NPG::iRODS::BatonClient=HASH(0x55be9a0f3f08), "The returned path spec did not have ", "a \"contents\" key: ", "{\"collection\":\"/testZone/home/irods/CollectionTest.169366.5/p"...) called at /home/runner/work/perl-irods-wrap/perl-irods-wrap/blib/lib/WTSI/NPG/iRODS/BatonClient.pm line 931
# 	WTSI::NPG::iRODS::BatonClient::_list_collection(WTSI::NPG::iRODS::BatonClient=HASH(0x55be9a0f3f08), "/testZone/home/irods/CollectionTest.169366.5/path/test_dir/co"..., HASH(0x55be9a1b7a88)) called at /home/runner/work/perl-irods-wrap/perl-irods-wrap/blib/lib/WTSI/NPG/iRODS/BatonClient.pm line 959
# 	WTSI::NPG::iRODS::BatonClient::_list_collection_recur(WTSI::NPG::iRODS::BatonClient=HASH(0x55be9a0f3f08), "/testZone/home/irods/CollectionTest.169366.5/path/test_dir/co"..., HASH(0x55be9a1b7a88)) called at /home/runner/work/perl-irods-wrap/perl-irods-wrap/blib/lib/WTSI/NPG/iRODS/BatonClient.pm line 247
# 	WTSI::NPG::iRODS::BatonClient::list_collection_checksums(WTSI::NPG::iRODS::BatonClient=HASH(0x55be9a0f3f08), "/testZone/home/irods/CollectionTest.169366.5/path/test_dir/co"..., "RECURSE") called at /home/runner/work/perl-irods-wrap/perl-irods-wrap/blib/lib/WTSI/NPG/iRODS.pm line 2133
# 	WTSI::NPG::iRODS::collection_checksums(WTSI::NPG::iRODS=HASH(0x55be9a19da00), "/testZone/home/irods/CollectionTest.169366.5/path/test_dir/co"..., "RECURSE") called at /home/runner/work/perl-irods-wrap/perl-irods-wrap/blib/lib/WTSI/NPG/iRODS/Collection.pm line 186
# 	WTSI::NPG::iRODS::Collection::get_contents(WTSI::NPG::iRODS::Collection=HASH(0x55be9a18b428), "RECURSE", "CHECKSUM") called at t/lib/WTSI/NPG/iRODS/CollectionTest.pm line 296
# 	WTSI::NPG::iRODS::CollectionTest::get_contents(WTSI::NPG::iRODS::CollectionTest=HASH(0x55be9a175fe0)) called at /home/runner/perl5/lib/perl5/Test/Class.pm line 293
# 	Test::Class::try {...} () called at /home/runner/perl5/lib/perl5/Try/Tiny.pm line 100
# 	eval {...} called at /home/runner/perl5/lib/perl5/Try/Tiny.pm line 93
# 	Try::Tiny::try(CODE(0x55be9a1f8350), Try::Tiny::Catch=REF(0x55be9a19cf68)) called at /home/runner/perl5/lib/perl5/Test/Class.pm line 293
# 	Test::Class::_run_method(WTSI::NPG::iRODS::CollectionTest=HASH(0x55be9a175fe0), "get_contents", ARRAY(0x55be97a04988)) called at /home/runner/perl5/lib/perl5/Test/Class.pm line 402
# 	Test::Class::runtests("WTSI::NPG::iRODS::CollectionTest") called at t/lib/WTSI/NPG/iRODS/Test.pm line 26
# 	WTSI::NPG::iRODS::Test::runtests("WTSI::NPG::iRODS::CollectionTest") called at t/irods_collection_test.t line 7)'
#   at t/lib/WTSI/NPG/iRODS/Test.pm line 26.
#   (in WTSI::NPG::iRODS::CollectionTest->get_contents)

#   Failed test '(WTSI::NPG::iRODS::CollectionTest::get_contents returned before plan complete)'
#   at t/lib/WTSI/NPG/iRODS/Test.pm line 26.
#   (in WTSI::NPG::iRODS::CollectionTest->get_contents)

#   Failed test '(WTSI::NPG::iRODS::CollectionTest::get_contents returned before plan complete)'
#   at t/lib/WTSI/NPG/iRODS/Test.pm line 26.
#   (in WTSI::NPG::iRODS::CollectionTest->get_contents)
# Looks like you failed 3 tests of 59.
t/irods_collection_test.t .. 
Dubious, test returned 3 (wstat 768, 0x300)
Failed 3/59 subtests 
	(less 6 skipped subtests: 50 okay)

Possibly related to the fact that baton now prints the checksum attribute when requested and no checksum is defined in iRODS.

@kjsanger kjsanger added the bug label Sep 25, 2024
@jmtcsngr
Copy link
Member

jmtcsngr commented Oct 8, 2024

We could update compatibility matrix in readme if modern baton is required for latest versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants