@@ -129,7 +129,7 @@ var _ = Describe("AppWrapper E2E Test", func() {
129
129
})
130
130
131
131
It ("MCAD CPU Requeuing - Completion After Enough Requeuing Times Test" , func () {
132
-
132
+
133
133
Skip ("Skipping MCAD CPU Requeuing - Completion After Enough Requeuing Times Test - [Bug] Failing intermittently on opened PRs" )
134
134
135
135
fmt .Fprintf (os .Stdout , "[e2e] Completion After Enough Requeuing Times Test - Started.\n " )
@@ -152,7 +152,7 @@ var _ = Describe("AppWrapper E2E Test", func() {
152
152
})
153
153
154
154
It ("MCAD CPU Requeuing - Deletion After Maximum Requeuing Times Test" , func () {
155
-
155
+
156
156
Skip ("Skipping MCAD CPU Requeuing - Deletion After Maximum Requeuing Times Test - [Bug] Failing intermittently on opened PRs" )
157
157
158
158
fmt .Fprintf (os .Stdout , "[e2e] MCAD CPU Requeuing - Deletion After Maximum Requeuing Times Test - Started.\n " )
@@ -435,7 +435,6 @@ var _ = Describe("AppWrapper E2E Test", func() {
435
435
context , appendRandomString ("aw-ff-deployment-55-percent-cpu" ), resource , resource , 2 , 60 )
436
436
appwrappers = append (appwrappers , aw )
437
437
err := waitAWPodsReady (context , aw )
438
- fmt .Fprintf (os .Stdout , "The aw status is %v" , aw .Status .State )
439
438
Expect (err ).NotTo (HaveOccurred (), "Expecting pods for app wrapper: aw-ff-deployment-1-3500-cpu" )
440
439
441
440
// This should not fit on any node but should dispatch because there is enough aggregated resources.
@@ -502,15 +501,21 @@ var _ = Describe("AppWrapper E2E Test", func() {
502
501
defer cleanupTestObjectsPtr (context , appwrappersPtr )
503
502
504
503
// This should fill up the worker node and most of the master node
505
- aw := createDeploymentAWwith550CPU (context , appendRandomString ("aw-deployment-2-550cpu" ))
504
+ cap := getClusterCapacitycontext (context )
505
+ resource := cpuDemand (cap , 0.275 ).String ()
506
+ aw := createGenericDeploymentCustomPodResourcesWithCPUAW (
507
+ context , appendRandomString ("aw-ff-deployment-55-percent-cpu" ), resource , resource , 2 , 60 )
506
508
appwrappers = append (appwrappers , aw )
507
509
508
510
err := waitAWPodsReady (context , aw )
509
511
Expect (err ).NotTo (HaveOccurred (), "Expecting pods to be ready for app wrapper: aw-deployment-2-550cpu" )
510
512
511
513
// This should not fit on cluster but customPodResources is incorrect so AW pods are created
514
+ // aw2 := createGenericDeploymentCustomPodResourcesWithCPUAW(
515
+ // context, appendRandomString("aw-deployment-2-425-vs-426-cpu"), "425m", "426m", 2, 60)
516
+ resource2 := cpuDemand (cap , 0.5 ).String ()
512
517
aw2 := createGenericDeploymentCustomPodResourcesWithCPUAW (
513
- context , appendRandomString ("aw-deployment-2-425-vs-426- cpu" ), "425m" , "426m" , 2 , 60 )
518
+ context , appendRandomString ("aw-ff- deployment-40-percent- cpu" ), "425m" , resource2 , 1 , 60 )
514
519
515
520
appwrappers = append (appwrappers , aw2 )
516
521
@@ -522,6 +527,7 @@ var _ = Describe("AppWrapper E2E Test", func() {
522
527
})
523
528
524
529
It ("MCAD Bad Custom Pod Resources vs. Deployment Pod Resource Queuing Test 2" , func () {
530
+ Skip ("MCAD Bad Custom Pod Resources vs. Deployment Pod Resource Queuing Test 2 - Deployment controller removed and this test case does not apply" )
525
531
fmt .Fprintf (os .Stdout , "[e2e] MCAD Bad Custom Pod Resources vs. Deployment Pod Resource Queuing Test 2 - Started.\n " )
526
532
context := initTestContext ()
527
533
var appwrappers []* arbv1.AppWrapper
@@ -665,18 +671,25 @@ var _ = Describe("AppWrapper E2E Test", func() {
665
671
defer cleanupTestObjectsPtr (context , appwrappersPtr )
666
672
667
673
// This should fill up the worker node and most of the master node
668
- aw := createDeploymentAWwith550CPU (context , appendRandomString ("aw-deployment-2-550cpu" ))
674
+ //aw := createDeploymentAWwith550CPU(context, appendRandomString("aw-deployment-2-550cpu"))
675
+ cap := getClusterCapacitycontext (context )
676
+ resource := cpuDemand (cap , 0.275 ).String ()
677
+ aw := createGenericDeploymentCustomPodResourcesWithCPUAW (
678
+ context , appendRandomString ("aw-ff-deployment-55-percent-cpu" ), resource , resource , 2 , 60 )
669
679
appwrappers = append (appwrappers , aw )
670
680
err := waitAWPodsReady (context , aw )
671
- Expect (err ).NotTo (HaveOccurred (), "Waiting for pods to be ready for app wrapper: aw-deployment-2-550cpu " )
681
+ Expect (err ).NotTo (HaveOccurred (), "Waiting for pods to be ready for app wrapper: aw-ff- deployment-55-percent-cpu " )
672
682
673
683
// This should not fit on cluster
674
684
// there may be a false positive dispatch which will cause MCAD to requeue AW
675
- aw2 := createDeploymentAWwith426CPU (context , appendRandomString ("aw-deployment-2-426cpu" ))
685
+ //aw2 := createDeploymentAWwith426CPU(context, appendRandomString("aw-deployment-2-426cpu"))
686
+ resource2 := cpuDemand (cap , 0.5 ).String ()
687
+ aw2 := createGenericDeploymentCustomPodResourcesWithCPUAW (
688
+ context , appendRandomString ("aw-ff-deployment-40-percent-cpu" ), resource2 , resource2 , 1 , 60 )
676
689
appwrappers = append (appwrappers , aw2 )
677
690
678
691
err = waitAWPodsReady (context , aw2 )
679
- Expect (err ).To (HaveOccurred (), "No pods for app wrapper `aw-deployment-2-426cpu ` are expected." )
692
+ Expect (err ).To (HaveOccurred (), "No pods for app wrapper `aw-ff- deployment-40-percent-cpu ` are expected." )
680
693
})
681
694
682
695
It ("MCAD Deployment RunningHoldCompletion Test" , func () {
0 commit comments