Skip to content

Commit

Permalink
testsuite: disable tests using resource.get-xml
Browse files Browse the repository at this point in the history
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
  • Loading branch information
garlick committed Apr 7, 2022
1 parent 5258922 commit 69e0060
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions t/t4004-match-hwloc.t
Original file line number Diff line number Diff line change
Expand Up @@ -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} &&
Expand All @@ -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
'

Expand Down

0 comments on commit 69e0060

Please sign in to comment.