test increased timeout on github
This commit is contained in:
		
							parent
							
								
									18bdde82a5
								
							
						
					
					
						commit
						29c81e6c09
					
				| 
						 | 
					@ -1,8 +1,10 @@
 | 
				
			||||||
#!/bin/bash
 | 
					#!/bin/bash
 | 
				
			||||||
 | 
					
 | 
				
			||||||
watch -c "
 | 
					watch -n 0.1 -c "
 | 
				
			||||||
kubectl get postgresql --all-namespaces
 | 
					kubectl get postgresql --all-namespaces
 | 
				
			||||||
echo
 | 
					echo
 | 
				
			||||||
 | 
					kubectl exec \$(kubectl get pod -l name=postgres-operator --no-headers) -- curl -s localhost:8080/workers/all/status/ | jq .
 | 
				
			||||||
 | 
					echo
 | 
				
			||||||
echo -n 'Rolling upgrade pending: '
 | 
					echo -n 'Rolling upgrade pending: '
 | 
				
			||||||
kubectl get statefulset -o jsonpath='{.items..metadata.annotations.zalando-postgres-operator-rolling-update-required}'
 | 
					kubectl get statefulset -o jsonpath='{.items..metadata.annotations.zalando-postgres-operator-rolling-update-required}'
 | 
				
			||||||
echo
 | 
					echo
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -35,7 +35,7 @@ class EndToEndTestCase(unittest.TestCase):
 | 
				
			||||||
    # `kind` pods may stuck in the `Terminating` phase for a few minutes; hence high test timeout
 | 
					    # `kind` pods may stuck in the `Terminating` phase for a few minutes; hence high test timeout
 | 
				
			||||||
    TEST_TIMEOUT_SEC = 600
 | 
					    TEST_TIMEOUT_SEC = 600
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def eventuallyEqual(self, f, x, m, retries=60, interval=2):
 | 
					    def eventuallyEqual(self, f, x, m, retries=60, interval=3):
 | 
				
			||||||
        while True:
 | 
					        while True:
 | 
				
			||||||
            try:
 | 
					            try:
 | 
				
			||||||
                y = f()
 | 
					                y = f()
 | 
				
			||||||
| 
						 | 
					@ -47,7 +47,7 @@ class EndToEndTestCase(unittest.TestCase):
 | 
				
			||||||
                    raise
 | 
					                    raise
 | 
				
			||||||
                time.sleep(interval)
 | 
					                time.sleep(interval)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def eventuallyNotEqual(self, f, x, m, retries=60, interval=2):
 | 
					    def eventuallyNotEqual(self, f, x, m, retries=60, interval=3):
 | 
				
			||||||
        while True:
 | 
					        while True:
 | 
				
			||||||
            try:
 | 
					            try:
 | 
				
			||||||
                y = f()
 | 
					                y = f()
 | 
				
			||||||
| 
						 | 
					@ -59,7 +59,7 @@ class EndToEndTestCase(unittest.TestCase):
 | 
				
			||||||
                    raise
 | 
					                    raise
 | 
				
			||||||
                time.sleep(interval)
 | 
					                time.sleep(interval)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def eventuallyTrue(self, f, m, retries=60, interval=2):
 | 
					    def eventuallyTrue(self, f, m, retries=60, interval=3):
 | 
				
			||||||
        while True:
 | 
					        while True:
 | 
				
			||||||
            try:
 | 
					            try:
 | 
				
			||||||
                self.assertTrue(f(), m)
 | 
					                self.assertTrue(f(), m)
 | 
				
			||||||
| 
						 | 
					@ -929,7 +929,6 @@ class EndToEndTestCase(unittest.TestCase):
 | 
				
			||||||
        new_master_node = nm[0]
 | 
					        new_master_node = nm[0]
 | 
				
			||||||
        self.assert_distributed_pods(new_master_node, new_replica_nodes, cluster_label)
 | 
					        self.assert_distributed_pods(new_master_node, new_replica_nodes, cluster_label)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    @unittest.skip("flaky test, to be fixed later")
 | 
					 | 
				
			||||||
    @timeout_decorator.timeout(TEST_TIMEOUT_SEC)
 | 
					    @timeout_decorator.timeout(TEST_TIMEOUT_SEC)
 | 
				
			||||||
    def test_node_affinity(self):
 | 
					    def test_node_affinity(self):
 | 
				
			||||||
        '''
 | 
					        '''
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue