Skip to content

Commit b7e0c38

Browse files
authored
Changes for Flexible IPAM e2e tests (#6991)
- add `--skip mode-irrelevant` flag for the Flexible IPAM Kind workflow in order to run fewer tests - remove the Flexible-IPAM builder and job from Jenkins as they are no longer used Signed-off-by: KMAnju-2021 <[email protected]>
1 parent c33622c commit b7e0c38

File tree

7 files changed

+2
-141
lines changed

7 files changed

+2
-141
lines changed

.github/workflows/kind.yml

+1
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,7 @@ jobs:
309309
ANTREA_LOG_DIR=$PWD/log ANTREA_COV_DIR=$PWD/test-ipam-e2e-coverage ./ci/kind/test-e2e-kind.sh \
310310
--encap-mode noEncap \
311311
--coverage \
312+
--skip mode-irrelevant \
312313
--multicast \
313314
--flexible-ipam \
314315
- name: Tar coverage files

CONTRIBUTING.md

-2
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,6 @@ Here are the trigger phrases for individual checks:
174174
* `/test-ipv6-only-e2e`: Linux IPv6 only e2e tests
175175
* `/test-ipv6-only-conformance`: Linux IPv6 only conformance tests
176176
* `/test-ipv6-only-networkpolicy`: Linux IPv6 only networkpolicy tests
177-
* `/test-flexible-ipam-e2e`: Flexible IPAM e2e tests
178177
* `/test-multicast-e2e`: Multicast e2e tests
179178
* `/test-multicluster-e2e`: Multicluster e2e tests
180179
* `/test-vm-e2e`: ExternalNode e2e tests
@@ -192,7 +191,6 @@ Here are the trigger phrases for individual checks:
192191
* `/test-kind-networkpolicy`: Linux IPv4 networkpolicy tests on Kind cluster.
193192
* `/test-kind-ipv6-only-networkpolicy`: Linux IPv6 only networkpolicy tests on Kind cluster.
194193
* `/test-kind-ipv6-networkpolicy`: Linux dual stack networkpolicy tests on Kind cluster.
195-
* `/test-kind-flexible-ipam-e2e`: Flexible IPAM e2e tests on Kind clusters.
196194
* `/test-kind-all-features-conformance`: Linux IPv4 conformance tests with all features enabled on Kind cluster.
197195
* `/test-kind-whole-conformance`: Linux All conformance tests on Kind cluster.
198196

ci/jenkins/README.md

-9
Original file line numberDiff line numberDiff line change
@@ -122,15 +122,6 @@ DOCKER_REGISTRY="$(head -n1 ci/docker-registry)"
122122
./ci/jenkins/test.sh --testcase multicast-e2e --registry ${DOCKER_REGISTRY}
123123
```
124124

125-
* Flexible-ipam e2e: e2e tests in a flexible-ipam cluster
126-
127-
```shell
128-
#!/bin/bash
129-
set -e
130-
DOCKER_REGISTRY="$(head -n1 ci/docker-registry)"
131-
./ci/jenkins/test.sh --testcase e2e --registry ${DOCKER_REGISTRY} --testbed-type "flexible-ipam"
132-
```
133-
134125
* Kind conformance: conformance tests in a kind cluster
135126

136127
```shell

ci/jenkins/jobs/macros.yaml

-32
Original file line numberDiff line numberDiff line change
@@ -143,16 +143,6 @@
143143
[ "$DOCKER_REGISTRY" != "docker.io" ] || ./ci/jenkins/docker_login.sh --docker-user ${{DOCKER_USERNAME}} --docker-password ${{DOCKER_PASSWORD}}
144144
./ci/jenkins/test.sh --testcase '{conformance_type}' --registry ${{DOCKER_REGISTRY}} --docker-user ${{DOCKER_USERNAME}} --docker-password ${{DOCKER_PASSWORD}}
145145
146-
- builder:
147-
name: builder-flexible-ipam-e2e
148-
builders:
149-
- shell: |-
150-
#!/bin/bash
151-
set -e
152-
DOCKER_REGISTRY="$(head -n1 ci/docker-registry)"
153-
[ "$DOCKER_REGISTRY" != "docker.io" ] || ./ci/jenkins/docker_login.sh --docker-user ${{DOCKER_USERNAME}} --docker-password ${{DOCKER_PASSWORD}}
154-
./ci/jenkins/test.sh --testcase e2e --registry ${{DOCKER_REGISTRY}} --workdir "/home/ubuntu" --kubeconfig "/home/ubuntu/kube.conf" --testbed-type "flexible-ipam"
155-
156146
- builder:
157147
name: builder-flow-visibility
158148
builders:
@@ -254,28 +244,6 @@
254244
./ci/kind/kind-setup.sh destroy "${{FULL_CLUSTER_NAME}}"
255245
exit $return_code
256246
257-
- builder:
258-
name: builder-kind-flexible-ipam-e2e
259-
builders:
260-
- shell: |-
261-
#!/bin/bash
262-
set -ex
263-
DOCKER_REGISTRY="$(head -n1 ci/docker-registry)"
264-
KIND_TIMEOUT=135
265-
FIRST_VLAN_SUBNET='11=192.168.241.1/24'
266-
SECOND_VLAN_SUBNET='12=192.168.242.1/24'
267-
FULL_CLUSTER_NAME='{kind_cluster_name}'-"${{BUILD_NUMBER}}"
268-
./ci/kind/kind-setup.sh destroy --all --until ${{KIND_TIMEOUT}}
269-
./ci/kind/kind-install.sh
270-
./ci/kind/kind-setup.sh --flexible-ipam create "${{FULL_CLUSTER_NAME}}" --vlan-subnets $FIRST_VLAN_SUBNET --vlan-subnets $SECOND_VLAN_SUBNET
271-
kind export kubeconfig -n "${{FULL_CLUSTER_NAME}}" --kubeconfig ${{PWD}}/.kube/config
272-
set +e
273-
./ci/jenkins/test.sh --testcase e2e --registry ${{DOCKER_REGISTRY}} --kubeconfig ${{PWD}}/.kube/config --testbed-type "kind-flexible-ipam" --kind-cluster-name "${{FULL_CLUSTER_NAME}}"
274-
return_code=$?
275-
set -e
276-
./ci/kind/kind-setup.sh destroy "${{FULL_CLUSTER_NAME}}"
277-
exit $return_code
278-
279247
- builder:
280248
name: builder-rancher-e2e
281249
builders:

ci/jenkins/jobs/projects-cloud.yaml

-37
Original file line numberDiff line numberDiff line change
@@ -1571,43 +1571,6 @@
15711571
default-excludes: true
15721572
fingerprint: false
15731573
only-if-success: false
1574-
- '{name}-{test_name}-for-pull-request':
1575-
test_name: kind-flexible-ipam-e2e
1576-
node: 'kind-flexible-ipam-testbed'
1577-
description: 'This is the {test_name} test for {name}.'
1578-
branches:
1579-
- ${{sha1}}
1580-
builders:
1581-
- builder-kind-flexible-ipam-e2e:
1582-
kind_cluster_name: '{test_name}'
1583-
trigger_phrase: ^(?!Thanks for your PR).*/test-kind-flexible-ipam-e2e.*
1584-
white_list_target_branches: []
1585-
allow_whitelist_orgs_as_admins: true
1586-
admin_list: '{antrea_admin_list}'
1587-
org_list: '{antrea_org_list}'
1588-
white_list: '{antrea_white_list}'
1589-
only_trigger_phrase: true
1590-
trigger_permit_all: true
1591-
status_context: jenkins-kind-flexible-ipam-e2e
1592-
status_url: null
1593-
success_status: Build finished.
1594-
failure_status: Failed. Add comment /test-kind-flexible-ipam-e2e to re-trigger.
1595-
error_status: Failed. Add comment /test-kind-flexible-ipam-e2e to re-trigger.
1596-
triggered_status: null
1597-
started_status: null
1598-
wrappers:
1599-
- timeout:
1600-
fail: true
1601-
timeout: 135
1602-
type: absolute
1603-
publishers:
1604-
- archive:
1605-
allow-empty: true
1606-
artifacts: 'antrea-test-logs.tar.gz'
1607-
case-sensitive: true
1608-
default-excludes: true
1609-
fingerprint: false
1610-
only-if-success: false
16111574
- 'cloud-{name}-{test_name}-aws-cleanup':
16121575
test_name: sriov-secondary-network
16131576
description: This is for deleting AWS resources for SRIOV secondary-network test.

ci/jenkins/jobs/projects-lab.yaml

-60
Original file line numberDiff line numberDiff line change
@@ -46,66 +46,6 @@
4646
- text:
4747
credential-id: RDIFF_PATH
4848
variable: RDIFF_PATH
49-
- '{name}-{test_name}-no-scm':
50-
test_name: flexible-ipam-e2e-pending-label
51-
node: null
52-
description: 'This is for marking PR as pending for e2e test.'
53-
builders:
54-
- builder-pending-label
55-
trigger_phrase: null
56-
white_list_target_branches: []
57-
allow_whitelist_orgs_as_admins: true
58-
admin_list: []
59-
org_list: []
60-
white_list: []
61-
only_trigger_phrase: false
62-
trigger_permit_all: true
63-
throttle_concurrent_builds_category:
64-
throttle_concurrent_builds_enabled: 'false'
65-
status_context: jenkins-flexible-ipam-e2e
66-
status_url: --none--
67-
success_status: Pending test. Mark as failure. Add comment /test-flexible-ipam-e2e to trigger.
68-
failure_status: Pending test. Mark as failure. Add comment /test-flexible-ipam-e2e to trigger.
69-
error_status: Pending test. Mark as failure. Add comment /test-flexible-ipam-e2e to trigger.
70-
triggered_status: null
71-
started_status: null
72-
wrappers: []
73-
publishers: []
74-
- '{name}-{test_name}-for-pull-request':
75-
test_name: flexible-ipam-e2e
76-
node: 'antrea-flexible-ipam-jumper'
77-
description: 'This is the {test_name} test for {name}.'
78-
branches:
79-
- ${{sha1}}
80-
builders:
81-
- builder-flexible-ipam-e2e
82-
trigger_phrase: ^(?!Thanks for your PR).*/test-flexible-ipam-e2e.*
83-
white_list_target_branches: []
84-
allow_whitelist_orgs_as_admins: true
85-
admin_list: '{antrea_admin_list}'
86-
org_list: '{antrea_org_list}'
87-
white_list: '{antrea_white_list}'
88-
only_trigger_phrase: true
89-
trigger_permit_all: true
90-
throttle_concurrent_builds_category:
91-
- e2e-lock-per-testbed
92-
throttle_concurrent_builds_enabled: 'true'
93-
status_context: jenkins-flexible-ipam-e2e
94-
status_url: --none--
95-
success_status: Build finished.
96-
failure_status: Failed. Add comment /test-flexible-ipam-e2e to re-trigger.
97-
error_status: Failed. Add comment /test-flexible-ipam-e2e to re-trigger.
98-
triggered_status: null
99-
started_status: null
100-
wrappers: []
101-
publishers:
102-
- archive:
103-
allow-empty: true
104-
artifacts: 'antrea-test-logs.tar.gz'
105-
case-sensitive: true
106-
default-excludes: true
107-
fingerprint: false
108-
only-if-success: false
10949
- '{name}-{test_name}-no-scm':
11050
test_name: ipv6-ds-e2e-pending-label
11151
node: null

test/e2e/antreapolicy_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5468,7 +5468,7 @@ func createPolicyForFQDNCacheMinTTL(t *testing.T, data *TestData, testFQDN strin
54685468

54695469
annp, err := data.CreateOrUpdateANNP(builder.Get())
54705470
require.NoError(t, err, "error while deploying Antrea policy")
5471-
require.NoError(t, data.waitForANNPRealized(t, annp.Namespace, annp.Name, 30*time.Second))
5471+
require.NoError(t, data.waitForANNPRealized(t, annp.Namespace, annp.Name, 10*time.Second))
54725472
}
54735473

54745474
// createHttpAgnhostPod creates an agnhost Pod that serves HTTP requests and returns the IP of Pod created.

0 commit comments

Comments
 (0)