Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
No files or directories were created, edited or deleted.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Cannot use Nomad: no ready nodes with the raw_exec driver in node pool 'non_existent'
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<-PYT:import texttestlib.queuesystem.nomadapi
<-PYT:texttestlib.queuesystem.nomadapi.__name__
->RET:'texttestlib.queuesystem.nomadapi'
<-PYT:texttestlib.queuesystem.nomadapi.__path__
->RET:raise AttributeError("module 'texttestlib.queuesystem.nomadapi' has no attribute '__path__'")
<-PYT:secrets.token_hex(4)
->RET:'61dd0f76'
<-PYT:texttestlib.queuesystem.nomadapi.get('/v1/nodes', resources='true')
->RET:[{'Drivers': {'raw_exec': {'Detected': True, 'Healthy': True}},
'ID': '438268a2-3930-b527-1b2d-d0f3800d00b8',
'Name': 'PDC-1693',
'NodePool': 'default',
'NodeResources': {'Cpu': {'CpuShares': 192000, 'TotalCpuCores': 64}},
'ReservedResources': {'Cpu': {'CpuShares': 0}},
'SchedulingEligibility': 'eligible',
'Status': 'ready'}]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
No files or directories were created, edited or deleted.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Nothing listens here
NOMAD_ADDR:http://127.0.0.1:1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Cannot use Nomad: could not contact Nomad at http://127.0.0.1:1: Connection refused
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<-PYT:import texttestlib.queuesystem.nomadapi
<-PYT:texttestlib.queuesystem.nomadapi.__name__
->RET:'texttestlib.queuesystem.nomadapi'
<-PYT:texttestlib.queuesystem.nomadapi.__path__
->RET:raise AttributeError("module 'texttestlib.queuesystem.nomadapi' has no attribute '__path__'")
<-PYT:secrets.token_hex(4)
->RET:'06d9c696'
<-PYT:texttestlib.queuesystem.nomadapi.get('/v1/nodes', resources='true')
->RET:raise Instance('NomadError(Exception)', 'nomaderror__v1_nodes')
<-PYT:nomaderror__v1_nodes.__str__()
->RET:'could not contact Nomad at http://127.0.0.1:1: Connection refused'
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
The following new files/directories were created:
<Test Directory>
----texttesttmp
--------sleep.killing.10Nov100904.16132
------------batchreport.sleep.killing
------------slavelogs
------------sleep.killing
----------------Basic
--------------------framework_tmp
------------------------teststate
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
TEXTTEST_QS_POLL_WAIT:5
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<-SRV:TextTest slave server started on 10.200.2.44:64228
<-SRV:Completed submission of all tests
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
Nomad job IDs for this run start with texttest-33efae9a-
Using nomad queues for Application SLEEP, version killing
Q: Submitting SLEEP.killing test-case Basic to default nomad queue
S: SLEEP.killing test-case Basic not compared:
nomad job exited
Job ID was texttest-33efae9a-1-Test-Basic-SLEEP.killing
---------- Full accounting info from Nomad ----------
Allocation 00b2ebf7-b50e-f9bb-27ff-7a68bf9846e4 on node PDC-1693 is failed
Received: Task received by client
Task Setup: Building Task Directory
Started: Task started by client
Terminated: Exit Code: 1
Not Restarting: Policy allows no restarts
---------- End of slave standard error ----------
Unable to load application from file 'config.sleep' - Cannot find file '$STANDARD_PERSONAL' to import config file settings from.

Results:

Tests that did not succeed:
SLEEP.killing test-case Basic not compared: nomad job exited

Tests Run: 1, Incomplete: 1
Creating batch report for application SLEEP ...
File written.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
queue_system_module:nomad

