@@ -29,6 +29,7 @@ func TestGetSlurmDataFromSlurmLineAllGpus(t *testing.T) {
2929 Account : "test_account" ,
3030 Partition : "learn" ,
3131 NumNodes : "1" ,
32+ Comment : "test_comment" ,
3233 },
3334 "1" : {
3435 User : "test_username" ,
@@ -40,6 +41,7 @@ func TestGetSlurmDataFromSlurmLineAllGpus(t *testing.T) {
4041 Account : "test_account" ,
4142 Partition : "learn" ,
4243 NumNodes : "1" ,
44+ Comment : "test_comment" ,
4345 },
4446 "2" : {
4547 User : "test_username" ,
@@ -51,6 +53,7 @@ func TestGetSlurmDataFromSlurmLineAllGpus(t *testing.T) {
5153 Account : "test_account" ,
5254 Partition : "learn" ,
5355 NumNodes : "1" ,
56+ Comment : "test_comment" ,
5457 },
5558 "3" : {
5659 User : "test_username" ,
@@ -62,6 +65,7 @@ func TestGetSlurmDataFromSlurmLineAllGpus(t *testing.T) {
6265 Account : "test_account" ,
6366 Partition : "learn" ,
6467 NumNodes : "1" ,
68+ Comment : "test_comment" ,
6569 },
6670 "4" : {
6771 User : "test_username" ,
@@ -73,6 +77,7 @@ func TestGetSlurmDataFromSlurmLineAllGpus(t *testing.T) {
7377 Account : "test_account" ,
7478 Partition : "learn" ,
7579 NumNodes : "1" ,
80+ Comment : "test_comment" ,
7681 },
7782 "5" : {
7883 User : "test_username" ,
@@ -84,6 +89,7 @@ func TestGetSlurmDataFromSlurmLineAllGpus(t *testing.T) {
8489 Account : "test_account" ,
8590 Partition : "learn" ,
8691 NumNodes : "1" ,
92+ Comment : "test_comment" ,
8793 },
8894 "6" : {
8995 User : "test_username" ,
@@ -95,6 +101,7 @@ func TestGetSlurmDataFromSlurmLineAllGpus(t *testing.T) {
95101 Account : "test_account" ,
96102 Partition : "learn" ,
97103 NumNodes : "1" ,
104+ Comment : "test_comment" ,
98105 },
99106 "7" : {
100107 User : "test_username" ,
@@ -106,6 +113,7 @@ func TestGetSlurmDataFromSlurmLineAllGpus(t *testing.T) {
106113 Account : "test_account" ,
107114 Partition : "learn" ,
108115 NumNodes : "1" ,
116+ Comment : "test_comment" ,
109117 },
110118 }
111119
@@ -133,6 +141,7 @@ func TestGetSlurmDataFromSlurmLineSomeGpus(t *testing.T) {
133141 Account : "test_account" ,
134142 Partition : "learn" ,
135143 NumNodes : "1" ,
144+ Comment : "test_comment" ,
136145 },
137146 "1" : {
138147 User : "test_username" ,
@@ -144,6 +153,7 @@ func TestGetSlurmDataFromSlurmLineSomeGpus(t *testing.T) {
144153 Account : "test_account" ,
145154 Partition : "learn" ,
146155 NumNodes : "1" ,
156+ Comment : "test_comment" ,
147157 },
148158 "2" : {
149159 User : "test_username" ,
@@ -155,6 +165,7 @@ func TestGetSlurmDataFromSlurmLineSomeGpus(t *testing.T) {
155165 Account : "test_account" ,
156166 Partition : "learn" ,
157167 NumNodes : "1" ,
168+ Comment : "test_comment" ,
158169 },
159170 "3" : {
160171 User : "test_username" ,
@@ -166,6 +177,7 @@ func TestGetSlurmDataFromSlurmLineSomeGpus(t *testing.T) {
166177 Account : "test_account" ,
167178 Partition : "learn" ,
168179 NumNodes : "1" ,
180+ Comment : "test_comment" ,
169181 },
170182 }
171183
@@ -208,6 +220,7 @@ func TestGetSlurmDataFromSlurmLineUniqueEntries(t *testing.T) {
208220 Account : "test2_account" ,
209221 Partition : "learn" ,
210222 NumNodes : "1" ,
223+ Comment : "test_comment" ,
211224 },
212225 "1" : {
213226 User : "test_username" ,
@@ -219,6 +232,7 @@ func TestGetSlurmDataFromSlurmLineUniqueEntries(t *testing.T) {
219232 Account : "test2_account" ,
220233 Partition : "learn" ,
221234 NumNodes : "1" ,
235+ Comment : "test_comment" ,
222236 },
223237 "2" : {
224238 User : "test_username" ,
@@ -230,6 +244,7 @@ func TestGetSlurmDataFromSlurmLineUniqueEntries(t *testing.T) {
230244 Account : "test2_account" ,
231245 Partition : "learn" ,
232246 NumNodes : "1" ,
247+ Comment : "test_comment" ,
233248 },
234249 "3" : {
235250 User : "test_username" ,
@@ -241,6 +256,7 @@ func TestGetSlurmDataFromSlurmLineUniqueEntries(t *testing.T) {
241256 Account : "test2_account" ,
242257 Partition : "learn" ,
243258 NumNodes : "1" ,
259+ Comment : "test_comment" ,
244260 },
245261 "5" : {
246262 User : "test_username_2" ,
@@ -252,6 +268,7 @@ func TestGetSlurmDataFromSlurmLineUniqueEntries(t *testing.T) {
252268 Account : "test_account" ,
253269 Partition : "test" ,
254270 NumNodes : "3" ,
271+ Comment : "test_comment_2" ,
255272 },
256273 "6" : {
257274 User : "test_username_2" ,
@@ -263,6 +280,7 @@ func TestGetSlurmDataFromSlurmLineUniqueEntries(t *testing.T) {
263280 Account : "test_account" ,
264281 Partition : "test" ,
265282 NumNodes : "3" ,
283+ Comment : "test_comment_2" ,
266284 },
267285 "7" : {
268286 User : "test_username_2" ,
@@ -274,6 +292,7 @@ func TestGetSlurmDataFromSlurmLineUniqueEntries(t *testing.T) {
274292 Account : "test_account" ,
275293 Partition : "test" ,
276294 NumNodes : "3" ,
295+ Comment : "test_comment_2" ,
277296 },
278297 }
279298 AttributeGPU2SlurmMetadata (blocks , "node1751" , GPU2Slurm )
@@ -300,6 +319,7 @@ func TestGetSlurmDataFromSlurmLineMainArrayJob(t *testing.T) {
300319 Account : "test2_account" ,
301320 Partition : "learn" ,
302321 NumNodes : "1" ,
322+ Comment : "test_comment" ,
303323 },
304324 "1" : {
305325 User : "test_username" ,
@@ -311,6 +331,7 @@ func TestGetSlurmDataFromSlurmLineMainArrayJob(t *testing.T) {
311331 Account : "test2_account" ,
312332 Partition : "learn" ,
313333 NumNodes : "1" ,
334+ Comment : "test_comment" ,
314335 },
315336 "2" : {
316337 User : "test_username" ,
@@ -322,6 +343,7 @@ func TestGetSlurmDataFromSlurmLineMainArrayJob(t *testing.T) {
322343 Account : "test2_account" ,
323344 Partition : "learn" ,
324345 NumNodes : "1" ,
346+ Comment : "test_comment" ,
325347 },
326348 "3" : {
327349 User : "test_username" ,
@@ -333,6 +355,7 @@ func TestGetSlurmDataFromSlurmLineMainArrayJob(t *testing.T) {
333355 Account : "test2_account" ,
334356 Partition : "learn" ,
335357 NumNodes : "1" ,
358+ Comment : "test_comment" ,
336359 },
337360 "5" : {
338361 User : "test_username_2" ,
@@ -344,6 +367,7 @@ func TestGetSlurmDataFromSlurmLineMainArrayJob(t *testing.T) {
344367 Account : "test_account" ,
345368 Partition : "test" ,
346369 NumNodes : "3" ,
370+ Comment : "test_comment_2" ,
347371 },
348372 "6" : {
349373 User : "test_username_2" ,
@@ -355,6 +379,7 @@ func TestGetSlurmDataFromSlurmLineMainArrayJob(t *testing.T) {
355379 Account : "test_account" ,
356380 Partition : "test" ,
357381 NumNodes : "3" ,
382+ Comment : "test_comment_2" ,
358383 },
359384 "7" : {
360385 User : "test_username_2" ,
@@ -366,6 +391,7 @@ func TestGetSlurmDataFromSlurmLineMainArrayJob(t *testing.T) {
366391 Account : "test_account" ,
367392 Partition : "test" ,
368393 NumNodes : "3" ,
394+ Comment : "test_comment_2" ,
369395 },
370396 }
371397 AttributeGPU2SlurmMetadata (blocks , "node1751" , GPU2Slurm )
@@ -555,6 +581,7 @@ func TestGetGPUData(t *testing.T) {
555581 NumNodes : "1" ,
556582 ArrayJobID : "0" ,
557583 ArrayTaskID : "0" ,
584+ Comment : "test_comment" ,
558585 },
559586 "1" : {
560587 JobID : "1234" ,
@@ -566,6 +593,7 @@ func TestGetGPUData(t *testing.T) {
566593 NumNodes : "1" ,
567594 ArrayJobID : "10" ,
568595 ArrayTaskID : "10" ,
596+ Comment : "test_comment" ,
569597 },
570598 }
571599 expectedMetadata := SlurmMetadataList {
@@ -578,6 +606,7 @@ func TestGetGPUData(t *testing.T) {
578606 NumNodes : []string {"1" },
579607 ArrayJobID : []string {"0" , "10" },
580608 ArrayTaskID : []string {"0" , "10" },
609+ Comment : []string {"test_comment" },
581610 }
582611
583612 metadata := GetGPUData (GPUToSlurm )
0 commit comments