From 69e006003a4e797c99c24727909d2ac4e1b75e92 Mon Sep 17 00:00:00 2001 From: Jim Garlick Date: Thu, 7 Apr 2022 11:45:19 -0700 Subject: [PATCH] testsuite: disable tests using resource.get-xml Problem: several tests fail when the fluxion resource module aborts due to trying to access deprecated resource.get-xml RPC. fluxion-resource is successfully loaded in these tests, but fails shortly thereafter, causing subsequent tests to fail: expecting success: load_resource subsystems=containment policy=high \ load-format=hwloc load-allowlist=node,socket,core,gpu 2022-04-07T18:42:36.471631Z sched-fluxion-resource.err[0]: Unknown service method 'resource.get-xml' 2022-04-07T18:42:36.471651Z sched-fluxion-resource.err[0]: update_resource_db: grow_resource_db: Function not implemented 2022-04-07T18:42:36.471657Z sched-fluxion-resource.err[0]: update_resource: update_resource_db: Function not implemented 2022-04-07T18:42:36.471666Z sched-fluxion-resource.err[0]: populate_resource_db_acquire: update_resource: Function not implemented 2022-04-07T18:42:36.471671Z sched-fluxion-resource.err[0]: populate_resource_db: loading resources using resource.acquire 2022-04-07T18:42:36.471686Z sched-fluxion-resource.err[0]: init_resource_graph: error processing subsystems containment 2022-04-07T18:42:36.471697Z sched-fluxion-resource.err[0]: mod_main: can't initialize resource graph database 2022-04-07T18:42:36.471728Z sched-fluxion-resource.crit[0]: module exiting abnormally ok 17 - load fluxion resource expecting success: flux ion-resource match allocate ${jobspec_1socket_2gpu} && flux ion-resource match allocate ${jobspec_1socket_2gpu} && flux ion-resource match allocate ${jobspec_1socket_2gpu} && flux ion-resource match allocate ${jobspec_1socket_2gpu} && flux ion-resource match allocate ${jobspec_1socket_2gpu} && flux ion-resource match allocate ${jobspec_1socket_2gpu} && flux ion-resource match allocate ${jobspec_1socket_2gpu} && flux ion-resource match allocate ${jobspec_1socket_2gpu} && test_expect_code 16 flux ion-resource match allocate ${jobspec_1socket_2gpu} OSError: error(38): No service matching sched-fluxion-resource.next_jobid is regist not ok 18 - match allocate Disable these tests pending follow up requested in #927 --- t/t4004-match-hwloc.t | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/t/t4004-match-hwloc.t b/t/t4004-match-hwloc.t index 824e34025..e361c7b0e 100755 --- a/t/t4004-match-hwloc.t +++ b/t/t4004-match-hwloc.t @@ -122,43 +122,43 @@ test_expect_success 'removing resource works' ' remove_resource ' -test_expect_success 'load test resources (4N4B)' ' +test_expect_success HAVE_GETXML 'load test resources (4N4B)' ' load_test_resources ${excl_4N4B} ' -test_expect_success 'loading resource module with default resource info source' ' +test_expect_success HAVE_GETXML 'loading resource module with default resource info source' ' load_resource subsystems=containment policy=high \ load-format=hwloc load-allowlist=node,socket,core ' -test_expect_success 'match-allocate works with four two-socket jobspecs' ' +test_expect_success HAVE_GETXML 'match-allocate works with four two-socket jobspecs' ' flux ion-resource match allocate ${jobspec_2socket} && flux ion-resource match allocate ${jobspec_2socket} && flux ion-resource match allocate ${jobspec_2socket} && flux ion-resource match allocate ${jobspec_2socket} ' -test_expect_success 'match-allocate fails when all resources are allocated' ' +test_expect_success HAVE_GETXML 'match-allocate fails when all resources are allocated' ' test_expect_code 16 flux ion-resource match allocate ${jobspec_2socket} && test_expect_code 16 flux ion-resource match allocate ${jobspec_2socket} && test_expect_code 16 flux ion-resource match allocate ${jobspec_2socket} && test_expect_code 16 flux ion-resource match allocate ${jobspec_2socket} ' -test_expect_success 'unload fluxion resource' ' +test_expect_success HAVE_GETXML 'unload fluxion resource' ' remove_resource ' -test_expect_success 'load test resources (4N4B_sierra2)' ' +test_expect_success HAVE_GETXML 'load test resources (4N4B_sierra2)' ' load_test_resources ${excl_4N4B_sierra2} ' -test_expect_success 'load fluxion resource' ' +test_expect_success HAVE_GETXML 'load fluxion resource' ' load_resource subsystems=containment policy=high \ load-format=hwloc load-allowlist=node,socket,core,gpu ' -test_expect_success 'match allocate' ' +test_expect_success HAVE_GETXML 'match allocate' ' flux ion-resource match allocate ${jobspec_1socket_2gpu} && flux ion-resource match allocate ${jobspec_1socket_2gpu} && flux ion-resource match allocate ${jobspec_1socket_2gpu} && @@ -170,7 +170,7 @@ test_expect_success 'match allocate' ' test_expect_code 16 flux ion-resource match allocate ${jobspec_1socket_2gpu} ' -test_expect_success 'removing resource works' ' +test_expect_success HAVE_GETXML 'removing resource works' ' remove_resource '