# Unlike the other Nomad tests, don't send STANDARD_PERSONAL, so that the slave crashes on startup
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
<-PYT:import texttestlib.queuesystem.nomadapi
<-PYT:texttestlib.queuesystem.nomadapi.__name__
->RET:'texttestlib.queuesystem.nomadapi'
<-PYT:texttestlib.queuesystem.nomadapi.__path__
->RET:raise AttributeError("module 'texttestlib.queuesystem.nomadapi' has no attribute '__path__'")
<-PYT:secrets.token_hex(4)
->RET:'33efae9a'
<-PYT:texttestlib.queuesystem.nomadapi.get('/v1/nodes', resources='true')
->RET:[{'Drivers': {'raw_exec': {'Detected': True, 'Healthy': True}},
'ID': '438268a2-3930-b527-1b2d-d0f3800d00b8',
'Name': 'PDC-1693',
'NodePool': 'default',
'NodeResources': {'Cpu': {'CpuShares': 192000, 'TotalCpuCores': 64}},
'ReservedResources': {'Cpu': {'CpuShares': 0}},
'SchedulingEligibility': 'eligible',
'Status': 'ready'}]
<-PYT:texttestlib.queuesystem.nomadapi.get('/v1/nodes', resources='true')
->RET:[{'Drivers': {'raw_exec': {'Detected': True, 'Healthy': True}},
'ID': '438268a2-3930-b527-1b2d-d0f3800d00b8',
'Name': 'PDC-1693',
'NodePool': 'default',
'NodeResources': {'Cpu': {'CpuShares': 192000, 'TotalCpuCores': 64}},
'ReservedResources': {'Cpu': {'CpuShares': 0}},
'SchedulingEligibility': 'eligible',
'Status': 'ready'}]
<-PYT:texttestlib.queuesystem.nomadapi.request('POST', '/v1/jobs', {'Job': {'Constraints': [],
'Datacenters': ['*'],
'ID': 'texttest-33efae9a-1-Test-Basic-SLEEP.killing',
'Name': 'Test-Basic-SLEEP.killing',
'NodePool': 'default',
'TaskGroups': [{'Count': 1,
'Name': 'slave',
'ReschedulePolicy': {'Attempts': 0, 'Unlimited': False},
'RestartPolicy': {'Attempts': 0, 'Mode': 'fail'},
'Tasks': [{'Config': {'args': ['-home',
'C:\\projects\\git\\texttest\\build\\tttmp\\texttest.nomad.16Nov162439.61032\\texttest.nomad\\QueueSystems\\ErrorHandling\\Console\\PollSlaveCrash',
'-d',
'C:\\projects\\git\\texttest\\build\\tttmp\\texttest.nomad.16Nov162439.61032\\texttest.nomad\\QueueSystems\\ErrorHandling\\Console\\PollSlaveCrash\\TargetApp',
'-a',
'sleep.killing',
'-l',
'-tp',
'Basic',
'-slave',
'C:\\projects\\git\\texttest\\build\\tttmp\\texttest.nomad.16Nov162439.61032\\texttest.nomad\\QueueSystems\\ErrorHandling\\Console\\PollSlaveCrash\\texttesttmp\\sleep.killing.16Nov162446.61044',
'-servaddr',
'127.0.0.1:64958',
'-b',
'short_local'],
'command': 'C:\\projects\\git\\texttest\\bin\\texttest'},
'Driver': 'raw_exec',
'Env': {'STANDARD': 'C:\\projects\\git\\texttest\\build\\tttmp\\texttest.nomad.16Nov162439.61032\\texttest.nomad\\QueueSystems\\ErrorHandling\\Console\\PollSlaveCrash\\standard'},
'KillTimeout': 60000000000,
'Name': 'slave',
'Resources': {'CPU': 3000}}]}],
'Type': 'batch'}})
->RET:{'EvalCreateIndex': 1611,
'EvalID': '60afac7e-5ce0-49f2-d74a-a9ac3aac969c',
'Index': 1611,
'JobModifyIndex': 1611,
'KnownLeader': False,
'LastContact': 0,
'NextToken': '',
'Warnings': ''}
<-PYT:texttestlib.queuesystem.nomadapi.get('/v1/jobs', prefix='texttest-33efae9a-')
->RET:[{'ID': 'texttest-33efae9a-1-Test-Basic-SLEEP.killing', 'Status': 'dead'}]
<-PYT:texttestlib.queuesystem.nomadapi.get('/v1/job/texttest-33efae9a-1-Test-Basic-SLEEP.killing/allocations')
->RET:[{'ClientStatus': 'failed',
'ID': '00b2ebf7-b50e-f9bb-27ff-7a68bf9846e4',
'NodeName': 'PDC-1693',
'TaskStates': {'slave': {'Events': [{'DisplayMessage': 'Task received by client', 'Type': 'Received'},
{'DisplayMessage': 'Building Task Directory', 'Type': 'Task Setup'},
{'DisplayMessage': 'Task started by client', 'Type': 'Started'},
{'DisplayMessage': 'Exit Code: 1', 'Type': 'Terminated'},
{'DisplayMessage': 'Policy allows no restarts', 'Type': 'Not Restarting'}],
'Failed': True}}}]
<-PYT:texttestlib.queuesystem.nomadapi.request('GET', '/v1/client/fs/logs/00b2ebf7-b50e-f9bb-27ff-7a68bf9846e4', params={'offset': 4096, 'origin': 'end', 'plain': 'true', 'task': 'slave', 'type': 'stderr'}, parseJson=False)
->RET:"Unable to load application from file 'config.sleep' - Cannot find file '$STANDARD_PERSONAL' to import config file settings from.\n"
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
unrunnable=1
10Nov2026
SLEEP killing : 1 tests : 1 unrunnable

Summary of all Unsuccessful tests follows...
---------------------------------------------------------------------------------
The following tests could not be run :
In SLEEP.killing test-suite TargetApp:
- SLEEP.killing test-case Basic : nomad job exited


Details of all Unsuccessful tests follows...
---------------------------------------------------------------------------------

Detailed information for the tests that could not be run follows...
--------------------------------------------------------
TEST could not be run : SLEEP.killing test-case Basic (under Basic)
nomad job exited
Job ID was texttest-33efae9a-1-Test-Basic-SLEEP.killing
---------- Full accounting info from Nomad ----------
Allocation 00b2ebf7-b50e-f9bb-27ff-7a68bf9846e4 on node PDC-1693 is failed
Received: Task received by client
Task Setup: Building Task Directory
Started: Task started by client
Terminated: Exit Code: 1
Not Restarting: Policy allows no restarts
---------- End of slave standard error ----------
Unable to load application from file 'config.sleep' - Cannot find file '$STANDARD_PERSONAL' to import config file settings from.

8 changes: 8 additions & 0 deletions QueueSystems/ErrorHandling/Console/testsuite.texttest.nomad
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# See what happens if Nomad can't be contacted
NotInstalled

# Test that we can override default_queue via the config file, and what happens when the node pool doesn't exist
BadQueue

# We should notice crashed slaves without waiting for the user to kill them, and report what Nomad knows
PollSlaveCrash
1 change: 1 addition & 0 deletions QueueSystems/ErrorHandling/testsuite.texttest.nomad
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Console
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
The following new files/directories were created:
<Test Directory>
----texttesttmp
--------local.10Nov100541.46372
------------batchreport.sleep
------------slavelogs
------------sleep
----------------Basic
--------------------framework_tmp
------------------------teststate
----------------Basic2
--------------------framework_tmp
------------------------teststate
Loading
Loading