@@ -431,7 +431,7 @@ var _ = Describe("AppWrapper E2E Test", func() {
431
431
432
432
// This should not fit on any node but should dispatch because there is enough aggregated resources.
433
433
aw2 := createGenericDeploymentCustomPodResourcesWithCPUAW (
434
- context , "aw-ff-deployment-1-700 -cpu" , "700m " , "700m " , 1 , 60 )
434
+ context , "aw-ff-deployment-1-850 -cpu" , "850m " , "850m " , 1 , 60 )
435
435
436
436
appwrappers = append (appwrappers , aw2 )
437
437
@@ -728,36 +728,25 @@ var _ = Describe("AppWrapper E2E Test", func() {
728
728
729
729
})
730
730
731
- It ("Create AppWrapper - Generic 100 Deployment Only - 2 pods each" , func () {
732
- fmt .Fprintf (os .Stdout , "[e2e] Generic 100 Deployment Only - 2 pods each - Started.\n " )
731
+ It ("Create AppWrapper - Generic 50 Deployment Only - 2 pods each" , func () {
732
+ fmt .Fprintf (os .Stdout , "[e2e] Generic 50 Deployment Only - 2 pods each - Started.\n " )
733
733
734
734
context := initTestContext ()
735
735
var aws []* arbv1.AppWrapper
736
736
appwrappersPtr := & aws
737
737
defer cleanupTestObjectsPtr (context , appwrappersPtr )
738
738
739
739
const (
740
- awCount = 100
740
+ awCount = 50
741
741
reportingInterval = 10
742
+ cpuDemand = "5m"
742
743
)
743
744
744
745
replicas := 2
745
746
modDivisor := int (awCount / reportingInterval )
746
747
for i := 0 ; i < awCount ; i ++ {
747
- name := fmt .Sprintf ("%s%d-" , " aw-generic-deployment-" , replicas )
748
+ name := fmt .Sprintf ("aw-generic-deployment-%02d-%03d " , replicas , i + 1 )
748
749
749
- // Pad name with '0' when i < 100
750
- if i < (awCount - 1 ) {
751
- name = fmt .Sprintf ("%s%s" , name , "0" )
752
- }
753
-
754
- // Pad name with '0' when i < 10
755
- if i < (reportingInterval - 1 ) {
756
- name = fmt .Sprintf ("%s%s" , name , "0" )
757
- }
758
-
759
- name = fmt .Sprintf ("%s%d" , name , i + 1 )
760
- cpuDemand := "5m"
761
750
if ((i + 1 )% modDivisor ) == 0 || i == 0 {
762
751
fmt .Fprintf (GinkgoWriter , "[e2e] Creating AW %s with %s cpu and %d replica(s).\n " , name , cpuDemand , replicas )
763
752
}
@@ -766,6 +755,7 @@ var _ = Describe("AppWrapper E2E Test", func() {
766
755
}
767
756
768
757
// Give the deployments time to create pods
758
+ // FIXME: do not assume that the pods are in running state in the order of submission.
769
759
time .Sleep (2 * time .Minute )
770
760
for i := 0 ; i < len (aws ); i ++ {
771
761
err := waitAWReadyQuiet (context , aws [i ])
0 commit comments